Insight Social
GET /v1/facebook/adlibrary/ad/transcript

Facebook Ad Library Ad Transcript API

Returns the spoken words of a Facebook Ad Library video ad, from Facebook's captions when available or transcribed from the video itself.

100 credits a call · single call · failed calls free · 10 free calls to start

curl "https://api.insightsocial.app/v1/facebook/adlibrary/ad/transcript?id=<id>" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "facebook",
"endpoint": "/v1/facebook/adlibrary/ad/transcript",
"schema_version": "2",
"data": {
"transcript": {
"language": "<string | null>",
"text": "<string | null>",
"segments": "<array | null>"
}
},
"unavailable": [],
"credits_used": "<integer>"
}

When to use it

Use it when you need what an ad says out loud; adlibrary/ad returns the creative and spend but not the speech.

Parameters

Query parameters for GET /v1/facebook/adlibrary/ad/transcript. Send your key in the x-api-key header.

NameRequiredDescription
idOne of id, urlFacebook Ad Library ad ID. Ad ids rotate as campaigns end, so take a current one from /v1/facebook/adlibrary/company/ads rather than reusing an old one.
urlOne of url, idFacebook Ad Library URL for the ad. A page URL is rejected with a 400.

Response fields

The same unified schema every platform returns, so code written for Facebook works on the other eight. A field the platform did not provide is null and listed in unavailable.

FieldTypeNotes
languagestring | nullThe content's language as the platform states it, e.g. en, pt-BR. Detected languages come later (§7.1).
textstring | null
segmentsarray | null

Every field, error and example is in the Facebook Ad Library Ad Transcript API reference.

How much does the Facebook Ad Library Ad Transcript API cost?

100 credits per successful call.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Know the price first

    Add dry_run=1 and the response quotes the call without making it. Nothing is charged.

  • One balance

    API calls and Chrome extension exports share the same credits, on the free plan too.

Facebook Ad Library Ad Transcript API: frequently asked questions

Send GET /v1/facebook/adlibrary/ad/transcript with either id or url and your key in the x-api-key header. Returns the spoken words of a Facebook Ad Library video ad, from Facebook's captions when available or transcribed from the video itself.