Ad details
Retrieve an ad with creative variants, payer and beneficiary information, and EU, UK or Brazil transparency. Set includeTranscript=true to transcribe its primary video.
/v1/facebook/adLibrary/adx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Exact numeric archive ID, supplied as a string. Use id or url, not both.
123456789012345678Canonical HTTPS facebook.com/ads/library/?id= URL.
max 4096 chars
Use the compact field projection while preserving creative snapshots and regional transparency.
one of: true, false
Recognize speech in the first available primary or carousel video. Requires configured local Whisper and FFmpeg.
one of: true, false
Accepted freshness hint; every response is fetched live and returns cached=false.
one of: 1d, 3d, 7d, 14d, 30d
Whether usable public data was retrieved.
Query filter: ACTIVE (default), INACTIVE or ALL. Response: success, partial, failed or challenged.
one of: success, partial
Request correlation ID.
Canonical public library URL.
absolute HTTPS URL
UTC retrieval time.
Completeness of the bounded source result, with explicit auxiliary-data warnings.
Always included.
Always included.
Always included.
Upstream requests, decoded response bytes and elapsed milliseconds. Page 1 includes browser bootstrap traffic; a warm continuation is one GraphQL POST.
Always included.
0 – 100
Always included.
≥ 0
Always included.
≥ 0
Exact archive ID as a string.
Advertiser page ID as a string.
Source active status.
Creative fields and every returned carousel card; card titles can differ from the main title.
No fields match.
HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.
| HTTP | failure.code | Meaning |
|---|---|---|
| 400 | invalid_request | Invalid, conflicting or unsupported parameters/cursor. |
| 401 | unauthorized | Missing or invalid x-api-key. |
| 403 | restricted_page | Source marks the ad restricted. |
| 404 | not_found | Explicitly absent ad or no exact company match. |
| 429 | upstream_rate_limited | Meta rate limit after at most two fresh proxy-session retries; direct egress is never retried on the same IP. |
| 502 | upstream_error upstream_challenged unsupported_page | Source failed, challenged, or returned unsupported data. |
| 502 | response_too_large request_limit payload_too_complex | An operation bound was exceeded. |
| 503 | busy | Both retrieval slots are occupied. |
| 504 | timeout | The operation deadline expired. |
| 503 | transcription_unavailable | Local speech runtime is not configured. |
| 502 | transcription_failed | Media decoding or speech recognition failed. |
| 422 | transcription_too_long | Video exceeds the 180-second speech limit. |