Video/Short Details
Retrieve video/short details from YouTube with a single API request.
/api/data/v1/youtube/videoRequest parameters
Up to 1 creditYouTube video or short URL
Preferred response language (mapped to Accept-Language header; not guaranteed due to YouTube localization behavior). 2 letter language code, ie 'en', 'es', 'fr' etc.
If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.]
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/youtube/video?url=https%3A%2F%2Fyoutu.be%2FgTCi7PaOPLY' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"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",
"isPaidPromotion": false,
"most_replayed": null,
"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": ""
}
]
}Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"credits_remaining": {
"type": "integer"
},
"credits_charged": {
"type": "integer"
},
"id": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"url": {
"type": "string"
},
"publishDate": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"descriptionLinks": {
"type": "array"
},
"commentCountText": {
"type": "string"
},
"commentCountInt": {
"type": "integer"
},
"likeCountText": {
"type": "string"
},
"likeCountInt": {
"type": "integer"
},
"viewCountText": {
"type": "string"
},
"viewCountInt": {
"type": "integer"
},
"publishDateText": {
"type": "string"
},
"collaborators": {
"type": "array"
},
"channel": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"chapters": {
"type": "array"
},
"watchNextVideos": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"thumbnail": {
"type": "string"
},
"channel": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"publishedTimeText": {
"type": "string"
},
"publishedTime": {
"type": "string"
},
"publishDateText": {
"type": "string"
},
"publishDate": {
"type": "string"
},
"viewCountText": {
"type": "string"
},
"viewCountInt": {
"type": "integer"
},
"lengthText": {
"type": "string"
},
"lengthInSeconds": {
"type": "integer"
},
"videoUrl": {
"type": "string"
}
}
}
},
"keywords": {
"type": "array"
},
"genre": {
"type": "string"
},
"durationMs": {
"type": "integer"
},
"durationFormatted": {
"type": "string"
},
"isPaidPromotion": {
"type": "boolean"
},
"most_replayed": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"captionTracks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"baseUrl": {
"type": "string"
},
"name": {
"type": "object",
"properties": {
"simpleText": {
"type": "string"
}
}
},
"vssId": {
"type": "string"
},
"languageCode": {
"type": "string"
},
"kind": {
"type": "string"
},
"isTranslatable": {
"type": "boolean"
},
"trackName": {
"type": "string"
}
}
}
}
}
}