Skip to main content
POST
/
youtube-source
/
preview
Preview YouTube URL
curl --request POST \
  --url https://api.gleap.io/v3/youtube-source/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'project: <project>' \
  --data '
{
  "url": "<string>"
}
'
{
  "estimatedCostCents": 123,
  "video": {
    "videoId": "<string>",
    "title": "<string>",
    "durationSeconds": 123,
    "thumbnailUrl": "<string>",
    "channelName": "<string>",
    "privacyStatus": "<string>",
    "alreadyImported": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.gleap.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

project
string
required

Body

application/json
url
string
required

Response

200 - application/json

Ok

estimatedCostCents
number<double>
required
video
object
required
type
enum<string>
required
Available options:
video