Docs menu

MCP tool · Brand and research

search_meta_ad_library

Competitors' ads in the Meta Ad Library (texts only).

Read only Scope: read Pro and Scale plans Credits: Free*

What it does

Search the Meta Ad Library for competitor ads by brand/page or keyword. Returns TEXT metadata only (ad copy, headline, CTA, start date, is_running, countries) — NO images/videos to avoid token blowup. Use for Competitor Ad Analysis prompt. Ads running 90+ days = validated winners. Cache 7 days.

Parameters

  • page_id string optional

    Meta page ID of the competitor (preferred). Resolves to their ad library directly.

  • search_terms string optional

    Keyword search across all pages (use when page_id unknown).

  • countries array of strings optional

    ISO country codes (e.g. ["FR","BE"]). Default ["ALL"].

  • limit number optional

    Max ads to return (default 20, max 50).

  • force_refresh boolean optional
  • ad_account_id string optional

    Meta ad account id (act_…), from list_ad_accounts

    Matches ^(act_)?\d{1,32}$

Example

Your assistant calls it for you when you ask in your own words. What it sends (MCP tools/call, JSON-RPC 2.0):

tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_meta_ad_library",
    "arguments": {
      "page_id": "100000000000001",
      "search_terms": "120200000000000001"
    }
  }
}

The same call over HTTP with an API key, for an MCP client of your own (an assistant that signs in sends its OAuth token instead):

curl
curl -X POST https://app.apogee.ad/mcp \
  -H "Authorization: Bearer $APOGEE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_meta_ad_library","arguments":{"page_id":"100000000000001","search_terms":"120200000000000001"}}}'

Access and cost

PlansPro and Scale.
Scoperead: a connection or an API key without it does not see this tool (scopes).
EffectReads only: nothing is changed, in Apogee or on the ad account.
CreditsFree up to the daily free reads (5,000 a day on Pro, 10,000 on Scale), then 1 credit per read. A call that fails costs nothing (credits).
Rate limit600 MCP requests per 15 minutes on Pro, 1,200 on Scale (rate limits).
Daily capCounts 1 unit toward the 2,000 units one API key or assistant connection can use in 24 hours.

Brand and research: Context for creative strategy: your business profile, your comments, reviews and competitors.

Last updated on . The parameters, limits, credits and error codes of these pages are generated from the code of the Apogee API (contract 2026-10-06).

A question, something missing? Write to hello@apogee.ad.

Book a demo

Pick the time that suits you.

Open in a new tab

Loading the calendar…

Talk to Founder