YouTube video sponsors API
Who sponsored a YouTube video, inferred from the paid-promotion disclosure, sponsor wording, links and promo codes in the description, and the transcript, each sponsor with evidence and a confidence.
GET /v1/youtube/videos/{id}/sponsorsBeta3 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/videos/AVO0ifle-OU/sponsors",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 3 credits{ "kind": "youtube#videoSponsors", "videoId": "AVO0ifle-OU", "title": "Why You Should Meal Prep Like A Restaurant", "channel": { "id": "UC3vQEjRhwgH2HAOBKwLjxNA", "title": "KWOOWK", "handle": "@letsKWOOWK", "url": "https://www.youtube.com/@letsKWOOWK", "thumbnails": { "default": { "url": "https://yt3.ggpht.com/qmx-SPJT3bDScwd8KC4APZP82cpOoMN1b-kqdl5eASn8pub6jSBxWpq3OO88Wa1fQGWmPVpU=s88-c-k-c0x00ffffff-no-rj", "width": 88, "height": 88 }, "medium": { "url": "https://yt3.ggpht.com/qmx-SPJT3bDScwd8KC4APZP82cpOoMN1b-kqdl5eASn8pub6jSBxWpq3OO88Wa1fQGWmPVpU=s240-c-k-c0x00ffffff-no-r…", "width": 240, "height": 240 }, "high": { "url": "https://yt3.ggpht.com/qmx-SPJT3bDScwd8KC4APZP82cpOoMN1b-kqdl5eASn8pub6jSBxWpq3OO88Wa1fQGWmPVpU=s800-c-k-c0x00ffffff-no-r…", "width": 800, "height": 800 } }, "subscriberCount": "4360000", "isVerified": true }, "hasPaidProductPlacement": true, "sponsors": [ { "name": "Betterhelp", "domain": "betterhelp.com", "url": "https://betterhelp.com/KWOOWK", "confidence": "high", "evidence": [ { "source": "paid_promotion_label", "text": "Includes paid promotion" }, { "source": "description_link", "text": "If you're struggling, consider therapy with our sponsor BetterHelp. Click https://betterhelp.com/KWOOWK for a 10% discou…" } ] } ], "transcriptChecked": false, "method": "Inferred from YouTube’s paid-promotion disclosure, sponsor wording, links and promo codes in the description, and the tr…"}Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string | A video or Short id, or any URL of it (watch, youtu.be, shorts, live, embed). Example: dQw4w9WgXcQ. |
languagequery | string | Transcript language to search (default: original). Example: en. |
Response fields
200 with a YouTubeVideoSponsors, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#videoSponsors" | |
videoId | string | |
title | string | |
channel | YouTubeChannelRef | The channel a video or post belongs to (not a Data API part). |
hasPaidProductPlacement | boolean | YouTube’s “Includes paid promotion” disclosure. |
sponsors | YouTubeSponsor[] | |
transcriptChecked | boolean | |
method | string | How sponsors were found: inferred from the disclosure, sponsor wording and links in the description and transcript. Not an official YouTube field. |
Status codes
| Status | Meaning |
|---|---|
200 | Suspected sponsors with evidence. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Is this an official YouTube field?
No. YouTube says that a video includes paid promotion, rarely by whom; the sponsors are inferred and every one carries its evidence.
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.