Call it
curl https://api.peume.com/v1/call/find-a-company-s-facebook-and-instagram-ads \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"company_domain": "nike.com",
"facebook_url": "https://www.facebook.com/nike",
"country_code": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/find-a-company-s-facebook-and-instagram-ads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"company_domain": "nike.com",
"facebook_url": "https://www.facebook.com/nike",
"country_code": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/find-a-company-s-facebook-and-instagram-ads",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"company_domain": "nike.com",
"facebook_url": "https://www.facebook.com/nike",
"country_code": "US"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: find-a-company-s-facebook-and-instagram-ads.
Parameters
company_domainRequiredstringExample: nike.com
facebook_urlstringExample: https://www.facebook.com/nike
country_codestringExample: US
continuation_tokenstringUse the token from the previous response for the next page.
media_typestringimage · meme · image_and_meme · video
active_statusstringinactive · all
Other ways to do it
Same job, other sources, cheapest first.
Ads a Facebook Page runs, by Page id —List every ad a specific Facebook Page is currently runningAds a specific Page is running nowBest sourceAds a specific Page is running now. Checks the cheapest source first and moves to the next one until it finds an answer.Facebook Company AdsList the ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination.ads of one advertiserList the ads one Facebook page runs, from the, with dates, platforms, text, media, and spend for political ads.Facebook ad library company ads by page id or nameFetches all ads currently running for a specific company from the.
