Facebook API

Facebook Search companies API

Search the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram.

POST/v1/run/facebook.search_companies
Uptime
93.38%
30d · 136 calls
Requests
136
30d · weekly, last 12 wks
Response
0.9s
median · 30d

Pricing

One price, in dollars

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "companies": [
      {
        "category": "general",
        "country": "US",
        "entityType": "general",
        "igFollowers": 12500,
        "igUsername": "alex_rivera",
        "imageUrl": "https://example.com/image.jpg",
        "likes": 12500,
        "name": "Example title",
        "pageAlias": "example",
        "pageId": "a1b2c3d4",
        "verification": "example"
      }
    ]
  },
  "found": true
}
Response interface
interface FacebookSearchCompaniesResponse {
  data: {
    companies: {
      category: string;
      country: string;
      entityType: string;
      igFollowers: number;
      igUsername: string;
      imageUrl: string;
      likes: number;
      name: string;
      pageAlias: string;
      pageId: string;
      verification: string;
    }[];
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/facebook.search_companies
curl -X POST https://api.getanyapi.com/v1/run/facebook.search_companies \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"nike"}'
FieldTypeExample value
Request body
querystring"nike"Keyword to search advertiser pages for (e.g. "nike").
Response
dataobject
data.companiesobject[]
data.companies[].categorystringPopulated whenever the provider has data for the entity.
data.companies[].countrystring
data.companies[].entityTypestringPopulated whenever the provider has data for the entity.
data.companies[].igFollowersintegerPopulated whenever the provider has data for the entity.
data.companies[].igUsernamestringPopulated whenever the provider has data for the entity.
data.companies[].imageUrlstringPopulated whenever the provider has data for the entity.
data.companies[].likesinteger
data.companies[].namestringPopulated whenever the provider has data for the entity.
data.companies[].pageAliasstringPopulated whenever the provider has data for the entity.
data.companies[].pageIdstringPopulated whenever the provider has data for the entity.
data.companies[].verificationstringPopulated whenever the provider has data for the entity.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Search companies API

The AnyAPI Facebook Search companies API returns Facebook search companies data as normalized JSON from one POST call to /v1/run/facebook.search_companies. Search the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 93.4% of Facebook search companies calls through AnyAPI succeeded, with a median response time of 0.9 seconds across 136 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 93.4% of Facebook search companies calls through AnyAPI succeeded, with a median response time of 0.9 seconds across 136 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.