curl --request GET \
--url https://video.bunnycdn.com/OEmbedimport requests
url = "https://video.bunnycdn.com/OEmbed"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://video.bunnycdn.com/OEmbed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://video.bunnycdn.com/OEmbed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://video.bunnycdn.com/OEmbed"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://video.bunnycdn.com/OEmbed")
.asString();require 'uri'
require 'net/http'
url = URI("https://video.bunnycdn.com/OEmbed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"version": "<string>",
"title": "<string>",
"type": "<string>",
"thumbnail_url": "<string>",
"thumbnail_width": 123,
"thumbnail_height": 123,
"width": 123,
"height": 123,
"html": "<string>",
"provider_name": "<string>",
"provider_url": "<string>"
}Get oEmbed data
Implements the oEmbed specification (oembed.com) for bunny.net video embed URLs, allowing third-party sites and tools to auto-generate an embeddable player for a pasted video link. url must be a bunny.net player URL for an existing video — either the legacy player (e.g. “https://iframe.mediadelivery.net/embed/{libraryId}/{videoId}”) or the new player (e.g. “https://player.mediadelivery.net/embed/{libraryId}/{videoId}”) — not an arbitrary link. Only the library ID and video ID segments are read, so /play/ URLs are accepted as well as /embed/ ones. For private libraries, the request must satisfy the library’s referer restrictions and, separately, a valid token and expires pair if token authentication is enabled — one does not substitute for the other.
curl --request GET \
--url https://video.bunnycdn.com/OEmbedimport requests
url = "https://video.bunnycdn.com/OEmbed"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://video.bunnycdn.com/OEmbed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://video.bunnycdn.com/OEmbed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://video.bunnycdn.com/OEmbed"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://video.bunnycdn.com/OEmbed")
.asString();require 'uri'
require 'net/http'
url = URI("https://video.bunnycdn.com/OEmbed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"version": "<string>",
"title": "<string>",
"type": "<string>",
"thumbnail_url": "<string>",
"thumbnail_width": 123,
"thumbnail_height": 123,
"width": 123,
"height": 123,
"html": "<string>",
"provider_name": "<string>",
"provider_url": "<string>"
}Query Parameters
Response
The oEmbed data for the video