1. Platforms
  2. Facebook Scraper API
  3. Facebook Marketplace search API

Facebook Marketplace search API

Search Marketplace by keyword, or browse a category without a keyword.

GET api.socialscrape.dev/v1/facebook/marketplace/search

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'

Parameters

NameTypeRequiredDescription
querystringSearch keyword. Required unless `category_id` is given. Also accepted as keyword, q.
locationstringone ofCity or area to search around ("Austin, TX").
latnumberone ofLatitude of the search centre. Also accepted as latitude.
lngnumberLongitude of the search centre. Also accepted as longitude.
category_idstringMarketplace 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_kmnumberSearch radius in km. Also accepted as radius.
min_pricenumberLowest listing price.
max_pricenumberHighest listing price.
sortstringOrder of results. Changing it restarts the cursor chain. Also accepted as sort_by, sortBy, order.
delivery_methodstringDelivery filter.
conditionstringCondition filter.
date_listedstringListed within. Uses the UI's calendar-day buckets.
availabilitystringAvailability filter.
cursorstringOpaque 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.

200 OKSample response
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.

FieldTypeAlwaysNotes
object"product"
platformPlatformyes
idstringyes
urlstring or null
titlestring or null
descriptionstring or null
pricePrice or null
sellerAuthor or null
ratingnumber or null
review_countinteger or null
sold_countinteger or null
image_urlsstring[] or null
categorystring or null
in_stockboolean or null
Show the other 3 fields
FieldTypeAlwaysNotes
locationPlace or null
published_atstring (ISO 8601 date-time) or null
extraobject 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.