Skip to content
All sites
Data API

Facebook Data API

Public pages, posts and profile data from Facebook.

5endpointslogin_wall · Rate Limit handled for you
facebook.comGET/facebook/mark…GET/facebook/mark…GET/facebook/page…{ } JSON

Facebook Data API overview

Extract public pages, posts and profiles from Facebook as structured JSON. Choose an endpoint below, check its parameters, and run it in the dashboard playground.

/v1/facebook/… Open playground

Key Features

Structured JSON

Clean, normalized records for public pages, posts and profiles. No HTML parsing on your side.

5 endpoints

Across 4 categories, all under one base path.

Anti-bot handled

login_wall, Rate Limit cleared for you behind the scenes.

Fresh or cached

Serve instantly from the warm store, or force a live scrape per request.

Regions & Languages

Global coverage. Results are returned for the default locale.

Pagination

Page through results with page, cursor.

Quick Start

Use your dedicated Data API key. Follow this endpoint's method and parameters.

data_api.py
# Install: pip install requests
import json
import os
import requests

params = json.loads("{\"query\":\"coffee\",\"tab\":\"top\",\"page\":\"1\"}")
response = requests.request(
    "GET", "https://api.capzy.ai/v1/facebook/search",
    headers={"X-API-Key": os.environ["CAPZY_DATA_API_KEY"]},
    params=params,
    timeout=120,
)
response.raise_for_status()
print(response.json())

Per-run pricing

failed requests are free
EndpointCategoryPrice / 1k results
/v1/data/facebook/marketplace/categoriesMarketplace CategoriesReference1 credit / run
/v1/data/facebook/marketplace/locationsMarketplace LocationsReference1 credit / run
/v1/data/facebook/pages/{identifier}Get PagePages1 credit / run
/v1/data/facebook/profiles/{identifier}Get ProfileProfiles1 credit / run
/v1/data/facebook/searchGlobal SearchSearch1 credit / run