Platforms/Facebook/Marketplace locations

Facebook Marketplace Locations API

GET · 1 credit

Send a place's name, and get up to 10 matching places with the latitude and longitude Marketplace search takes.

GET /v1/facebook/marketplace/locations/search

What people use it for

  • Search by city name: let your users type a city and search Marketplace there.
  • Per-city trackers: look up each city's coordinates once and reuse them in every search.

How it works with other endpoints

Pass a place's latitude and longitude to Marketplace search as lat and lng.

Limits

  • Up to 10 places a call; no pages to follow.

Example request

const url = `${process.env.API_URL}/v1/facebook/marketplace/locations/search?query=Austin`;

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.

Example response

{
  "data": [
    {
      "name": "Austin, Texas",
      "description": "Austin, TX, US · 25,170 people checked in here",
      "latitude": 30.2677,
      "longitude": -97.7475,
      "page_id": "106224666074625"
    }
  ],
  "page": null,
  "meta": {
    "platform": "facebook",
    "endpoint": "marketplace_locations",
    "params": {
      "query": "Austin"
    },
    "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

What is it for?

Marketplace search needs a latitude and a longitude. This turns a place's name into them.

How many places does it return?

Up to 10, as Facebook matches the name.

Does it cost a credit?

Yes, one credit a call like the other endpoints. Keep the coordinates for places you search often.

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