Docs menu

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_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofVideo or Short URL (watch, youtu.be, shorts, live, embed). Accepted hosts: youtube.com, youtu.be.
idstringone of11-character video id. Also accepted as videoId, video_id.
languagestringno2-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: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • 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
curl -G "https://api.socialscrape.io/v1/youtube/video/sponsors" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "id=JsBZOcqZerk"
Python
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"])
TypeScript
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);
}
n8n
{
  "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.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe 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.