Facebook Search pages API
Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details).
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())
{
"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
}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 30dcurl -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"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| query | string | "nike"Keyword to search Facebook Pages for (e.g. 'coffee roasters'). |
| limit | integer | 3Maximum number of results to return (1-10, default 10). You are billed per result returned, so a lower limit costs less. |
| location | string | Optional free-text location to narrow the search: a city, province, or country (e.g. 'Berlin'). |
| Response | ||
| data | object | |
| data.items | object[] | Matching Facebook Page records for the query. Populated whenever the provider has data for the entity. |
| data.items[].category | string | The page's primary category (e.g. "Sportswear Store"). Empty when the upstream omits it. |
| data.items[].followers | integer | The page's follower count. |
| data.items[].id | string | The page's numeric Facebook ID, as a string. Populated whenever the provider has data for the entity. |
| data.items[].image | string | URL of the page's profile picture, with tracking query params stripped. Empty when the upstream omits it. |
| data.items[].likes | integer | The page's like count. |
| data.items[].phone | string | The page's public phone number. Empty when the upstream omits it. |
| data.items[].title | string | The page's public name. Populated whenever the provider has data for the entity. |
| data.items[].url | string | Canonical URL of the Facebook Page, with tracking query params stripped. Populated whenever the provider has data for the entity. |
| data.items[].website | string | The page's public website URL. Empty when the upstream omits it. |
| found | boolean | Whether any matching pages were returned for the query. |
| Price | ||
| Price per request (ceiling) | USD | $0.123 |
| Price /1k results | USD | $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.