API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    Scrape a Facebook post by URLgetScrape a Facebook profile or page by URL or usernamegetScrape reviews of a Facebook pagegetScrape a Facebook event by URLgetScrape a Facebook Marketplace listing by URLgetFetch a pending scrape resultget
Schemas
powered by Zudoku
Advanced Facebook API
Advanced Facebook API

Other endpoints


Scrape a Facebook post by URL

GET
https://api.apicodex.io/facebook
/v1/post

Returns structured JSON for a Facebook post URL (post_id, user_url, content, likes and more). A fresh scrape usually returns in ~5-45s; posts exceed the sync window more often, in which case you get a snapshot_id to fetch from /v1/result (typically ready within 1-2 minutes).

Scrape a Facebook post by URL › query Parameters

url
​string · required

The Facebook post URL to scrape.

Example: https://www.facebook.com/somepage/posts/1234567890
fields
​string

Optional comma-separated list of top-level fields to keep in data.

Example: post_id,content,likes

Scrape a Facebook post by URL › Responses

Scraped data.

type
​string
url
​string
​object
GET/v1/post
curl 'https://api.apicodex.io/facebook/v1/post?url=<string>&apikey=<api-key>'
Example Responses
{ "type": "post", "url": "url", "data": {} }
json
application/json

Scrape a Facebook profile or page by URL or username

GET
https://api.apicodex.io/facebook
/v1/profile

Returns structured JSON for a Facebook profile or page (name, id and more). Works for both people and pages. Pass either url or username; with username the API builds https://www.facebook.com//. A fresh scrape usually returns in ~5-45s; if it exceeds the sync window you get a snapshot_id to fetch from /v1/result.

Scrape a Facebook profile or page by URL or username › query Parameters

url
​string

The Facebook profile or page URL to scrape. Required unless username is given.

Example: https://www.facebook.com/zuck
username
​string

Username or page handle; used instead of url.

Example: zuck
fields
​string

Optional comma-separated list of top-level fields to keep in data.

Example: name,id

Scrape a Facebook profile or page by URL or username › Responses

Scraped data.

type
​string
url
​string
​object
GET/v1/profile
curl 'https://api.apicodex.io/facebook/v1/profile?apikey=<api-key>'
Example Responses
{ "type": "profile", "url": "url", "data": {} }
json
application/json

Scrape reviews of a Facebook page

GET
https://api.apicodex.io/facebook
/v1/reviews

Returns an array of review objects (company_name, review_time, review text, reviewer url and more) for a Facebook page. Pass the page URL; the API automatically appends /reviews if missing. Reviews often exceed the sync window, in which case you get a snapshot_id to fetch from /v1/result (typically ready within 1-2 minutes).

Scrape reviews of a Facebook page › query Parameters

url
​string · required

The Facebook page URL. /reviews is appended automatically if missing.

Example: https://www.facebook.com/DominosPizza
limit
​integer · min: 1 · max: 50

Max reviews to return (1-50).

Default: 10
fields
​string

Optional comma-separated list of top-level fields to keep on each review.

Example: company_name,review_time

Scrape reviews of a Facebook page › Responses

Scraped reviews.

type
​string
url
​string
​object[]
GET/v1/reviews
curl 'https://api.apicodex.io/facebook/v1/reviews?url=<string>&apikey=<api-key>'
Example Responses
{ "type": "reviews", "url": "url", "data": [ {} ] }
json
application/json

Scrape a Facebook event by URL

GET
https://api.apicodex.io/facebook
/v1/events

Returns structured JSON for a Facebook event URL (event_id, event_date, location and more). A fresh scrape usually returns in ~5-45s; if it exceeds the sync window you get a snapshot_id to fetch from /v1/result.

Scrape a Facebook event by URL › query Parameters

url
​string · required

The Facebook event URL to scrape.

Example: https://www.facebook.com/events/1234567890
fields
​string

Optional comma-separated list of top-level fields to keep in data.

Example: event_id,event_date,location

Scrape a Facebook event by URL › Responses

Scraped data.

type
​string
url
​string
​object
GET/v1/events
curl 'https://api.apicodex.io/facebook/v1/events?url=<string>&apikey=<api-key>'
Example Responses
{ "type": "event", "url": "url", "data": {} }
json
application/json

Scrape a Facebook Marketplace listing by URL

GET
https://api.apicodex.io/facebook
/v1/marketplace

Returns structured JSON for a Marketplace listing URL (title, price, description, location, images, seller and more). A fresh scrape usually returns in ~5-45s; if it exceeds the sync window you get a snapshot_id to fetch from /v1/result.

Scrape a Facebook Marketplace listing by URL › query Parameters

url
​string · required

The Marketplace listing URL to scrape.

Example: https://www.facebook.com/marketplace/item/1234567890
fields
​string

Optional comma-separated list of top-level fields to keep in data.

Example: title,price,location

Scrape a Facebook Marketplace listing by URL › Responses

Scraped data.

type
​string
url
​string
​object
GET/v1/marketplace
curl 'https://api.apicodex.io/facebook/v1/marketplace?url=<string>&apikey=<api-key>'
Example Responses
{ "type": "marketplace_listing", "url": "url", "data": {} }
json
application/json

Fetch a pending scrape result

GET
https://api.apicodex.io/facebook
/v1/result

Retrieve the result of a scrape that exceeded the sync window, using its snapshot_id. When ready, data is an array if the snapshot holds multiple records, otherwise a single object.

Fetch a pending scrape result › query Parameters

snapshot_id
​string · required

Fetch a pending scrape result › Responses

Result ready. data is an array for multi-record snapshots, otherwise a single object.

status
​string
snapshot_id
​string
data
​
GET/v1/result
curl 'https://api.apicodex.io/facebook/v1/result?snapshot_id=<string>&apikey=<api-key>'
Example Responses
{ "status": "ready", "snapshot_id": "snapshot_id", "data": {} }
json
application/json