Advertiser name in, the first page of that advertiser's Meta Ad Library ads out (creative text, media, active flag, run dates, landing URL).
curl -X POST "https://api.primaryapi.com/v1/run/ads.library_lookup" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"Nike","platform":"facebook","country":"US"}'{
"output": {
"found": true,
"data": {
"totalResults": null,
"nextCursor": null,
"ads": [
{
"title": "Look de invierno activado",
"pageLikes": 37497718,
"active": true,
"pageDeleted": false, …
}
]
}
},
"credits": 4
}Input and output
3 fields
Nike.facebook.US.33 fields
Good to know
Charged once at this price and free when no ads are found.
For deeper paging or filters call facebook.company_ads directly.
The same key and credits work for every API.