- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
Needs a place: lat and lng (see marketplace/location/search) or a location name. About 24 listings a page; keep the inputs unchanged while paging and de-duplicate by listing id.
You send one of lat or location.
Part of the Facebook Scraper API: 23 Facebook endpoints on one key.
Request
Send your key in the x-api-key header.
1curl -G "https://api.socialscrape.dev/v1/facebook/marketplace/search" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'query=bike' \4 --data-urlencode 'lat=30.2672' \5 --data-urlencode 'lng=-97.7431'1import os2import requests34params = {5 "query": "bike",6 "lat": 30.2672,7 "lng": -97.7431,8}9res = requests.get(10 "https://api.socialscrape.dev/v1/facebook/marketplace/search",11 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},12 params=params,13 timeout=60,14)15body = res.json()1617if body["ok"]:18 print(body["data"])19else:20 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/marketplace/search");2url.search = new URLSearchParams({3 query: "bike",4 lat: "30.2672",5 lng: "-97.7431",6}).toString();7const res = await fetch(url, {8 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },9});10const body = await res.json();1112if (body.ok) {13 console.log(body.data);14} else {15 console.error(body.error.code, body.error.message);16}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook Marketplace search",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/marketplace/search",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "query",19 "value": "bike"20 },21 {22 "name": "lat",23 "value": "30.2672"24 },25 {26 "name": "lng",27 "value": "-97.7431"28 }29 ]30 },31 "sendHeaders": true,32 "headerParameters": {33 "parameters": [34 {35 "name": "x-api-key",36 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"37 }38 ]39 }40 }41 }42 ],43 "connections": {}44}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Search keyword. Required unless `category_id` is given. Also accepted as keyword, q. | |
location | string | one of | City or area to search around ("Austin, TX"). |
lat | number | one of | Latitude of the search centre. Also accepted as latitude. |
lng | number | Longitude of the search centre. Also accepted as longitude. | |
category_id | string | Marketplace category id. Without a keyword only these browse: Antiques 393860164117441, Appliances 678754142233400, Bicycles 1658310421102081, Boats 712638205822882, Electronics 1792291877663080, Furniture 1583634935226685, Garden 800089866739547, Household 1569171756675761, Tools 1670493229902393, Trailers 655837954899686, Vehicles 807311116002614 (or 546583916084032). Other ids need a keyword. | |
radius_km | number | Search radius in km. Also accepted as radius. | |
min_price | number | Lowest listing price. | |
max_price | number | Highest listing price. | |
sort | string | Order of results. Changing it restarts the cursor chain. Also accepted as sort_by, sortBy, order. | |
delivery_method | string | Delivery filter. | |
condition | string | Condition filter. | |
date_listed | string | Listed within. Uses the UI's calendar-day buckets. | |
availability | string | Availability filter. | |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are examples, not your data.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_353464b6e185587ae414088a",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "product",13 "platform": "facebook",14 "id": "1759754668539731",15 "url": "https://www.facebook.com/marketplace/item/1759754668539731/",16 "title": "Basically new Concord Cruiser bike.",17 "description": null,18 "price": {19 "amount": 100,20 "currency": null,21 "original_amount": null,22 "display": "$100"23 },24 "seller": {25 "id": "1000000001",26 "handle": null,27 "name": "Sample User",28 "url": null,29 "avatar_url": null,30 "verified": null31 },32 "rating": null,33 "review_count": null,34 "sold_count": null,35 "image_urls": [36 "https://scontent-atl3-2.xx.fbcdn.net/v/t39.84726-6/777867885_1065152789345589_1899757173861478598_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=104&c..."37 ],38 "category": null,39 "in_stock": true,40 "location": {41 "name": null,42 "address": null,43 "city": "Austin",44 "region": "TX",45 "country": null,46 "latitude": null,47 "longitude": null48 },49 "published_at": "2026-08-17T00:42:36Z",50 "extra": {51 "category_id": "1658310421102081",52 "city_page_id": "106224666074625",53 "delivery_types": [54 "IN_PERSON"55 ],56 "is_hidden": false,57 "is_live": true,58 "is_pending": false59 }60 }61 ],62 "cursor": "eyJrIjoibWFya2V0IiwibGF0IjozMC4yNjcyLCJsbmciOi05Ny43NDMxLCJhZnRlciI6IntcInBnXCI6MSxcImIyY1wiOntcImJyXCI6XCJcIixcIml0XCI6MCxcImhtc3JcIjpmYWxzZSxcInRiaVwiOjB9L...",63 "has_more": true,64 "parent": null65 },66 "cursor": "eyJrIjoibWFya2V0IiwibGF0IjozMC4yNjcyLCJsbmciOi05Ny43NDMxLCJhZnRlciI6IntcInBnXCI6MSxcImIyY1wiOntcImJyXCI6XCJcIixcIml0XCI6MCxcImhtc3JcIjpmYWxzZSxcInRiaVwiOjB9L...",67 "has_more": true68}Fields
A page of results. Each entry in items is a Product. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "product" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
title | string or null | ||
description | string or null | ||
price | Price or null | ||
seller | Author or null | ||
rating | number or null | ||
review_count | integer or null | ||
sold_count | integer or null | ||
image_urls | string[] or null | ||
category | string or null | ||
in_stock | boolean or null |
Show the other 3 fields
| Field | Type | Always | Notes |
|---|---|---|---|
location | Place or null | ||
published_at | string (ISO 8601 date-time) or null | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The Python client has client.facebook.marketplace_search(...) and the TypeScript client client.facebook.marketplaceSearch(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.