YouTube Scraper
Get YouTube Video/Short Details
Fetches full details for a YouTube video or short, including title, description, thumbnail, view count (views), like count (likes), comment count, publish date, duration, genre, keywords, chapters, collaborators, and available caption tracks (subtitles/captions). isPaidPromotion is true when YouTube marks the video as including paid promotion and false when it does not. Also returns related recommended videos in watchNextVideos and channel info for the uploader. When YouTube exposes its public Most replayed graph, most_replayed contains normalized graph buckets in markers and YouTube's highlighted ranges in ranges. The field is null when the graph is not available. YouTube says the graph may be unavailable when the channel has active strikes, the content is potentially inappropriate, the video is too new or has too few views, or its systems deem the video ineligible for another reason. YouTube does not publish fixed age or view-count thresholds. Need to download a YouTube video? We open sourced our YouTube downloader. You can use it and host it wherever you want. We don't offer a hosted YouTube downloading service because it's expensive and compute-intensive to run.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| urlstring · required | string | required | YouTube video or short URL |
| languagestring · optional | string | optional | Preferred response language (mapped to Accept-Language header; not guaranteed due to YouTube localization behavior). 2 letter language code, ie 'en', 'es', 'fr' etc. |
| cache_max_agestring · optional | string | optional | See the Caching page for details. One of: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
},
"genre": {
"type": "string"
},
"title": {
"type": "string"
},
"channel": {
"type": "object",
"additionalProperties": {}
},
"chapters": {
"type": "array"
},
"keywords": {
"type": "array"
},
"thumbnail": {
"type": "string"
},
"durationMs": {
"type": "number"
},
"description": {},
"publishDate": {
"type": "string"
},
"likeCountInt": {
"type": "number"
},
"viewCountInt": {
"type": "number"
},
"captionTracks": {
"type": "array"
},
"collaborators": {
"type": "array"
},
"likeCountText": {
"type": "string"
},
"most_replayed": {},
"viewCountText": {
"type": "string"
},
"commentCountInt": {
"type": "number"
},
"isPaidPromotion": {
"type": "boolean"
},
"publishDateText": {
"type": "string"
},
"watchNextVideos": {
"type": "array"
},
"commentCountText": {
"type": "string"
},
"descriptionLinks": {
"type": "array"
},
"durationFormatted": {
"type": "string"
}
},
"additionalProperties": true
}