Introducing the Instagram APIRead more →

Facebook Ad Transcript API. Send an ad link or ID.

Timed transcript of what a video ad says. We handle the proxies, blocks and platform changes.

Facebook Ad Transcript API at a glance

Returns the timed transcript of a video ad from Meta's public Ad Library, by its link or Library ID, transcribed from the ad's audio. You get the full text, segments with their start and end times, the spoken language and the video's length. It works on single-video ads and on dynamic ads whose variations are videos, running or not.

GET /v1/facebook/ad_transcript

Read the API reference
  • 2 credits per request, +2 per started minute of media, up to 122 credits, $1.50–$3.93 per 1,000 requests
  • 10 typed fields null when unknown
  • url is all it needs, e.g. https://www.facebook.com/ads/library/?id=1448538159982118
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 10 fields back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://www.facebook.com/ads/library/?id=1448538159982118
GET /v1/facebook/ad_transcriptTry in
const params = new URLSearchParams({
  url: "https://www.facebook.com/ads/library/?id=1448538159982118",
});
const res = await fetch(`https://socialtap.dev/v1/facebook/ad_transcript?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/facebook/ad_transcriptLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 9 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Facebook Ad Library doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The video ad's Meta Ad Library link (facebook.com/ads/library/?id=…), the official Ad Library API's ad_snapshot_url (facebook.com/ads/archive/render_ad/?id=…), or its Library ID.

  • Write one parser

    Facebook Ad Library, TikTok, Instagram and 6 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform the media is hosted on.
idstring
Platform-native ID of the post (equals post.id); of an ad library entry, its library ID (equals ad.id).
urlstring
Canonical URL of the post (of an ad library entry, its library page).
languagestring
BCP-47 language of the returned transcript; null when unknown.
sourcestring
captions = platform caption track; asr = speech-to-text on the audio. New values may be added.
is_auto_generatedboolean
True when the track was machine-generated (platform auto-captions or ASR).
available_languagesstring[]
BCP-47 caption languages the platform offers for this post; [] if none or not listed.
duration_msinteger
Media duration in milliseconds; null when unknown.

What teams build with the Facebook Ad Transcript API.

  • Analyze competitors' video ad scripts

  • Compare the hooks and offers ads say aloud

  • Translate or summarize a video ad

  • Build a swipe file of ad scripts

Good to know before you build.

  • Ad Library videos carry no captions, so every transcript is speech-to-text on the ad's video, priced per started minute of it, and is_auto_generated is always true.
  • An ad without a video, an older ad whose video Meta no longer keeps, and a video with no speech (music only) return no_transcript. Sung lyrics can come back as speech.
  • A dynamic ad with several video variations returns the speech of the first one that has any. The Facebook Ad Library Ad API returns every variation.

From 2 credits per request. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful requestPer 1,000 requests
Speech-to-text asr2 credits + 2 per started minute of media
up to 122 credits (60 started minutes of media)
$1.50–$3.93 + $1.50–$3.93 per started minute of media
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Facebook Ad Transcript API.

More in the API reference.

Where do I find an ad's Library ID?
In the ad's Ad Library link (facebook.com/ads/library/?id=…) or under "Library ID" on its card. Every ad the Facebook Ad Library Search API returns carries it as id.
Do ads that stopped running work?
Yes, active or inactive, as long as Meta still serves the ad's video.
How much does the Facebook Ad Transcript API cost?
A request costs 2 credits + 2 per started minute of media, up to 122 credits (60 started minutes of media). SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs