Skip to main content
POST
/
library
/
{libraryId}
/
videos
/
fetch
Fetch Video
curl --request POST \
  --url https://video.bunnycdn.com/library/{libraryId}/videos/fetch \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "headers": {},
  "title": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "statusCode": 123
}

Authorizations

AccessKey
string
header
required

AccessKey based authentication

Path Parameters

libraryId
integer<int64>
required

Query Parameters

collectionId
string | null
thumbnailTime
integer<int32> | null

(Optional) Video time in ms to extract the main video thumbnail.

Body

application/json
url
string
required

The URL from which the video will be fetched from.

Minimum string length: 1
headers
object

The headers that will be sent along with the fetch request.

title
string | null

The title that will be set to video.

Response

The video was successfully fetched

success
boolean

Determines if the request was successful

message
string | null

Response message description

statusCode
integer<int32>

The response status code