Facebook API

Facebook Search pages API

Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details).

POST/v1/run/facebook.search_pages
Uptime
98.85%
30d · 87 calls
Requests
92
30d · weekly, last 12 wks
Response
16.5s
median · 30d

Call it

Make your first request

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/facebook.search_pages",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "query": ""
    },
)
print(res.json())
Open in
Get a free key
Sample response
{
  "data": {
    "items": [
      {
        "category": "general",
        "followers": 12500,
        "id": "a1b2c3d4",
        "image": "https://example.com/image.jpg",
        "likes": 12500,
        "phone": "+1 555-0142",
        "title": "Example title",
        "url": "https://example.com/page",
        "website": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
interface FacebookSearchPagesResponse {
  data: {
    items: {
      category?: string;
      followers?: number;
      id: string;
      image?: string;
      likes?: number;
      phone?: string;
      title: string;
      url: string;
      website?: 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_pages
curl -X POST https://api.getanyapi.com/v1/run/facebook.search_pages \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":3,"query":"nike"}'
FieldTypeExample value
Request body
querystring"nike"Keyword to search Facebook Pages for (e.g. 'coffee roasters').
limitinteger3Maximum number of results to return (1-10, default 10). You are billed per result returned, so a lower limit costs less.
locationstringOptional free-text location to narrow the search: a city, province, or country (e.g. 'Berlin').
Response
dataobject
data.itemsobject[]Matching Facebook Page records for the query. Populated whenever the provider has data for the entity.
data.items[].categorystringThe page's primary category (e.g. "Sportswear Store"). Empty when the upstream omits it.
data.items[].followersintegerThe page's follower count.
data.items[].idstringThe page's numeric Facebook ID, as a string. Populated whenever the provider has data for the entity.
data.items[].imagestringURL of the page's profile picture, with tracking query params stripped. Empty when the upstream omits it.
data.items[].likesintegerThe page's like count.
data.items[].phonestringThe page's public phone number. Empty when the upstream omits it.
data.items[].titlestringThe page's public name. Populated whenever the provider has data for the entity.
data.items[].urlstringCanonical URL of the Facebook Page, with tracking query params stripped. Populated whenever the provider has data for the entity.
data.items[].websitestringThe page's public website URL. Empty when the upstream omits it.
foundbooleanWhether any matching pages were returned for the query.
Price
Price per request (ceiling)USD$0.123
Price /1k resultsUSD$11.18

FAQ

About the Facebook Search pages API

The AnyAPI Facebook Search pages API returns Facebook search pages data as normalized JSON from one POST call to /v1/run/facebook.search_pages. Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details). AnyAPI returns one normalized schema whichever source serves it. It costs $11.18 per 1,000 results, and never more than $0.123 for a single request, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 98.9% of Facebook search pages calls through AnyAPI succeeded, with a median response time of 16.5 seconds across 87 measured calls.

It costs $11.18 per 1,000 results, and never more than $0.123 for a single request, 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 Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details). 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, 98.9% of Facebook search pages calls through AnyAPI succeeded, with a median response time of 16.5 seconds across 87 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.