PeumeAPI

Ads

Search the public Ad Library

Searches Meta's or LinkedIn's public Ad Library to see what ads other advertisers run, for competitor and market research.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/search-the-public-ad-library \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "adType": "ALL",
    "status": "ACTIVE",
    "searchType": "KEYWORD_UNORDERED",
    "fields": "id,page_name,ad_delivery_start_time,ad_creative_bodies",
    "includeMedia": false,
    "limit": 25
  }
}'

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-the-public-ad-library.

Parameters

platformstring

Which archive to search. `meta` needs no accountId. Required unless accountId is given.

meta · linkedin

accountIdstring

SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account only selects the platform.

qstring

Keyword search. Meta does not translate it, so write it in the ads' language. Required unless pageIds (Meta) or advertiser (LinkedIn) is given.

pageIdsstring

Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.

advertiserstring

LinkedIn only. Advertiser (Page) name to search.

countriesstring

Comma-separated ISO 3166-1 alpha-2 codes the ads reached. Meta defaults to ALL (an explicit ALL is Meta-only); LinkedIn searches every market when omitted.

adTypestring

Meta only.

ALL · POLITICAL_AND_ISSUE_ADS · HOUSING_ADS · EMPLOYMENT_ADS · FINANCIAL_PRODUCTS_AND_SERVICES_ADS

Example: ALL

statusstring

Meta only. ACTIVE = eligible for delivery right now.

ACTIVE · INACTIVE · ALL

Example: ACTIVE

platformsstring

Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.

mediaTypestring

Meta only.

ALL · IMAGE · MEME · VIDEO · NONE

languagesstring

Meta only. Comma-separated ISO 639-1 codes of the ad text.

sincestring

Meta only. Earliest delivery date (YYYY-MM-DD). LinkedIn's archive does not filter by date, so it is a 400 there: filter on details.adStatistics.firstImpressionAt / latestImpressionAt instead (EU-delivered ads only).

untilstring

Meta only. Latest delivery date (YYYY-MM-DD); a 400 on LinkedIn, see since.

searchTypestring

Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them).

KEYWORD_UNORDERED · KEYWORD_EXACT_PHRASE

Example: KEYWORD_UNORDERED

fieldsstring

Meta only. Comma-separated Graph field override. Supports nested {} projections and Graph field modifiers, so a nested edge can be paged explicitly: without a.limit modifier the expansion runs at the Meta default page size and the tail is dropped silently.

Example: id,page_name,ad_delivery_start_time,ad_creative_bodies

includeMediaboolean

Meta only. When `true`, each row also carries `media`: the ad's rendered creative (images, videos, carousel cards) as direct file URLs, so you don't have to open `ad_snapshot_url` yourself. It also carries `destination_urls`: where the ad sends people (landing page, WhatsApp, app store), unwrapped from Facebook's redirect, in the order the ad shows them. Meta's archive does not return these itself. - Meta CDN links are signed and expire: download what you need before each item's `expires_at`. - `media` and `destination_urls` are `null` when Meta would not render the snapshot for that ad. `me

Example: false

limitinteger

Rows per page, up to 100 on Meta. LinkedIn and `includeMedia=true` accept at most 25 (400 above that).

Example: 25

afterstring

paging.after of the previous page.

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.