PeumeAPI

Ads · Instagram

Search the by keyword

Search publicly running Facebook and Instagram ads by keyword

$0.0005 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/instagram-search-the-by-keyword \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "search_terms": "project management software",
    "search_type": "KEYWORD_UNORDERED",
    "ad_reached_countries": [
      "US"
    ],
    "fields": "id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_creative_link_captions,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,languages,estimated_audience_size",
    "ad_active_status": "ALL",
    "ad_type": "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: instagram-search-the-by-keyword.

Parameters

search_termsstring

max 100 characters; matched against the ad's text. Required in practice unless you filter by search_page_ids instead

Example: project management software

search_typestring

KEYWORD_UNORDERED (default, all words in any order) | KEYWORD_EXACT_PHRASE

Example: KEYWORD_UNORDERED

ad_reached_countriesRequiredarray

REQUIRED on every ads_archive call. JSON array of ISO country codes, URL-encoded — ["US"] — or ALL

Example: ["US"]

fieldsRequiredstring

comma-separated; nothing but id comes back by default

Example: id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_creative_link_captions,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,languages,estimated_audience_

ad_active_statusstring

ACTIVE (default) | INACTIVE | ALL — ALL is what you want for creative research, since a competitor's best-performing ad may have finished

Example: ALL

ad_typestring

ALL (default) | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS | EMPLOYMENT_ADS | FINANCIAL_PRODUCTS_AND_SERVICES_ADS

Example: ALL

ad_delivery_date_minstring

YYYY-MM-DD; ads that were delivering on or after this date

Example: 2026-06-01

ad_delivery_date_maxstring

YYYY-MM-DD

media_typestring

ALL | IMAGE | MEME | VIDEO | NONE

Example: VIDEO

publisher_platformsarray

FACEBOOK | INSTAGRAM | AUDIENCE_NETWORK | MESSENGER | WHATSAPP | OCULUS | THREADS

Example: ["INSTAGRAM"]

languagesarray

ISO 639-1 codes (plus CMN, YUE)

Example: ["en"]

estimated_audience_size_mininteger

one of the fixed buckets 100 | 1000 | 5000 | 10000 | 50000 | 100000 | 500000 | 1000000

limitinteger

page size; 25 by default, a few hundred is the practical ceiling before Meta starts timing out

Example: 25

afterstring

paging.cursors.after from the previous response

Other ways to do it

Same job, other sources, cheapest first.

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.