Shopping
Facebook Marketplace API
Public Facebook Marketplace location search, filtered listings, category browsing and item details.
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
http://localhost:3039Public API: https://api.scrapeatlas.com.Endpoints
/v1/facebook/marketplace/location/searchResolve a Marketplace location
Resolve a city or location query into public Marketplace search coordinates.
Reference/v1/facebook/marketplace/searchSearch Marketplace listings
Search public Marketplace listings at explicit coordinates, with price, condition, delivery, date, availability and sorting filters.
Reference/v1/facebook/marketplace/categoriesList Marketplace categories
List the top-level Marketplace categories, or the children of one category, with the slug used to browse each category.
Reference/v1/facebook/marketplace/categoryBrowse 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/v1/facebook/marketplace/itemGet a Marketplace listing
Retrieve one public listing with price, description, condition, category, attributes, photos, videos, hashtags and availability flags.
Reference/v1/facebook/marketplace/itemsGet a Marketplace listing via /items
Retrieve one public listing with price, description, condition, category, attributes, photos, videos, hashtags and availability flags.
Reference/v1/facebook/marketplace/locations/searchResolve a Marketplace location via /locations
Resolve a city or location query into public Marketplace search coordinates.
ReferenceQuick start
Create an API key on your account page, then call the public API. Values below are placeholders.
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.
| HTTP | failure.code | Meaning |
|---|---|---|
| 200 | partial | Usable data with explicit missing/failed auxiliary coverage. |
| 400 | invalid_request | Malformed, duplicate, conflicting or unsupported parameters. |
| 401 | unauthorized | Missing or invalid service API key. |
| 403 | restricted_page | The resource is private or restricted. |
| 404 | not_found | Unknown route or missing resource. |
| 429 | upstream_rate_limited | Facebook throttled retrieval. |
| 502 | upstream_challenged upstream_error unsupported_page | Source challenge, failure or unsupported/mismatched structure. |
| 502 | response_too_large payload_too_complex request_limit unsafe_redirect | Bounded retrieval or fixed-origin policy failed. |
| 503 | busy | All Facebook worker slots are occupied. |
| 504 | timeout | Request deadline expired. |