Skip to Content

Marketplace Search

Marketplace listings for a query near a point.

GET
/v1/facebook/marketplace/search

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

query*string

What to look for.

latitude*number

Where: latitude and longitude of the point to search around.

Formatdouble
longitude*number
Formatdouble
radiusKm?integer

How far around it, in kilometres (default 40, at most 500).

Formatint32
Range0 <= value
cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.facebook.marketplaceSearch({ query: "bike", latitude: 40.7142, longitude: -74.0064, radiusKm: 40 });
Example Response
{  "data": [    {      "id": "1611102457370634",      "url": "https://www.facebook.com/marketplace/item/1611102457370634/",      "title": "Schwinn Women's Cruiser Bike",      "description": null,      "price": "$70",      "amount": "70.00",      "currency": null,      "location": "New York, NY",      "latitude": null,      "longitude": null,      "category": null,      "condition": null,      "imageUrl": "https://scontent-lhr11-1.xx.fbcdn.net/v/t39.84726-6/925373746_1470919605245753_5049828182584983856_n.jpg?stp=c158.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=92e707&_nc_ohc=0i7glkGfmHwQ7kNvwEDV19z&_nc_oc=AdovpwlgiQm6h59UVjorYEB36YdPh8RyyxdhESTiPV4PqldKk36hl6OG19HPrhS9a3g&_nc_zt=14&_nc_ht=scontent-lhr11-1.xx&_nc_gid=al_LwO4tIYMiUhMJhYweVg&_nc_ss=79389&oh=00_AQTm-Vr6sDNmpjS0rLAF9B30V3VJOMuTJ8YuC3ivAoNeTg&oe=6B0CBD68",      "seller": {        "id": "pfbid0pUjfdUMfWCvFZY4Uvop4UwKiZDA1zd7GQkrLuTZnxHcHuucb8rT5DJnjMdQh9oZtl",        "name": "William Clayton"      },      "sold": false,      "createdAt": "2026-11-24T19:48:28.000Z"    },    {      "id": "1430762362147166",      "url": "https://www.facebook.com/marketplace/item/1430762362147166/",      "title": "Fixed bike",      "description": null,      "price": "$80",      "amount": "80.00",      "currency": null,      "location": "Far Rockaway, NY",      "latitude": null,      "longitude": null,      "category": null,      "condition": null,      "imageUrl": "https://scontent-lhr11-1.xx.fbcdn.net/v/t39.84726-6/926503282_1795355981733089_2862857702909896092_n.jpg?stp=c43.0.260.260a_dst-jpg_p261x260_tt6&_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=92e707&_nc_ohc=O3vh6Qy-pQYQ7kNvwGBuL3H&_nc_oc=AdrlmkWfX-T2wEg4Xgwd-nOesCSTcxwfljBNVnOM6RNsw3JP3AbNSFNj1lNvdXBFZis&_nc_zt=14&_nc_ht=scontent-lhr11-1.xx&_nc_gid=al_LwO4tIYMiUhMJhYweVg&_nc_ss=79389&oh=00_AQQM_XJRdye5EgVYr61pmiVGxR3LNPR36OF-OPncEDyJdw&oe=6B0CB196",      "seller": {        "id": "pfbid02ouXzMQNv1VEdfjhsTx3QdTNinuKQ52GzudWuAD8Heto4U91wcBT2sdyv3Ry44NCpl",        "name": "Malcolm Hill"      },      "sold": false,      "createdAt": "2026-11-24T20:13:52.000Z"    }  ],  "pagination": {    "nextCursor": "{\"pg\":0,\"b2c\":{\"br\":\"\",\"it\":0,\"hmsr\":false,\"tbi\":0},\"c2c\":{\"br\":\"AboQsQeljhINTKOiQhHCXnx4YlThqYVDogbtGyhai0jeM6kqj4oWHm--E0Iq34oiLoNLm7uyiFQvQ3X2PknB5nQ0gbbWIiMPwswgCByHMoV2riIQ6aq3biDbl26TUL14NScrgemm2ZLZuPGDWbMFz6tQX5YxFQmJGB6GjhEKGi32ss9XIRMLZXyjCpbEngm7yIoDlYHuz3nWvKUSqS1gwAHMGtyEfsiUmjzuYw7TK0RTFb54Mk2RWmJejRlhf8cCD1yK3tzFHH61eDdgLEJg3OYC460MIdsQxrjQkaEh3aD-CdDxwi7DAViWr5oETq420-6nNL6ubzc1s3o…",    "hasMore": true  }}