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. Documentation below only applies to the latest version.
Changelograwraw
field is now only provided if you set the includeRaw
parameter.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:
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.
error
field is no longer a boolean; it now contains an error message if an error occured and null otherwisearchived
(bool)available
(Optional[str])capcount
(int)error
(Optional[str])lastupdated
(int)name
(str)note
(str)rawraw
(Any)metaonly
(bool)comments
(bool)maybe_paywalled
(bool)classname
(str)