One Meta Ad Library ad by id or URL: advertiser, creative text, call to action, platforms, run dates and media.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.ad_details" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"1016451784037642"}'{
"output": {
"found": true,
"data": {
"title": "<string | null>",
"pageLikes": "<integer | null>",
"adCount": "<integer | null>",
"active": "<boolean | null>", …
}
},
"credits": 2
}Input and output
2 fields
1016451784037642.33 fields
Good to know
Ad media URLs expire. Ad media URLs are expiring CDN links. Save the file if you need to keep it.
Ad creative belongs to the advertiser. Expose URLs only.
The same key and credits work for every API.