YouTube video sponsors API

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.

GETapi.socialscrape.io/v1/youtube/video/sponsors
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

Experimental. An inference, not a statement from YouTube; parent is the video.

You send one of url or id.

Request

Send your key in the x-api-key header.

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,
    timeout=60,
)
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": {}
}

Parameters

NameTypeRequiredDescription
urlurlone ofVideo or Short URL (watch, youtu.be, shorts, live, embed).
idstringone of11-character video id. Also accepted as videoId, video_id.
languagestring2-letter language used for the transcript lookup. Also accepted as lang.
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "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 ..."
          ],
          "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 ...",
      "published_at": "2026-09-21T17:49:57Z",
      "duration_seconds": 2861,
      "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"
          }
        ]
      }
    }
  },
  "cursor": null,
  "has_more": false
}

Fields

A page of results. Each entry in items is a Advertiser. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"advertiser"
platformPlatformyesthe ad library's platform
idstring or null
namestring or null
urlstring or null
page_idstring or null
countrystring or null
verifiedboolean or null
ad_countinteger or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The preview Python client has client.youtube.video_sponsors(...) and the TypeScript client client.youtube.videoSponsors(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access