Advertising4 min readBy Purrkey teamUpdated

How to get a Facebook ad transcript from an ad ID or URL

Get the spoken-word transcript of a Meta Ad Library video ad from an ad ID or URL

On this page

You have 12 Meta Ad Library video ads to check for spoken claims before updating a competitor messaging board. Pass each ad ID or URL to anyapi.facebook.ad_transcript, then record whether a transcript is available and what it says. For the board update itself, see the companion guide on comparing competitor ads

The deliverable is a 12-row worksheet with these columns: adId, url, transcriptAvailable, transcript, found, reason. No run has been executed for this article. Values in the table below are placeholders showing the shape

Example input and worksheet design

Example input, invented: ad ID 1029384756102938. Copy the value from the ad page. Provide either id or url for each ad; the schema lists both as optional strings

Input fieldExample valueUse
id1029384756102938Meta Ad Library ad ID
url(ad URL)Meta Ad Library ad URL

The worksheet design:

adIdurltranscriptAvailabletranscriptfoundreason
(ad id)(ad url)true or false(text or empty)true or falsenot_found or too_long or empty

Values here are placeholders showing the shape. Repeat the row for the 12 ads

What the tool takes and returns

The catalog describes anyapi.facebook.ad_transcript as "Get the spoken-word transcript of a Meta Ad Library video ad by ad ID or URL." Agents call it through POST /v1/runs with toolId anyapi.facebook.ad_transcript

The input has id and url. Both are optional strings, so provide either the Meta Ad Library ad ID or the Meta Ad Library ad URL. Copy the value from the ad page

The output has found and data. data can be null. When data is present, it has adId, url, transcript and transcriptAvailable. reason appears only when found is false

Step 1: collect one ID or URL per ad

Work through the 12 ads and keep one row per ad. Use the ad ID from the ad page as id, or use the ad URL as url. The schema does not require both fields. Put the value you chose into the input and keep the same row for the response

The example ID above is invented. Replace it with a value copied from an ad page before running

Step 2: read found, transcriptAvailable and transcript

Read found first. If found is false, read reason. not_found means the source states the target does not exist, or returned nothing for it. too_long means the video is longer than the source can transcribe. A found: false answer is a successful call, not an error

If found is true, read data.transcriptAvailable. When it is true, data.transcript holds the transcribed ad audio text. Record that text and check the spoken claims against your board. When transcriptAvailable is false, record that value and do not use the row as a source of spoken claims

A video longer than the source can transcribe returns found: false with reason: too_long, and asking again returns the same answer. Do not retry a too_long result

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to get Facebook ad transcripts
for the 12 Meta Ad Library video ads below. Check the current inputs and price of
anyapi.facebook.ad_transcript before running anything. Call the tool once per ad
using either id or url. Return a table with adId, url, transcriptAvailable,
transcript, found and reason. Use found false and reason from the response. Do not
invent transcript text. Do not retry a too_long result.

Example IDs, replace with your ad page values:
1029384756102938
1029384756102939
1029384756102940
1029384756102941
1029384756102942
1029384756102943
1029384756102944
1029384756102945
1029384756102946
1029384756102947
1029384756102948
1029384756102949

Estimated tool cost

Prices from the Purrkey catalog, read November 12, 2026. The tool is listed as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
One ad transcript checkcalls x max price$0.036 per call1$0.036
Twelve-ad transcript reviewcalls x max price$0.036 per call12$0.432

One ad transcript check is 1 call. The twelve-ad transcript review is 12 calls if each ad is sent once. Model fees for the agent are not counted

Next action

Open the Facebook tools page and run one example ad before the 12-ad review

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.
Explore Facebook tools and pricing

FAQ

How do I get a Facebook ad transcript from an ad ID or URL?

Use the Facebook ad transcript tool with either the Meta Ad Library ad ID or the Meta Ad Library ad URL. Record found, data.transcriptAvailable and data.transcript for each ad.

What inputs does the Facebook ad transcript tool take?

It takes id and url, both optional strings. Provide either the Meta Ad Library ad ID or the Meta Ad Library ad URL from the ad page.

What does found false mean for a Facebook ad transcript?

found: false is a successful call, not an error. Read reason; it can be not found or too long.

What does transcriptAvailable mean?

When found is true, read data.transcriptAvailable. If it is true, data.transcript holds the transcribed ad audio text; if it is false, record that value and do not use the row as a source of spoken claims.

What happens if a video is too long to transcribe?

The tool returns found: false with reason: too long. Asking again returns the same answer.

How much does it cost to check 12 Facebook ad transcripts?

The tool is listed at up to $0.036 per call. Twelve calls total at most $0.432, and one call totals at most $0.036.

Can I use a Facebook ad URL instead of an ad ID?

Yes. Provide either id or url; the schema lists both as optional strings.

Next step

Try this with Facebook

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Facebook tools

Share this article