facebook/
ad-transcript

The Facebook Ad Transcript API extracts available spoken-word transcripts from Facebook Ad Library URLs, returning text, language, format, collection time, source links, and shortcode context.

Facebook Ad Transcript API

Ad transcripts
Ad Library URLs
Source-linked text
0.5 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

Facebook Ad Transcript

Facebook Ad Transcript refers to spoken-word records tied to Ad Library targets, with source URLs, text, language, format, collection time, and optional shortcode context. These records support message review, keyword indexing, language-aware processing, and source-linked archives.

Facebook Ad Transcript API Features

  • Ad Library URL batchesSend Ad Library URLs from supported Facebook hosts, and the Facebook Ad Transcript API processes each unique URL as an independent transcript target.
  • Source-linked spoken textReturn non-empty transcript text with its submitted source URL and an identifier that falls back to the URL when no source ID is present.
  • Language and format contextInclude a nullable source language, plaintext or WebVTT format, collection time, and optional shortcode in the normalized record.
  • Available-only recordsSave a result only when the selected ad target yields non-empty transcript content, so a successful task can return fewer records than submitted URLs.

Facebook Ad Transcript API Parameters

ParametersRequiredDescription
urlsRequiredFacebook Ad Library URLs on supported Facebook hosts, separated by commas or new lines; each path must contain /ads/library.

How to Use the Facebook Ad Transcript API

Submit Ad Library URLs to the Facebook Ad Transcript API, then reconcile returned source URLs because only targets with non-empty transcript text produce result items.

  1. Prepare one or more Facebook Ad Library URLs whose host is facebook.com, www.facebook.com, or m.facebook.com and whose path contains /ads/library.
  2. POST urls to /v1/facebook/ad-transcript, then store the returned task_id.
  3. Poll /v1/tasks/{task_id} until the task succeeds or fails.
  4. Read data.results.items, and when results.has_more is true request the next page with results.next_cursor.
curl -X POST "https://api.socq.ai/v1/facebook/ad-transcript" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.facebook.com/ads/library/?id=123456789012345"]}'

# Poll GET /v1/tasks/{task_id}
# Continue with GET /v1/tasks/{task_id}?limit=50&cursor={next_cursor}

Facebook Ad Transcript API Use Cases

  • Advertising message review: Read source-linked transcript text to compare the spoken wording used across a selected set of public ad targets.
  • Ad speech search indexing: Index Facebook Ad Transcript API text with record IDs, source URLs, collection times, and shortcode context so known ad transcripts can be searched by spoken terms.
  • Transcript processing routing: Use language and format fields to route plaintext and WebVTT records into the appropriate text, subtitle, or language-processing pipeline.

Facebook Ad Transcript API Pro Tips

  • Use a supported Facebook host and retain /ads/library in every URL path; other hosts or paths fail request validation.
  • Canonicalize Ad Library URLs before batching when the same target appears with different query strings, because the collector removes only exact duplicate strings.
  • Compare returned url values with the submitted list after success so unsupported ads and targets without non-empty transcript content remain visible to your workflow.
  • Branch parsing on format and handle language and extra.shortcode as nullable values; created_at is reserved and currently returns null.
  • Follow results.next_cursor while results.has_more is true when a large URL batch spans more than the requested result-page limit.

Beyond the Facebook Ad Transcript API, use these APIs when you need a different type of public Facebook data.

  • Facebook Pages API — Retrieve public Page profiles, contact details, images, and visible audience ratings.
  • Facebook Posts API — Collect public posts, media, reactions, comments, and shares from supported Facebook URLs.
  • Facebook Video Transcript API — Extract available transcript text and format from known public video post or Reel URLs.
  • Facebook Group Posts API — Collect public posts from Facebook group URLs with selectable ordering, per-group limits, author context, video media, and visible engagement.
  • Facebook Profile Photos API — Collect public photos from profile or Page URLs with captions, author context, engagement, image metadata, and source references.
  • Facebook Reels API — Collect public Reels from profile or Page URLs with captions, author context, video metadata, visible engagement, and source references.

Explore other platforms

Combine Facebook data with public data from other supported social platforms.

Facebook Ad Transcript API — FAQ

Facebook Ad Transcript API is a programmatic interface for turning spoken content from supported Facebook Ad Library URLs into searchable transcript records, making ad messaging easier to review and index. Teams can use those records for creative research, keyword archiving, and language analysis, provided the source exposes non-empty transcript text.

Each urls item must use facebook.com, www.facebook.com, or m.facebook.com and include /ads/library in its path. Validation does not require a numeric ad ID, but the submitted target still must resolve to supported transcript content.

Each normalized record includes id, platform, resource, type, url, text, nullable language, format, null created_at, collected_at, and extra.shortcode. It does not add advertiser, spend, reach, targeting, creative media, or engagement fields.

The collector requests each unique URL independently and saves a record only when the source returns non-empty transcript content. Unsupported targets or ads without accessible spoken text therefore produce no placeholder result.

Treat language as nullable because the source may not provide a label. Read format before parsing text: content beginning with a WebVTT header is labeled webvtt, and other transcript content is labeled plaintext.

The Facebook Ad Transcript API costs 0.5 credits for each normalized transcript record returned. A URL that produces no saved result incurs no per-result charge under the current empty-result policy.

By SocQ · Updated

From the official Facebook API documentation:

“The Page Public Content Access feature allows an app access to the Pages Search API and to read public data for Pages […] This permission or feature requires successful completion of the App Review process before your app can access live data.”
Meta for Developers: Page Public Content Access · accessed November 2026