Introducing the Instagram APIRead more →

Facebook Marketplace Location Search API. Places matching your search.

Location IDs for a city or postal code. We handle the proxies, blocks and platform changes.

Facebook Marketplace Location Search API at a glance

Returns the places Facebook Marketplace's location picker offers for a city, neighborhood or postal code, with the ID a Marketplace search takes. Each place has its name, coordinates, the city and postal code Facebook gives it, the area line the picker shows, whether Facebook calls it a city, and its check-in count. Filter to one country, or rank around coordinates to tell places of the same name apart.

GET /v1/facebook/search_places

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 21 typed fields null when unknown
  • 10 places per page, most relevant first, as Marketplace's location picker ranks them
  • query is all it needs, e.g. Austin

Send one request. Get up to 10 places back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
query = Austin
GET /v1/facebook/search_placesTry in
const params = new URLSearchParams({
  query: "Austin",
});
const res = await fetch(`https://socialtap.dev/v1/facebook/search_places?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/facebook/search_placesLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 2 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Facebook Marketplace doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    What to look for, as typed into Marketplace's location picker: a city, neighborhood or postal code. Matched by name, case-insensitive; a place ID matches nothing.

  • Write one parser

    Facebook Marketplace and Instagram answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, instagram, …).
idstring
Platform-native place ID (TikTok POI ID, Instagram location ID, Facebook Page ID).
namestring
Place name as the platform shows it.
urlstring
Canonical place page URL.
typestring
Coarse kind: venue for one spot (a business, landmark or address), area for a region (a neighborhood, city, state or country); unknown when the platform does not say. New values may be added; treat unknown values as unknown.
categorystring
The platform's category label (Cafe, City, Pizza Fast Food), as shown; not normalized across platforms.
descriptionstring
The place's description or about text; null when none is shown.
addressstring
Address as the platform shows it: a street line on some platforms, the whole postal address or only the enclosing region on others; not normalized.

What teams build with the Facebook Marketplace Location Search API.

  • Turn a city name into a Marketplace location

  • Build a location picker on Facebook's places

  • Geocode a postal code to Facebook's coordinates

  • Compare check-ins across a city's neighborhoods

Good to know before you build.

  • id is the Facebook Page behind the place: the Facebook Marketplace Search API takes it as location, and the Facebook City Events API takes a city's.
  • Facebook doesn't put the biggest place first (Austin, Illinois comes before Austin, Texas): send country, or lat and lng, to get one specific place.
  • The picker returns one page per query and no more, so a full page ends at platform_limit: make the query more specific or filter by country to see others.
  • city is the enclosing city Facebook gives the place's coordinates, in the local script: the Austin neighborhood of Chicago has city Chicago, and Tokyo's wards have 千代田区 and 新宿区.
  • Facebook files a few streets among its neighborhoods, and they come back with type area, as the picker offers them.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Facebook Marketplace Location Search API.

More in the API reference.

How much does the Facebook Marketplace Location Search API cost?
A page of up to 10 places costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it with your own search.

Type it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs