Facebook Ad Library
GET /v1/ad-library/facebook/ad-transcript

Facebook Ad Copy API

Written creative copy from a Meta ad — headline, body, CTA, landing URL. Not a speech transcript.

2 credits per request
TL;DR
Written creative copy from a Meta ad — headline, body, CTA, landing URL. Not a speech transcript. The Facebook Ad Copy API (Facebook Ad Library) is a single authenticated GET request to /v1/ad-library/facebook/ad-transcript that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the Facebook Ad Copy API?

Returns the ad's written copy — headline, body text, CTA and landing URL. Meta does not expose ad audio, so this is not a speech transcript. Paste a Meta Ad Library ad URL or ad ID. There is no speaker, start, duration, timestamp, or segments array (those belong on instagram/transcript and tiktok/transcript). The path /ad-transcript is kept for compatibility. Always 2 credits.

What you get

  • headline / text / cta / landingUrl as copy fields
  • Not a timed transcript — Meta does not expose ad audio
  • Same advertiser{} as ad-details
  • Always 2 credits

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/ad-library/facebook/ad-transcript?url=https%3A%2F%2Fwww.facebook.com%2Fads%2Flibrary%2F%3Fid%3D317161109571794" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "platform": "facebook_ad_library",
    "url": "https://www.facebook.com/ads/library/?id=317161109571794",
    "adId": "317161109571794",
    "transcript": "headline: Voting Information Center\nbody: The Voting Information Center—one-tap voting registration information from election experts and authorities in one place.\ncta: Learn more\nlandingUrl: http://facebook.com/votinginformationcenter",
    "transcriptSegments": [
      {
        "speaker": "headline",
        "text": "Voting Information Center",
        "start": 0,
        "duration": 0,
        "timestamp": "00:00"
      },
      {
        "speaker": "body",
        "text": "The Voting Information Center—one-tap voting registration information from election experts and authorities in one place.",
        "start": 0,
        "duration": 0,
        "timestamp": "00:00"
      },
      {
        "speaker": "cta",
        "text": "Learn more",
        "start": 0,
        "duration": 0,
        "timestamp": "00:00"
      },
      {
        "speaker": "landingUrl",
        "text": "http://facebook.com/votinginformationcenter",
        "start": 0,
        "duration": 0,
        "timestamp": "00:00"
      }
    ],
    "wordCount": 25,
    "segments": 4,
    "advertiser": {
      "id": "108824017345866",
      "name": "Meta",
      "url": "https://www.facebook.com/Meta/",
      "logo": "https://scontent-dfw5-2.xx.fbcdn.net/v/t1.6435-9/119568341_200337161527884_7846459746434232698_n.png?stp=dst-png_s60x60&_nc_cat=100&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=ZqrAiU5uA1sQ7kNvwHsXpf9&_nc_oc=AdqVVq_tCCm9QfdHEQa5d82UKJTt9DT4LxrW9m95vTx7VJLcyuQH74gIZv0WeiJgIfo&_nc_zt=23&_nc_ht=scontent-dfw5-2.xx&_nc_gid=oKi5rqU7-78Y6XFLpAVqvA&_nc_ss=79289&oh=00_AQDIgONmGu5lj1i0jpr_nH9fjb7afatDtlB-wsXtBQNtZQ&oe=6A8F324E"
    }
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success and a data object with the following fields:

Top-level fields

  • platformPlatform identifier for this response (matches the endpoint's platform).
  • urlCanonical URL of the item.
  • adIdAd id. Example: "317161109571794".
  • transcriptComplete text transcript (file-upload endpoints). Timed caption/ASR endpoints use text instead.
  • wordCountTotal number of words in the transcript (file-upload endpoints).
  • segmentsTimed caption/ASR: array of {text,startMs,endMs}. File-upload video-transcript: segment count. Sponsor endpoints: sponsor segment list.

Transcript segments

Each item in transcriptSegments contains:

  • speakerSpeaker label for the segment.
  • textBody copy of the creative. Not spoken audio.
  • startStart time in seconds.
  • durationDuration when present — prefer durationSeconds (number) and durationText on endpoints that expose both.
  • timestampHuman-readable timestamp (MM:SS format).

Advertiser

The advertiser object contains:

  • idId of this advertiser item.
  • nameName of this advertiser item.
  • urlCanonical URL of the item.
  • logoLogo image URL.

Parameters

NameTypeRequiredDescription
urlstringYesMeta Ad Library ad URL or ad ID. Returns the ad's written copy — headline, body text, CTA and landing URL. Meta does not expose ad audio, so this is not a speech transcript. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool facebook_ad_library_ad_transcript via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/ad-library/facebook/ad-transcript and parse the JSON response.

Use cases

Metadata Enrichment

Resolve a URL to structured fields for storage and CRM.

Dashboards

Power reporting with clean JSON instead of HTML scrapes.

Research

Collect entity metadata at scale for analysis.

Frequently asked questions

What does the Facebook Ad Copy API do?+

The Facebook Ad Copy API lets you fetch full metadata and key stats from a public Facebook Ad Library ad using one GET request to /v1/ad-library/facebook/ad-transcript. It returns clean JSON — no OAuth or infrastructure setup required.

How many credits does the Facebook Ad Copy API cost?+

Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.

Do I need a Facebook Ad Library API key or OAuth?+

No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.

Is the Facebook Ad Copy API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.

More Facebook Ad Library APIs

Ready to use the Facebook Ad Copy API?

Sign up, grab your key, and make your first call in 60 seconds.

Facebook Ad Copy API | Captapi — Captapi