Get Video Library
curl --request GET \
--url https://api.bunny.net/videolibrary/{id} \
--header 'AccessKey: <api-key>'import requests
url = "https://api.bunny.net/videolibrary/{id}"
headers = {"AccessKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {AccessKey: '<api-key>'}};
fetch('https://api.bunny.net/videolibrary/{id}', 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://api.bunny.net/videolibrary/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"AccessKey: <api-key>"
],
]);
$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://api.bunny.net/videolibrary/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("AccessKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bunny.net/videolibrary/{id}")
.header("AccessKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bunny.net/videolibrary/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["AccessKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"Id": 123,
"Name": "<string>",
"VideoCount": 123,
"LiveStreamCount": 123,
"TotalCount": 123,
"TrafficUsage": 123,
"StorageUsage": 123,
"DateCreated": "2023-11-07T05:31:56Z",
"DateModified": "2023-11-07T05:31:56Z",
"ReplicationRegions": [
"<string>"
],
"ApiKey": "<string>",
"ReadOnlyApiKey": "<string>",
"HasWatermark": true,
"WatermarkPositionLeft": 123,
"WatermarkPositionTop": 123,
"WatermarkWidth": 123,
"PullZoneId": 123,
"StorageZoneId": 123,
"WatermarkHeight": 123,
"EnabledResolutions": "<string>",
"ViAiPublisherId": "<string>",
"VastTagUrl": "<string>",
"WebhookUrl": "<string>",
"CaptionsFontSize": 123,
"CaptionsFontColor": "<string>",
"CaptionsBackground": "<string>",
"UILanguage": "<string>",
"AllowEarlyPlay": true,
"PlayerTokenAuthenticationEnabled": true,
"AllowedReferrers": [
"<string>"
],
"BlockedReferrers": [
"<string>"
],
"BlockNoneReferrer": true,
"EnableMP4Fallback": true,
"KeepOriginalFiles": true,
"AllowDirectPlay": true,
"EnableDRM": true,
"DrmVersion": 0,
"AppleFairPlayDrm": {
"Enabled": true,
"CertificateId": 123,
"CertificateExpirationDate": "2023-11-07T05:31:56Z",
"Provider": "<string>"
},
"GoogleWidevineDrm": {
"Enabled": true,
"CertificateId": 123,
"CertificateExpirationDate": "2023-11-07T05:31:56Z",
"Provider": "<string>",
"SdOnlyForL3": true,
"MinClientSecurityLevel": 0
},
"Bitrate240p": 123,
"Bitrate360p": 123,
"Bitrate480p": 123,
"Bitrate720p": 123,
"Bitrate1080p": 123,
"Bitrate1440p": 123,
"Bitrate2160p": 123,
"ApiAccessKey": "<string>",
"ShowHeatmap": true,
"EnableContentTagging": true,
"PullZoneType": 0,
"CustomHTML": "<string>",
"Controls": "<string>",
"PlaybackSpeeds": "<string>",
"PlayerKeyColor": "<string>",
"FontFamily": "<string>",
"WatermarkVersion": 123,
"EnableTranscribing": true,
"EnableTranscribingTitleGeneration": true,
"EnableTranscribingDescriptionGeneration": true,
"EnableTranscribingChaptersGeneration": true,
"EnableTranscribingMomentsGeneration": true,
"TranscribingCaptionLanguages": [
"<string>"
],
"EnableCaptionsInPlaylist": true,
"RememberPlayerPosition": true,
"EnableMultiAudioTrackSupport": true,
"UseSeparateAudioStream": true,
"JitEncodingEnabled": true,
"EncodingTier": 0,
"OutputCodecs": "<string>",
"DrmBasePriceOverride": 123,
"DrmCostPerLicenseOverride": 123,
"TranscribingPriceOverride": 123,
"PremiumEncodingPriceOverride": 123,
"MonthlyChargesTranscribing": 123,
"MonthlyChargesPremiumEncoding": 123,
"MonthlyChargesEnterpriseDrm": 123,
"FeatureFlags": "<string>",
"PlayerVersion": 123,
"RemoveMetadataFromFallbackVideos": true,
"ScaleVideoUsingBothDimensions": true,
"ExposeOriginals": true,
"ExposeVideoMetadata": true,
"EnableCompactControls": true,
"GeoBlocking": {
"Enabled": true,
"AllowedCountries": [
"<string>"
],
"BlockedCountries": [
"<string>"
]
}
}{
"ErrorKey": "<string>",
"Field": "<string>",
"Message": "<string>"
}{
"ErrorKey": "<string>",
"Field": "<string>",
"Message": "<string>"
}{
"ErrorKey": "<string>",
"Field": "<string>",
"Message": "<string>"
}Stream Video Library
Get Video Library
GET
/
videolibrary
/
{id}
Get Video Library
curl --request GET \
--url https://api.bunny.net/videolibrary/{id} \
--header 'AccessKey: <api-key>'import requests
url = "https://api.bunny.net/videolibrary/{id}"
headers = {"AccessKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {AccessKey: '<api-key>'}};
fetch('https://api.bunny.net/videolibrary/{id}', 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://api.bunny.net/videolibrary/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"AccessKey: <api-key>"
],
]);
$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://api.bunny.net/videolibrary/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("AccessKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bunny.net/videolibrary/{id}")
.header("AccessKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bunny.net/videolibrary/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["AccessKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"Id": 123,
"Name": "<string>",
"VideoCount": 123,
"LiveStreamCount": 123,
"TotalCount": 123,
"TrafficUsage": 123,
"StorageUsage": 123,
"DateCreated": "2023-11-07T05:31:56Z",
"DateModified": "2023-11-07T05:31:56Z",
"ReplicationRegions": [
"<string>"
],
"ApiKey": "<string>",
"ReadOnlyApiKey": "<string>",
"HasWatermark": true,
"WatermarkPositionLeft": 123,
"WatermarkPositionTop": 123,
"WatermarkWidth": 123,
"PullZoneId": 123,
"StorageZoneId": 123,
"WatermarkHeight": 123,
"EnabledResolutions": "<string>",
"ViAiPublisherId": "<string>",
"VastTagUrl": "<string>",
"WebhookUrl": "<string>",
"CaptionsFontSize": 123,
"CaptionsFontColor": "<string>",
"CaptionsBackground": "<string>",
"UILanguage": "<string>",
"AllowEarlyPlay": true,
"PlayerTokenAuthenticationEnabled": true,
"AllowedReferrers": [
"<string>"
],
"BlockedReferrers": [
"<string>"
],
"BlockNoneReferrer": true,
"EnableMP4Fallback": true,
"KeepOriginalFiles": true,
"AllowDirectPlay": true,
"EnableDRM": true,
"DrmVersion": 0,
"AppleFairPlayDrm": {
"Enabled": true,
"CertificateId": 123,
"CertificateExpirationDate": "2023-11-07T05:31:56Z",
"Provider": "<string>"
},
"GoogleWidevineDrm": {
"Enabled": true,
"CertificateId": 123,
"CertificateExpirationDate": "2023-11-07T05:31:56Z",
"Provider": "<string>",
"SdOnlyForL3": true,
"MinClientSecurityLevel": 0
},
"Bitrate240p": 123,
"Bitrate360p": 123,
"Bitrate480p": 123,
"Bitrate720p": 123,
"Bitrate1080p": 123,
"Bitrate1440p": 123,
"Bitrate2160p": 123,
"ApiAccessKey": "<string>",
"ShowHeatmap": true,
"EnableContentTagging": true,
"PullZoneType": 0,
"CustomHTML": "<string>",
"Controls": "<string>",
"PlaybackSpeeds": "<string>",
"PlayerKeyColor": "<string>",
"FontFamily": "<string>",
"WatermarkVersion": 123,
"EnableTranscribing": true,
"EnableTranscribingTitleGeneration": true,
"EnableTranscribingDescriptionGeneration": true,
"EnableTranscribingChaptersGeneration": true,
"EnableTranscribingMomentsGeneration": true,
"TranscribingCaptionLanguages": [
"<string>"
],
"EnableCaptionsInPlaylist": true,
"RememberPlayerPosition": true,
"EnableMultiAudioTrackSupport": true,
"UseSeparateAudioStream": true,
"JitEncodingEnabled": true,
"EncodingTier": 0,
"OutputCodecs": "<string>",
"DrmBasePriceOverride": 123,
"DrmCostPerLicenseOverride": 123,
"TranscribingPriceOverride": 123,
"PremiumEncodingPriceOverride": 123,
"MonthlyChargesTranscribing": 123,
"MonthlyChargesPremiumEncoding": 123,
"MonthlyChargesEnterpriseDrm": 123,
"FeatureFlags": "<string>",
"PlayerVersion": 123,
"RemoveMetadataFromFallbackVideos": true,
"ScaleVideoUsingBothDimensions": true,
"ExposeOriginals": true,
"ExposeVideoMetadata": true,
"EnableCompactControls": true,
"GeoBlocking": {
"Enabled": true,
"AllowedCountries": [
"<string>"
],
"BlockedCountries": [
"<string>"
]
}
}{
"ErrorKey": "<string>",
"Field": "<string>",
"Message": "<string>"
}{
"ErrorKey": "<string>",
"Field": "<string>",
"Message": "<string>"
}{
"ErrorKey": "<string>",
"Field": "<string>",
"Message": "<string>"
}Scopes
Response
The requested video library
The comma-separated list of controls displayed in the video player. Possible values: play-large, play, progress, current-time, duration, mute, volume, captions, settings, pip, airplay, fullscreen, rewind, fast-forward, and chromecast. Empty when all player UI controls are removed.