Appearance
Video/Short Details
GET /v1/youtube/video
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). Also returns related recommended videos in watchNextVideos and channel info for the uploader.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
url | string | yes | YouTube video or short URL | https://www.youtube.com/watch?v=Y2Ah_DFr8cw |
language | string | no | Preferred response language (mapped to Accept-Language header; not guaranteed due to YouTube localization behavior). 2 letter language code, ie 'en', 'es', 'fr' etc. | en |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/youtube/video?url=https://www.youtube.com/watch?v=Y2Ah_DFr8cw' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ url: 'https://www.youtube.com/watch?v=Y2Ah_DFr8cw' });
const res = await fetch(`https://api.scrapecreators.com/v1/youtube/video?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/youtube/video',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'url': 'https://www.youtube.com/watch?v=Y2Ah_DFr8cw'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators youtube video --helpExample Response
json
{
"success": true,
"credits_remaining": 33851527,
"id": "Y2Ah_DFr8cw",
"thumbnail": "https://img.youtube.com/vi/Y2Ah_DFr8cw/maxresdefault.jpg",
"url": "https://www.youtube.com/watch?v=Y2Ah_DFr8cw",
"publishDate": "2019-02-22T03:19:54-08:00",
"type": "video",
"title": "Inside the NBA: Chuck Trolls Jussie Smollett \"Do not commit crimes with checks, use cash!\"",
"description": null,
"descriptionLinks": [],
"commentCountText": "358",
"commentCountInt": 358,
"likeCountText": "4043",
"likeCountInt": 4043,
"viewCountText": "372,864",
"viewCountInt": 372864,
"publishDateText": "Feb 22, 2019",
"collaborators": [],
"channel": {
"id": "UCWH3hing1Qb4LnkRfQdxsxQ",
"url": "https://www.youtube.com/@afroballer8906",
"handle": "afroballer8906",
"title": "Afroballer"
},
"chapters": [],
"watchNextVideos": [
{
"id": "lzDTK5kEdkM",
"title": "Charles Barkley and Shaq FUNNIEST MOMENTS",
"thumbnail": "https://i.ytimg.com/vi/lzDTK5kEdkM/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLAq_osvQnsGV3A7uz4L1CPTaLqppg",
"channel": {
"title": "SkyHooked",
"url": "https://www.youtube.com/@SkyHooked",
"handle": "SkyHooked",
"id": "UCrX8GD5f_O-Cu5Y2vQuSSvw"
},
"publishedTimeText": "11 months ago",
"publishedTime": "2025-02-16T19:25:39.493Z",
"publishDateText": "11 months ago",
"publishDate": "2025-02-16T19:25:39.493Z",
"viewCountText": "1.8M views",
"viewCountInt": 1800000,
"lengthText": "18:01",
"lengthInSeconds": 1081,
"videoUrl": "https://www.youtube.com/watch?v=lzDTK5kEdkM"
}
],
"keywords": [],
"genre": "People & Blogs",
"durationMs": 348000,
"durationFormatted": "00:05:48",
"captionTracks": [
{
"baseUrl": "https://www.youtube.com/api/timedtext?v=Y2Ah_DFr8cw&ei=s5Bqab0gu8yS5w_pvOLIDw&caps=asr&opi=112496729&xoaf=5&xowf=1&hl=en&ip=0.0.0.0&ipbits=0&expire=1768616739&sparams=ip,ipbits,expire,v,ei,caps,opi,xoaf&signature=306A57ADE14FECC84B0DB13190761BCCC922AC9B.5C321C4FE7086F7AF851CA8463326E1869EE5255&key=yt8&kind=asr&lang=en",
"name": {
"simpleText": "English (auto-generated)"
},
"vssId": "a.en",
"languageCode": "en",
"kind": "asr",
"isTranslatable": true,
"trackName": ""
}
]
}Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |