Facebook Scraper
Get Facebook Ad Library Ad Details
Get a Facebook ad's details from its ID or URL: page, active status, run dates, text, images, videos and link.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| idstring · optional | string | optional | Facebook Ad Id |
| urlstring · optional | string | optional | Facebook Ad URL |
| trimboolean · optional | boolean | optional | Set to true for a trimmed down version of the response |
| cache_max_agestring · optional | string | optional | See the Caching page for details. One of: |
| get_transcriptboolean · optional | boolean | optional | Transcription is opt-in via get_transcript=true. Over 120 seconds, videos cannot be AI-transcribed by default. These routes remain synchronous. Allow at least 30 seconds on your client. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"pageID": {
"type": "number"
},
"endDate": {
"type": "number"
},
"isActive": {
"type": "boolean"
},
"pageName": {
"type": "string"
},
"snapshot": {
"type": "object",
"additionalProperties": {}
},
"adArchiveID": {
"type": "number"
},
"isAAAEligible": {
"type": "boolean"
},
"reachEstimate": {},
"totalActiveTime": {
"type": "number"
},
"politicalCountries": {
"type": "array"
}
},
"additionalProperties": true
}