Search listings
Listings matching words, around a city or a point, with price, condition, age, delivery and category filters, sorted by best match (Facebook’s own ranking, which changes between runs), newest, price or distance. Up to 500 a request, with nextCursor for more. For monitoring, sort by newest. 1 credit per 24 listings returned, minimum 1.
/search-listings Listings https://api.fetchlayer.dev/facebook-marketplace/search-listings Headers
Authorization string required Bearer token — your FetchLayer API key.
Parameters
query string required Words to search for.
city string optional Where to search: a place /locations lists (its slug, such as london or nyc) or the city key of a Marketplace URL (facebook.com/marketplace/<city>/). Or give latitude and longitude instead.
latitude number optional With longitude: search around this point, anywhere Marketplace is available. Both or neither.
longitude number optional With latitude.
radiusKm integer optional How far around, 1-500 km. Facebook treats it as a guide, so some listings may lie a little outside it. (default: 65)
minPrice integer optional Lowest price, in whole units of the local currency (50 = $50 in the US).
maxPrice integer optional Highest price, in whole units of the local currency.
condition string[] optional Any of new, used_like_new, used_good, used_fair.
daysSinceListed integer optional Only listings posted in the last 1, 7 or 30 days.
sortBy string optional best_match, newest, price_low_to_high, price_high_to_low or nearest. (default: best_match)
delivery string optional all, pickup or shipping. (default: all)
categoryId string optional Only one category: a key (vehicles, propertyrentals, electronics, …) or its numeric id.
includePhotos boolean optional Also return every photo of each listing. Slower. (default: false)
limit integer optional How many listings to return, 1-500. 1 credit per 24 listings returned, minimum 1. (default: 24)
cursor string optional Continue from a previous response’s nextCursor, passed back unchanged with the same other parameters. A cursor with changed parameters is a 400.
format string optional json or markdown; any other value is a 400. Over MCP the default is markdown; the REST API returns JSON. (default: json)
timeoutMs integer optional Time limit for the whole request, in milliseconds (1000-110000); a value outside that range is a 400. When it runs out, a listing walk returns what it has with nextCursor and a note, billed for what it returned; a request with nothing to return yet fails with a retryable 503. We answer at the latest about 2 seconds before timeoutMs runs out (15% of it, at least 0.75 s, for limits under 13 seconds). Send timeoutMs equal to your own client’s timeout: then we can answer in time, fast, instead of your client dropping the connection while the request is still running.
Response Fields
search-listings
Search listings
transport string The data source: always "facebook-marketplace".
notes string[] Caveats you can act on, such as a list that stopped early. Empty when there are none.
search object { query, category, latitude, longitude, radiusKm }: what was searched (the one not used is null), the point searched around and the radius.
listingCount number How many listings are in this response. The price is set from it.
listings object[] The listings.
listings[].id string The listing’s id. /listing-detail takes it.
listings[].url string The listing’s page on facebook.com.
listings[].title string As listed.
listings[].price object { amount, currency, formatted }: the amount, its ISO currency code when known (a bare $ outside the US is null rather than guessed), and the price as shown.
listings[].originalPrice object | null The price before a reduction.
listings[].priceRange object | null A price range, when the listing shows one instead of a single price.
listings[].photo object The main photo: { url, width, height, caption }. width, height and caption are null when Facebook leaves them out. Photo links expire after a few days.
listings[].hasVideo boolean Whether the listing has a video.
listings[].location object { city, state, postalCode, latitude, longitude, displayName }: the area as Facebook names it. In results postalCode, latitude and longitude are null: results carry no map point.
listings[].postedAt string | null When the listing was posted (ISO 8601).
listings[].categoryId string | null The listing’s numeric category id.
listings[].status string available, pending or sold.
listings[].delivery object { pickup, shipping, publicMeetup, doorPickup }.
listings[].seller object { name, id }: the display name shown on the listing, and an id stable for linking listings by the same seller within these results (not a profile id). Many sellers are private people: treat it as personal data.
listings[].subtitles string[] Extra lines on the card, such as a vehicle’s mileage. Often empty.
listings[].photos object[] | null Every photo, with includePhotos; otherwise null.
hasMore boolean false is the end. true with nextCursor continues; true with nextCursor null means Marketplace reports more but gave no way to read it, and a note says so.
nextCursor string | null Pass back unchanged as cursor, with the same other parameters, to continue.
Request
curl -X POST "https://api.fetchlayer.dev/facebook-marketplace/search-listings" \
-H "Authorization: Bearer ss-your-key" \
-H "Content-Type: application/json" \
-d '{"query":"road bike","city":"london","maxPrice":400,"sortBy":"newest","limit":24}'Response
{
"transport": "facebook-marketplace",
"notes": [],
"search": {
"query": "road bike",
"category": null,
"latitude": 51.5072,
"longitude": -0.1276,
"radiusKm": 65
},
"listingCount": 24,
"listings": [
{
"id": "1000000000000001",
"url": "https://www.facebook.com/marketplace/item/1000000000000001/",
"title": "Example road bike, 54 cm frame",
"price": {
"amount": 250,
"currency": "GBP",
"formatted": "£250"
},
"originalPrice": null,
"priceRange": null,
"photo": {
"url": "https://scontent.xx.fbcdn.net/v/…/example.jpg",
"width": null,
"height": null,
"caption": null
},
"hasVideo": false,
"location": {
"city": "London",
"state": "England",
"postalCode": null,
"latitude": null,
"longitude": null,
"displayName": "London, United Kingdom"
},
"postedAt": "2026-11-24T09:15:00.000Z",
"categoryId": "1658310421102081",
"status": "available",
"delivery": {
"pickup": true,
"shipping": false,
"publicMeetup": true,
"doorPickup": false
},
"seller": {
"name": "Example Seller",
"id": "example-id"
},
"subtitles": [],
"photos": null
}
],
"hasMore": true,
"nextCursor": "z.eJyrVkrOzytJzSvRS…"
}