← API Store
Social
YouTube
YouTube
Sponsors in a YouTube video (segments, promo codes, links)
GET /youtube/v1/video/sponsorsEvery response includes credits_used: the credits this call cost.
Each call costs 1 credits; failed calls are free. Run it in the console playground to see a live result.
Parameters
| Name | Type | Description |
|---|---|---|
urlrequired | string | Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ |
Every endpoint also takes: raw、fields、fresh、output、records
{
"cached": false,
"channel": "Rick Astley",
"channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
"credits_used": 1,
"description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy an…",
"id": "dQw4w9WgXcQ",
"links": [
{
"sponsor_like": false,
"url": "https://linktr.ee/rickastleynever"
},
{
"sponsor_like": false,
"url": "https://RickAstley.lnk.to/YTSubID"
},
"… 9 more"
],
"paid_content_overlay": null,
"paid_promotion": false,
"promo_codes": [],
"segments": [],
"sponsor_mentions": [],
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"
} Response fields (17)
Field paths and types observed in the sample response; the live response is authoritative.
$ | object |
$.cached | boolean |
$.channel | string |
$.channel_id | string |
$.credits_used | integer |
$.description | string |
$.id | string |
$.links | array |
$.links[] | object | string |
$.links[].sponsor_like | boolean |
$.links[].url | string |
$.paid_content_overlay | null |
$.paid_promotion | boolean |
$.promo_codes | array |
$.segments | array |
$.sponsor_mentions | array |
$.title | string |