urlstringwajib
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).
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
urlstringwajibYouTube video or Short URL.
languagestring2-letter language code for transcript lookup (e.g. en, es, fr).
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
YouTube Video SponsorsAPI ini YouTube | Dari $0.0012 per panggilan | JSON |
YouTube | Dari $0.00045 per panggilan | JSON |
YouTube | Dari $0.0012 per panggilan | JSON |
YouTube | Dari $0.0012 per panggilan | JSON |
YouTube | Dari $0.0012 per panggilan | JSON |
YouTube | $0.014286 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/youtube/video-sponsors dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: url (string). Opsional: language (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. YouTube Video Sponsors berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API YouTube secara terpisah.