Search Facebook Marketplace listings by keyword near a latitude and longitude.
Endpoint
/v1/facebook/marketplace/search
Query
Search query text for marketplace listings.
Latitude for the marketplace search location.
Longitude for the marketplace search location.
Optional search radius in kilometers.
Optional minimum listing price. Must be less than or equal to `maxPrice` when both are set.
Optional maximum listing price. Must be greater than or equal to `minPrice` when both are set.
Optional number of listings to return (1–100). Prefer this over `count`.
Optional sort order for marketplace listings. `suggested`: Facebook's default relevance ranking. `distanceAscend`: nearest first. `creationTimeDescend`: newest listings first. `priceAscend`/`priceDescend`: lowest/highest price first.
Optional delivery method filter for marketplace listings.
Optional item condition filter for marketplace listings.
Optional date-listed filter for marketplace listings. `1`/`last24Hours` both mean the last 24 hours, `7`/`last7Days` both mean the last 7 days, and `30`/`last30Days` both mean the last 30 days — these are separate values Facebook accepts for the same window; prefer the named variants (`last24Hours`, `last7Days`, `last30Days`) for clarity. `all` applies no date filter.
Optional availability filter for marketplace listings.
Opaque pagination cursor returned by a previous response.
const response = await fetch( "https://api.socialfetch.dev/v1/facebook/marketplace/search?query=bike&lat=30.2677&lng=-97.7475", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);