Search several resources for archived YouTube video and metadata
Please note: The API can be used to embed this site into your own code. If you just want to search for a video, return to the homepage.
/api/:version/:videoid
includeRaw
(set to include the rawraw
field), stream
(stream service objects as they are processed, rather than all at the end)Current versions available: v2, v3, v4, v5. Documentation below only applies to the latest version.
Changelogerror
field is no longer a boolean; it now contains either an error message or null.rawraw
field is now only provided if you set the includeRaw
parameter.capcount
field has been removed. Previously, it was guaranteed to be a positive non-zero number if the video was archived.available
field is now a list of link objects (see below) to allow returning multiple URLs.id
(str)status
(str)keys
(list[YouTubeService])api_version
(int)verdict
(dict)A stream of JSONL: one json object followed by a newline, then the next, etc. The order of what is sent:
type
field to differentiate.)rawraw
field is only set if you set the includeRaw
parameter. Example: /api/v4/dQw4w9WgXcQ?includeRaw=true
. Please only enable this if you have to, as it will slow down loading.
archived
(bool)available
(list[Link])error
(Optional[str])lastupdated
(int)name
(str)note
(str)rawraw
(Any)metaonly
(bool)comments
(bool)maybe_paywalled
(bool)classname
(str)url
(str)contains
(LinkContains)title
(str)note
(Optional[str])