Skip to content
scrapeatlas.Dashboard

Shopping

Facebook Marketplace API

Public Facebook Marketplace location search, filtered listings, category browsing and item details.

7 endpointsx-api-key

Search Facebook Marketplace listings and locations, browse categories near any coordinates, and retrieve item details with prices, photos, videos, condition and category.

API availability: Available

Base URL · local workerhttp://localhost:3039Public API: https://api.scrapeatlas.com.
Authenticationx-api-keyCustomer key from your account. See Authentication.

Endpoints

GET/v1/facebook/marketplace/location/search

Resolve a Marketplace location

Resolve a city or location query into public Marketplace search coordinates.

Reference
GET/v1/facebook/marketplace/search

Search Marketplace listings

Search public Marketplace listings at explicit coordinates, with price, condition, delivery, date, availability and sorting filters.

Reference
GET/v1/facebook/marketplace/categories

List Marketplace categories

List the top-level Marketplace categories, or the children of one category, with the slug used to browse each category.

Reference
GET/v1/facebook/marketplace/category

Browse a Marketplace category

Browse the public listings of one Marketplace category at explicit coordinates, without a keyword, with price, condition, delivery, date, availability and sorting filters.

Reference
GET/v1/facebook/marketplace/item

Get a Marketplace listing

Retrieve one public listing with price, description, condition, category, attributes, photos, videos, hashtags and availability flags.

Reference
GET/v1/facebook/marketplace/items

Get a Marketplace listing via /items

Retrieve one public listing with price, description, condition, category, attributes, photos, videos, hashtags and availability flags.

Reference
GET/v1/facebook/marketplace/locations/search

Resolve a Marketplace location via /locations

Resolve a city or location query into public Marketplace search coordinates.

Reference

Quick start

Create an API key on your account page, then call the public API. Values below are placeholders.

Terminal
curl "https://api.scrapeatlas.com/v1/facebook/marketplace/location/search?query=London" \
  -H "x-api-key: YOUR_API_KEY"

Coverage & limits

  • Independent stateless worker on port 3039. No database, Facebook account, persistent browser session, cache or media hosting. Marketplace reads use plain HTTPS documents; a browser is the fallback for location search, keyword search and item details. A residential proxy can be configured for public pages that gate direct connections.
  • Two concurrent requests, 60-second overall deadline, 400 upstream requests and 64 MiB decoded source bytes per request, shared by enrichment legs. Fresh browser contexts close after each retrieval.
  • At most 100 records per page, 500,000 traversed nodes and depth 100. Full reels accept at most 50 records across five pages. Auxiliary reads have shorter deadlines and preserve usable partial data.
  • A category list returns one tree level, at most 1,000 categories. Category browsing and keyword search return at most 100 listings per page with a caller-carried cursor.
  • Only fixed Facebook public pages, native read-only GraphQL documents, Facebook static scripts and explicitly discovered fbcdn caption URLs are fetched. Service credentials never enter the browser. Media files are not downloaded.
  • cache_max_age and hostMedia are not accepted. Opaque cursors are route-specific; pass back the cursor issued by the route you called.
  • Facebook source changes, regional restrictions and private resources produce explicit failures. Missing counts remain null, never fabricated zeroes.
Error codes
10
HTTPfailure.codeMeaning
200partialUsable data with explicit missing/failed auxiliary coverage.
400invalid_requestMalformed, duplicate, conflicting or unsupported parameters.
401unauthorizedMissing or invalid service API key.
403restricted_pageThe resource is private or restricted.
404not_foundUnknown route or missing resource.
429upstream_rate_limitedFacebook throttled retrieval.
502upstream_challenged upstream_error unsupported_pageSource challenge, failure or unsupported/mismatched structure.
502response_too_large payload_too_complex request_limit unsafe_redirectBounded retrieval or fixed-origin policy failed.
503busyAll Facebook worker slots are occupied.
504timeoutRequest deadline expired.