urlstring必須
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).
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
urlstring必須YouTube video or Short URL.
languagestring2-letter language code for transcript lookup (e.g. en, es, fr).
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
YouTube Video Sponsorsこの API YouTube | 1回あたり $0.0012 から | JSON |
YouTube | 1回あたり $0.00045 から | JSON |
YouTube | 1回あたり $0.0012 から | JSON |
YouTube | 1回あたり $0.0012 から | JSON |
YouTube | 1回あたり $0.0012 から | JSON |
YouTube | $0.014286 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/youtube/video-sponsors に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0012 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: url (string)。 任意: language (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。YouTube Video Sponsors は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。YouTube の API アクセスを別途申請する必要はありません。