YOUTUBE API
Video Sponsors
Retrieve video sponsors from YouTube with a single API request.
GET
/api/data/v1/youtube/video/sponsors1credit base cost
Request parameters
Up to 1 creditYouTube video or short URL
2 letter language code used for transcript lookup, ie 'en', 'es', 'fr' etc.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/youtube/video/sponsors?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAVO0ifle-OU' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"video": {
"id": "AVO0ifle-OU",
"url": "https://www.youtube.com/watch?v=AVO0ifle-OU",
"title": "Why You Should Meal Prep Like A Restaurant",
"channel": {
"id": "UC3vQEjRhwgH2HAOBKwLjxNA",
"url": "https://www.youtube.com/@letsKWOOWK",
"handle": "letsKWOOWK",
"title": "KWOOWK"
},
"isPaidPromotion": true
},
"suspectedSponsors": [
{
"name": "Betterhelp",
"website": "betterhelp.com",
"confidence": "medium",
"evidence": [
{
"source": "description_link",
"text": "If you're struggling, consider therapy with our sponsor BetterHelp. Click https://betterhelp.com/KWOOWK for a 10% discount..."
}
]
}
],
"sponsorDetection": {
"status": "found",
"methods": [
"paid promotion badge"
],
"transcriptAvailable": true,
"note": "Sponsors are inferred from public description, links, promo-code text, and transcript evidence."
},
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"video": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"channel": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"handle": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"isPaidPromotion": {
"type": "boolean"
}
}
},
"suspectedSponsors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"website": {
"type": "string"
},
"confidence": {
"type": "string"
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"text": {
"type": "string"
}
}
}
}
}
}
},
"sponsorDetection": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"methods": {
"type": "array",
"items": {
"type": "string"
}
},
"transcriptAvailable": {
"type": "boolean"
},
"note": {
"type": "string"
}
}
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}