urlstringobbligatorio
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).
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
urlstringobbligatorioYouTube video or Short URL.
languagestring2-letter language code for transcript lookup (e.g. en, es, fr).
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
YouTube Video SponsorsQuesta API YouTube | Da $0.0012 per chiamata | JSON |
YouTube | Da $0.00045 per chiamata | JSON |
YouTube | Da $0.0012 per chiamata | JSON |
YouTube | Da $0.0012 per chiamata | JSON |
YouTube | Da $0.0012 per chiamata | JSON |
YouTube | $0.014286 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/youtube/video-sponsors con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.0012 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: url (string). Facoltativi: language (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. YouTube Video Sponsors funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API YouTube.