Platforms/Facebook/Marketplace search

Facebook Marketplace Search API

GET ยท 1 credit

Send words, a latitude and a longitude, and get the first 24 listings near that place, with filters for distance and price.

GET /v1/facebook/marketplace/search

What people use it for

  • Price tracking: record asking prices for a kind of item in a city every day.
  • Deal alerts: search often, sorted newest, and alert on listings under your price.
  • Supply checks: see what's listed for a kind of item near a place right now.

How it works with other endpoints

Turn a place's name into lat and lng with Marketplace locations. Each listing's id goes to Marketplace item for its description, condition and photos.

Limits

  • The first 24 listings: Facebook shows no more logged out.
  • radius_km is 40 when you don't give it.

Example request

const url = `${process.env.API_URL}/v1/facebook/marketplace/search?query=bike&lat=30.2677&lng=-97.7475`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
queryYesWords to search for.
latYesWhere to search from: latitude (the locations search's latitude).
lngYesWhere to search from: longitude.
radius_kmNoHow far from there, in kilometres.
min_priceNoOnly listings at this price or more.
max_priceNoOnly listings at this price or less.
sortNoFacebook's own order (suggested), newest first, nearest first, or by price.

Example response

{
  "data": [
    {
      "id": "1656586118821988",
      "url": "https://www.facebook.com/marketplace/item/1656586118821988",
      "title": "Trek FX 2 hybrid bike, medium frame",
      "price": "$220",
      "amount": 220,
      "currency": null,
      "description": null,
      "condition": null,
      "location": "Austin, TX",
      "latitude": null,
      "longitude": null,
      "created_at": "2026-11-26T15:12:00Z",
      "sold": false,
      "pending": null,
      "seller": "Chris M.",
      "seller_id": "100000000000001",
      "category_id": "1658310421102081",
      "image": "https://scontent.xx.fbcdn.net/v/t39.30808-6/listing-1.jpg",
      "images": null
    }
  ],
  "page": null,
  "meta": {
    "platform": "facebook",
    "endpoint": "marketplace_search",
    "params": {
      "query": "bike",
      "lat": 30.2677,
      "lng": -97.7475,
      "radius_km": 40,
      "sort": "suggested"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-29T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Why only 24 listings?

Logged out, Facebook's Marketplace search shows the first 24 and no more. Narrow the search with words, radius_km or a price range.

Where do I get the latitude and longitude?

From Marketplace locations: send a place's name and pass its latitude and longitude as lat and lng.

Which orders can I pick?

suggested (Facebook's own), newest, nearest, price_low or price_high.

Why are description and condition empty?

Search results don't carry them. Send a listing's id to Marketplace item for its full details.

Works with

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required