GroundsocialDocs

API · YouTube

GET /youtube/videos/{id}

A YouTube video or Short: details, exact views, likes and comments, channel, chapters, captions, paid-promotion flag, up next.

RequestGET /v1/youtube/videos/{id}
Operation idyoutube.video.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A YouTube video or Short: details, exact views, likes and comments, channel, chapters, captions, paid-promotion flag, up next.

Path parameters

NameTypeRequiredDescription
idstringyesA video or Short id, or any URL of it (watch, youtu.be, shorts, live, embed). Example: dQw4w9WgXcQ.

Query parameters

NameTypeRequiredDescription
languagestringnoISO 639-1 language code (en, es, pt-BR). Example: en.

Responses

StatusMeaningSchema
200The video.YouTubeVideo
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The video, channel, playlist or post does not exist, was removed, or has nothing there.Error
429Too many requests. Wait for Retry-After seconds.Error
503YouTube is temporarily unavailable. Retryable; nothing was charged.Error

YouTubeVideo fields

FieldTypeDescription
kind"youtube#video"
idstring
snippetobject
contentDetailsobject
statisticsobject
statisticsAreApproximatebooleanTrue when the counts came from an abbreviated label ("1.2M views") on a list row.
statusobject
paidProductPlacementDetailsobjectThe creator disclosed a paid promotion ("Includes paid promotion").
liveStreamingDetailsobject
isShortbooleanA Short (not a Data API field).
channelYouTubeChannelRefThe channel a video or post belongs to (not a Data API part).
chaptersYouTubeChapter[]
captionTracksYouTubeCaptionTrack[]
descriptionLinksstring[]Links in the description, unwrapped from YouTube’s redirect.
relatedYouTubeVideo[]The “up next” videos YouTube shows beside it (summaries).

Errors use one shape everywhere; see Errors for every code and what to do.