YouTube video sponsors
Beta GET /v1/youtube/video/sponsors
GET /v1/youtube/video/sponsors
Experimental. Whether the video discloses paid promotion, and the suspected sponsors with confidence and evidence in extra, inferred from the public description, its links, promo codes and the transcript. An inference, not a statement from YouTube; parent is the video.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | one of | Video or Short URL (watch, youtu.be, shorts, live, embed). Accepted hosts: youtube.com, youtu.be. |
id | string | one of | 11-character video id. Also accepted as videoId, video_id. |
language | string | no | 2-letter language used for the transcript lookup. Also accepted as lang. |
Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl -G "https://api.socialscrape.io/v1/youtube/video/sponsors" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "id=JsBZOcqZerk"import os
import requests
params = {
"id": "JsBZOcqZerk",
}
res = requests.get(
"https://api.socialscrape.io/v1/youtube/video/sponsors",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/youtube/video/sponsors");
url.search = new URLSearchParams({
"id": "JsBZOcqZerk"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape YouTube video sponsors",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/youtube/video/sponsors",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "id",
"value": "JsBZOcqZerk"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_ae547b4324d3096a10bbc2c4",
"data": {
"object": "list",
"items": [
{
"object": "advertiser",
"platform": "youtube",
"id": null,
"name": "Incogni",
"url": "https://incogni.com/veritasium",
"page_id": null,
"country": null,
"verified": null,
"ad_count": null,
"extra": {
"confidence": 0.96,
"evidence": [
"ack the \"unbreakable\" enigma? Sponsored by Incogni - use code veritasium at https://incogni.com/veritasium to",
"How did Bletchley Park's codebreakers crack the \"unbreakable\" enigma? Sponsored by Incogni - use code veritasium at https://incogni.com/veritasium to get an exclusive 60% off your annual subscription."
],
"inferred": true,
"promo_codes": [
"BREAKERS",
"VERITASIUM"
],
"signals": [
"description_mentions_sponsor",
"labelled_link",
"link_on_sponsor_line"
]
}
}
],
"cursor": null,
"has_more": false,
"parent": {
"object": "post",
"platform": "youtube",
"id": "JsBZOcqZerk",
"url": "https://www.youtube.com/watch?v=JsBZOcqZerk",
"type": "video",
"author": {
"id": "UCHnyfMqiRRG1u-2MsSQLbXA",
"handle": "veritasium",
"name": "Veritasium",
"url": "https://www.youtube.com/@veritasium",
"avatar_url": "https://yt3.ggpht.com/7vCbvtCqtjQ3YLgsJt7Y952MQV1sBvhllSCSxHP8_sVZdcPCBrITfhkN2RdyCuwPnsByq-1GoA=s176-c-k-c0x00ffffff-no-rj",
"verified": true
},
"title": "The Insane Real Engineering of the Nazi Enigma Machine",
"text": "How did Bletchley Park's codebreakers crack the \"unbreakable\" enigma? Sponsored by Incogni - use code veritasium at https://incogni.com/veritasium to get an exclusive 60% off your annual subscription.\n\nIf you’re looking for a molecular mode...",
"published_at": "2026-09-21T17:49:57Z",
"duration_seconds": 2861.0,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": 21147459,
"likes": 150094,
"comments": 7400,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://i.ytimg.com/vi_webp/JsBZOcqZerk/maxresdefault.webp",
"video_url": null,
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": true,
"extra": {
"caption_tracks": [
{
"auto_generated": false,
"language": "en",
"name": "English",
"translatable": true
},
{
"auto_generated": true,
"language": "en",
"name": "English (auto-generated)",
"translatable": true
}
],
"category": "Education",
"channel_subscribers": 21400000,
"channel_subscribers_approximate": true,
"channel_subscribers_text": "21.4M subscribers",
"chapters": [
{
"start_seconds": 0,
"thumbnail_url": "https://i.ytimg.com/vi/JsBZOcqZerk/hqdefault_24100.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLA7MBZ6jp4ge_fj7RC_RU_F-pgyTA",
"title": "Who invented Enigma?"
},
{
"start_seconds": 256,
"thumbnail_url": "https://i.ytimg.com/vi/JsBZOcqZerk/hqdefault_259900.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCV0ZId5UG2cmbSxLQv6abu711WfQ",
"title": "How did Enigma work?"
},
{
"start_seconds": 651,
"thumbnail_url": "https://i.ytimg.com/vi/JsBZOcqZerk/hqdefault_651200.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC2HKeVcrrrl6pUsUz2JvsezlzoIw",
"title": "The Secret Spy Mansion"
}
],
"comment_count_text": "7.4K",
"comments_approximate": true,
"comments_disabled": false,
"is_family_safe": true,
"is_live_content": false,
"is_private": false,
"is_unlisted": false,
"is_upcoming": false,
"keywords": [
"veritasium",
"science",
"physics"
],
"published_text": "Sep 21, 2026",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/JsBZOcqZerk/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEGovOX_wMOCN6JudYGGODqBCDgqAE=&rs=AOn4CLDYYl8DJ780fGvvYjtjGjo_5k3Vuw&usqp=CBU",
"width": 168
},
{
"height": 110,
"url": "https://i.ytimg.com/vi/JsBZOcqZerk/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEGovOX_wMOCN6JudYGGODqBCDgqAE=&rs=AOn4CLClHQFFLTcdELn_xf2MWuemypUwiA&usqp=CBU",
"width": 196
},
{
"height": 138,
"url": "https://i.ytimg.com/vi/JsBZOcqZerk/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBqLzl_8DDgjeibnWBhjg6gQg4KgB&rs=AOn4CLA0JCYCx2bWA3dctap6RJ2UKCVmEA&usqp=CBU",
"width": 246
}
],
"view_count_text": "21,147,459 views"
}
}
},
"cursor": null,
"has_more": false
}Response#
A list of Advertiser objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- YouTube channel details (
GET /v1/youtube/channel) - YouTube channel videos (
GET /v1/youtube/channel/videos) - Search inside a YouTube channel (
GET /v1/youtube/channel/search) - YouTube channel playlists (
GET /v1/youtube/channel/playlists) - YouTube channel Shorts (
GET /v1/youtube/channel/shorts) - YouTube channel live streams (
GET /v1/youtube/channel/lives) - YouTube channel community posts (
GET /v1/youtube/channel/community-posts) - YouTube video or Short details (
GET /v1/youtube/video)