PeumeAPI

Social media data · Facebook

Search Facebook Ads

Scrape ads from the Meta/Facebook Ad Library by search query or page.

$0.0011 per result

Call it

curl https://api.peume.com/v1/call/search-facebook-ads \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "urls": [],
    "scrapePageAds.period": "",
    "scrapePageAds.activeStatus": "all",
    "scrapePageAds.sortBy": "impressions_desc",
    "scrapePageAds.countryCode": "ALL"
  }
}'

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: search-facebook-ads.

Parameters

urlsRequiredarray

List of facebook ads search URLs or Page URLs to scrape ads from

scrapeAdDetailsboolean

Enable this option to scrape ads details such as EU Reach info

limitPerSourceinteger

Limit number of ads scraped per input URL. Leave it blank to scrape all available ads ℹ️ Actual number might exceed the given limit by upto 30

countinteger

Leave this field empty if you want to limit number of ads scraped

scrapePageAds.periodstring

Search ads in given date range

· last24h · last7d · last14d · last30d

Example:

scrapePageAds.activeStatusstring

all · active · inactive

Example: all

scrapePageAds.sortBystring

Sort by impressions or date. Default: Impressions

impressions_desc · most_recent

Example: impressions_desc

scrapePageAds.countryCodestring

2-letter ISO country code (ISO 3166-1 alpha-2). This should be the official uppercase country code, such as `IN` for India, `US` for United States, etc. Use `ALL` for targeting all countries

Example: ALL

runTagstring

Add this value to 'runTag' column in the output

proxyobject

You can use this option to customise the proxy country

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.