Platforms · Facebook

Facebook Ad Library Ad Transcript Scraper API

Retrieves a transcript for a single Facebook Ad Library video ad. Uses Facebook-provided captions when available, otherwise transcribes the public video URL on demand.

GET /api/v1/data/facebook/adlibrary-ad-transcript · 10 credits per call · The same call repeated within 30 days may get the same answer, so data can be up to 30 days old.

Inputs

  • id (required): Facebook Ad Library ad ID.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.ad_id (string): The ad's id in the Ad Library.
  • source_data.duration_minutes (number): The ad video's length in minutes.
  • source_data.duration_seconds (number): The ad video's length in seconds.
  • source_data.transcript (string): Full transcript text. Plain string for TikTok/Facebook/Twitter; see `transcripts` for Instagram and the segmented YouTube shape.
  • source_data.transcript_available (boolean): Whether a transcript was found for the ad.
  • source_data.transcript_format (string): The form of `transcript`: `webvtt` is WebVTT cues with timestamps and `text` is plain text.
  • source_data.transcripts (array): Instagram transcript entries.
  • source_data.transcripts.text (string): The transcript text.
  • source_data.url (string): The ad's link in the Ad Library.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 10 credits. A call that finds nothing, or fails, is free.
  • The same call repeated within 30 days may get the same answer, so data can be up to 30 days old.

Example call

GET /api/v1/data/facebook/adlibrary-ad-transcript?id=1126618083054464

Questions

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

Each call costs 10 credits. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send id. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 30 days may get the same answer, so data can be up to 30 days old.

Do I need a Facebook account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Facebook endpoints

More Facebook scraper APIs