Advertising5 min readBy Purrkey teamUpdated

How to find Facebook advertisers by keyword in Meta Ad Library

Search the Meta Ad Library by keyword and get matching advertiser pages with page IDs, categories, verification, follower counts, and linked Instagram accounts

On this page

You have one advertiser keyword and need a shortlist of 12 Facebook advertiser pages from the Meta Ad Library before the social team checks ad activity. The deliverable is a table of 12 rows with page IDs, categories, verification, likes and linked Instagram follower counts, so the team can choose which pages merit a deeper review

Deliverable table design

The worksheet below is the deliverable. Values here are placeholders showing the shape

pageIdnamecategoryverificationlikescountryentityTypeigUsernameigFollowersigVerifiedpageDeleted
(page ID)(page name)(category)(verification)(integer)(country)(entityType)(Instagram username)(integer)true or falsetrue or false

Plan for 12 rows, one per matching advertiser page. The pageId column anchors each row. The igFollowers column is the linked Instagram follower count the team compares. The pageDeleted column is a boolean from the response. A row with pageDeleted true still carries the page fields; the team decides whether to keep it in the shortlist. The table has no page rows when found is false with reason: not_found; the reason goes in the note beside the empty table

The input and the one tool call

anyapi.facebook.search_companies takes a required query string. The field description says it is the keyword to search advertiser pages for, such as a brand or company name. Example query: acme fitness. The example is invented; replace it with your keyword. Agents call it through POST /v1/runs with toolId anyapi.facebook.search_companies

This step returns matching advertiser pages by keyword. It cannot return individual ads. The ad-level review is a separate Meta Ad Library check. That limit sits at the search step: the tool gives the page shortlist, not the ad rows the team may review next

How to read the output fields

The response has found and data at the top level. data can be null or an object with a companies array. found tells whether the call produced a result. When found is true, data.companies holds the matching pages. When found is false, reason is not_found, and the contract says that is a successful call, not an error. The reason field is present only when found is false, and its enum is not_found

Each company row has required fields pageId, name, category, imageUrl, likes, verification, country, entityType, igUsername, igFollowers and pageAlias. The schema also has igVerified and pageDeleted boolean fields. The fields that drive the shortlist:

  • pageId: the page identifier for the row and for any later review
  • name: the page name to show in the shortlist
  • category: the page category string from the response
  • verification: the page verification string from the response
  • likes: the page likes integer
  • country and entityType: page context fields from the response
  • igUsername, igFollowers and igVerified: the linked Instagram account, its follower count and its verification boolean
  • pageDeleted: a boolean that marks a Page the contract describes as deleted

The table uses the brief's columns. imageUrl and pageAlias stay in the response but are not part of the shortlist table. For the ad-level review that follows the shortlist, the companion guide is Compare competitor ads

The agent prompt

The prompt asks for the shortlist and keeps the tool to one keyword. It names the tool id and the table columns, and it tells the agent to check current inputs and price before the call. Replace the example query before running

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search the Meta Ad Library for advertiser pages matching the keyword below. Check the current inputs and price of anyapi.facebook.search_companies before running anything. Make one call with the query. Return a table with pageId, name, category, verification, likes, country, entityType, igUsername, igFollowers, igVerified and pageDeleted. Keep up to 12 rows for the shortlist. If found is false with reason not_found, return an empty table and that reason. Do not invent pages and do not treat a found false answer as an error.

Example query: acme fitness

Estimated tool cost

The catalog lists anyapi.facebook.search_companies as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." Prices are from the Purrkey catalog read November 13, 2026. The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single keyword searchcalls x max price$0.004 per call1$0.004
Five keyword variantscalls x max price$0.004 per call5$0.020

The 12-page shortlist uses the single keyword search: 1 call, at most $0.004. If the team compares five keyword variants, the plan is 5 calls, at most $0.020. Model fees for the agent are not counted

Next action

Replace the example query with your advertiser keyword, then run the search from Facebook tools

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Facebook.
Explore Facebook tools and pricing

FAQ

How do I find Facebook advertisers by keyword in Meta Ad Library?

Use anyapi.facebook.search_companies with a query keyword. The call returns matching advertiser pages, not individual ads, and the page fields go into the shortlist table.

What does anyapi.facebook.search_companies output?

It returns found and data. When found is true, data.companies holds pages with fields such as pageId, name, category, verification, likes, country, entityType, igUsername, igFollowers, igVerified and pageDeleted.

What input does anyapi.facebook.search_companies require?

The contract lists query as required. Enter the advertiser keyword, such as a brand or company name.

What does found false mean for this tool?

A found: false answer with reason: not_found means the source states the target does not exist or returned nothing. The contract says that answer is a successful call, not an error.

How much does a Facebook advertiser keyword search cost?

The catalog lists the tool at up to $0.004 per call as max_call, which means "Maximum per call. Successful runs settle at the actual AnyAPI charge." One keyword search is one call; five keyword variants are five calls.

Can this tool return the individual ads for a page?

No. The tool searches advertiser pages by keyword and returns matching pages, not individual ads. The ad-level check is a later Meta Ad Library review.

Next step

Try this with Facebook

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Facebook tools

Share this article