Ad Transcript
Retrieve ad transcript from Facebook Ad Library with a single API request.
/api/data/v1/facebook/adLibrary/ad/transcriptRequest parameters
Up to 30 creditsFacebook Ad Id
Facebook Ad URL
Paid opt-in, enabled only by the literal query value 'true' (allow_long_transcription=true). Defaults to false when omitted; other values do not enable paid mode. By default, successful AI transcription of videos up to 120 seconds (two minu
If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (Returned native captions cost 1 credit, even f
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/facebook/adLibrary/ad/transcript?id=1020359190509080' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"data": {
"ad_id": "1020359190509080",
"url": "https://www.facebook.com/ads/library?id=1020359190509080",
"transcript": "Sample transcript text from the ad video...",
"transcript_available": true
},
"credits_charged": 30,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}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"
},
"data": {
"type": "object",
"properties": {
"ad_id": {
"type": "string"
},
"url": {
"type": "string"
},
"transcript": {
"type": "string"
},
"transcript_available": {
"type": "boolean"
}
}
},
"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."
}
}
}