Skip to content

Structured Facebook data: send urls. Single lookup, 3 credits per successful call.

GET · POST3 credits / successful callSingle lookup
GEThttps://api.scrapier.io/api/v2/facebook-ad-library-transcript/Open in Playground

Call GET /api/v2/facebook-ad-library-transcript/ with urls. The results are in data.ad. 5 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/facebook-ad-library-transcript/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "urls=1700351324346955" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
urlsstringyese.g. 1700351324346955Ad Library URL or bare numeric ad_archive_id. Lookup endpoint -- next_cursor null.
model_sizestringnobaseNo description in the catalog yet.
tinybasesmallmediumlarge-v3
languagestringno—No description in the catalog yet.
beam_sizeintegerno2No description in the catalog yet.
vad_filterbooleannotrueNo description in the catalog yet.
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"urls": "1700351324346955",
"ad": {
"input_url": "1700351324346955",
"success": true,
"ad_id": "1700351324346955",
"url": "https://www.facebook.com/ads/library?id=1700351324346955",
"transcript": "I have kind of a side hustle. I like to buy and sell clothing...",
"transcript_available": true
},
"next_cursor": null
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.ad.

FieldTypeExampleDescription
urlsstring1700351324346955—
adobject{…}The results.
next_cursornullnullPass back as cursor for the next page. null on the last page.
ad.input_urlstring1700351324346955—
ad.successbooleantrue—
ad.ad_idstring1700351324346955—
ad.urlstringhttps://www.facebook.com/ads/library?id=17003…—
ad.transcriptstringI have kind of a side hustle. I like to buy a…—
ad.transcript_availablebooleantrue—

Returns everything in one call; next_cursor is always null.

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • The response data carries its own success field from the scraper. The outer success is what counts: an HTTP 200 with outer success: true is billed, even if the inner field says otherwise.
  • Facebook Ad Library — Structured Facebook data: send urls. Cursor-paginated, 1 credit per successful call.
  • Facebook Ad Library Leads — Structured Facebook data: send urls. Cursor-paginated, 2 credits per successful call.
  • Facebook Comment Replies — Structured Facebook data: send feedback_id. Cursor-paginated, 1 credit per successful call.
  • Facebook Comments — Structured Facebook data: send urls. Cursor-paginated, 1 credit per successful call.