The ads one advertiser runs in the Meta Ad Library, by Ad Library page id or company name, with filters and cursor pagination.
2 credits/ call
Never more than 4 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.company_ads" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pageId":"15087023444","country":"US","limit":10}'{
"output": {
"found": true,
"data": {
"totalResults": "<integer | null>",
"nextCursor": "<string | null>",
"ads": [
{
"title": "<string | null>",
"pageLikes": "<integer | null>",
"adCount": "<integer | null>",
"active": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
11 fields
15087023444.US.10.33 fields
Good to know
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.