urlstringerforderlich
YouTube video or Short URL.
https://api.sandbase.ai/v1/api/youtube/video-sponsorsDetect suspected sponsors and paid promotions in a YouTube video by URL (sponsor names, websites, confidence).
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns whether a YouTube video or Short looks like a paid promotion, plus a list of suspected sponsors with their websites and a confidence level. It also returns basic video and channel details. It needs a video URL.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/video-sponsors" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.youtube.com/watch?v=AVO0ifle-OU"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | YouTube video or Short URL. |
language | string | No | 2-letter language code for transcript lookup (e.g. en, es, fr). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"authorAvatarUrl": "https://yt3.ggpht.com/qmx-SPJT3bDScwd8KC4APZP82cpOoMN1b-kqdl5eASn8pub6jSBxWpq3OO…",
"authorHandle": "letsKWOOWK",
"authorId": "UC3vQEjRhwgH2HAOBKwLjxNA",
"authorName": "KWOOWK",
"authorUrl": "https://www.youtube.com/@letsKWOOWK",
"detectionStatus": "found",
"isPaidPromotion": true,
"suspectedSponsors": [
{
"confidence": "medium",
"name": "Betterhelp",
"website": "betterhelp.com"
}
],
"title": "Why You Should Meal Prep Like A Restaurant",
"url": "https://www.youtube.com/watch?v=AVO0ifle-OU",
"videoId": "AVO0ifle-OU"
},
"found": true
}
| Field | Meaning |
|---|---|
data.isPaidPromotion | true when the video is flagged as a paid promotion. |
data.detectionStatus | Result of the sponsor check. The sample shows found when sponsors were detected. |
data.suspectedSponsors[].name | Name of the suspected sponsor. |
data.suspectedSponsors[].website | Website of the suspected sponsor, given as a domain. |
data.suspectedSponsors[].confidence | Confidence level for that sponsor match. The sample shows medium. |
data.title | Title of the video. |
data.videoId / data.url | Video ID and full URL of the video that was checked. |
data.authorName / data.authorHandle | Display name and handle of the channel that posted the video. |
data.authorId / data.authorUrl | Channel ID and channel URL of the author. |
found | true when the lookup returned a result for the video. |
url. The optional language parameter takes a 2-letter code such as en and sets the transcript language used for the lookup.UC3vQEjRhwgH2HAOBKwLjxNA start with UC. Use data.authorId or the handle to look up the channel with YouTube Channel.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/video-sponsors" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/watch?v=AVO0ifle-OU"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
urlstringerforderlichYouTube video or Short URL.
languagestring2-letter language code for transcript lookup (e.g. en, es, fr).
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
YouTube Video SponsorsDiese API YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.00045 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | $0.014286 pro Aufruf | JSON |
Anleitungen:Best YouTube API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/youtube/video-sponsors mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: url (string). Optional: language (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. YouTube Video Sponsors läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für YouTube API beantragen.