Platforms · Facebook

Facebook Marketplace Location Search Scraper API

Returns Facebook Marketplace locations and cities matching a search term, each with its lat and lng coordinates.

GET /api/v1/data/facebook/marketplace-location-search · 1 credit per call · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Inputs

  • query (required): Location search query (city or area name).

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].city (string): The city.
  • items[].latitude (number): The latitude, in degrees.
  • items[].longitude (number): The longitude, in degrees.
  • items[].multi_line_address (array): The place's address, one line each. Often empty.
  • items[].name (string): The place's name.
  • items[].page_id (string): The place's Facebook Page id.
  • items[].postal_code (string): The postal code.
  • items[].subtitle (string): The place's area and population, as Facebook shows it.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Example call

GET /api/v1/data/facebook/marketplace-location-search?query=Los+Angeles

Questions

How much does the Facebook Marketplace Location Search API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send query. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Do I need a Facebook account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Facebook endpoints

More Facebook scraper APIs