GET /v1/youtube/video_sponsors
YouTube sponsors API: brand deals named in a video, by video ID
Returns the sponsor names a video's description or caption track states, each with the text that names it, where it was found and a confidence score, plus YouTube's paid partnership flag. Send video_id as an id or URL. The sponsor list is our own heuristic, not a list YouTube publishes.
- Price
- $0.0010 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/youtube/video_sponsors?video_id=0e3GPea1Tyg' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/youtube/video_sponsors",
params={
"video_id": "0e3GPea1Tyg",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
video_id required | query | string | An 11-character video id, or a watch, Shorts, live, embed or youtu.be URL. |
language | query | string | The language YouTube answers in, a BCP-47 code such as en or pt-BR; omitted is en. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts YouTube (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. |
get_raw | query | boolean | true returns the upstream JSON exactly as YouTube answered it instead of the normalized YouTubeSponsors. |
Example response
The example response of the API reference.
{
"data": {
"video_id": "0e3GPea1Tyg",
"is_paid_partnership": false,
"sponsors": [
{
"name": "beastgames.com",
"confidence": 0.35,
"evidence": "https://www.beastgames.com",
"source": "description_link"
},
{
"name": "prf.hn",
"confidence": 0.35,
"evidence": "https://prf.hn/l/6bNbQB3",
"source": "description_link"
}
]
},
"meta": {
"source": "db",
"fetched_at": "2026-07-21T13:47:07.073680+00:00",
"cost": "$0.0010",
"balance": "$3.3542",
"request_id": "req_73df0dfc30911743f00da430175f738f"
}
}How it works
Sponsor names the description or caption track states, with the phrase that names each. This is our heuristic, not YouTube's own list. Returns YouTubeSponsors under data; with get_raw=true returns the upstream JSON.
A field YouTube does not carry is null, a list it does not carry is [], and YouTube-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the YouTube account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |