Platforms · Facebook

Facebook Marketplace Search Scraper API

Searches Facebook Marketplace listings by keyword + lat/lng with price, condition, delivery, and date-listed filters. Forward the returned cursor for additional pages.

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

Inputs

  • query (required): Search keyword (e.g., `bike`, `couch`).
  • lat (required): Latitude of the search location.
  • lng (required): Longitude of the search location.
  • radius_km: Search radius in kilometers.
  • min_price: Minimum listing price.
  • max_price: Maximum listing price.
  • count: Number of listings to return per page.
  • sort_by: Sort order for results.
  • delivery_method: Delivery filter: local pickup only, shipping only, or all.
  • condition: Filter listings by item condition.
  • date_listed: Filter by listing recency (relative window or numeric day count).
  • availability: Filter by listing status: `available`, `sold`, or `all`.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].category_id (string): The id of the listing's Marketplace category.
  • items[].creation_time (string): When the listing was created, as ISO 8601.
  • items[].custom_subtitles (array): Extra lines shown under the title, such as a vehicle's details.
  • items[].delivery_types (array): How the item can be delivered, such as `IN_PERSON`.
  • items[].id (string): The listing's id.
  • items[].is_hidden (boolean): Whether the listing is hidden.
  • items[].is_live (boolean): Whether the listing is live.
  • items[].is_pending (boolean): Whether a sale is pending.
  • items[].is_sold (boolean): Whether the item is sold.
  • items[].is_viewer_seller (boolean): Whether the viewing account is the seller.
  • items[].listing_date_text (string): When the listing was posted, in words, such as `Listed 1 week ago`.
  • items[].location (object): Where the item is.
  • items[].location.city (string): The listing's city.
  • items[].location.city_page_id (string): The city's Facebook Page id.
  • items[].location.display_name (string): The location as Facebook shows it.
  • items[].location.state (string): The listing's state or region.
  • items[].mileage (string): A vehicle's mileage as shown, or null for other listings.
  • items[].price (object): The asking price.
  • items[].price.amount (number): The price in whole units of the currency.
  • items[].price.amount_with_offset_in_currency (number): The price in the currency's smallest unit, such as cents.
  • items[].price.formatted_amount (string): The price as shown, with its currency sign.
  • items[].primary_photo (object): The listing's main photo.
  • items[].primary_photo.id (string): The photo's id.
  • items[].primary_photo.url (string): A link to the photo.
  • items[].story_key (string): The feed item's id.
  • items[].story_type (string): The kind of feed item, such as `POST`.
  • items[].strikethrough_price (object): The price before a reduction, or null when the listing is not reduced.
  • items[].strikethrough_price.amount (number): The price in whole units of the currency.
  • items[].strikethrough_price.amount_with_offset_in_currency (number): The price in the currency's smallest unit, such as cents.
  • items[].strikethrough_price.formatted_amount (string): The price as shown, with its currency sign.
  • items[].title (string): The listing's title.
  • items[].url (string): The listing's link.
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each page costs 1 credit. A call that finds nothing, or fails, is free.
  • Each call returns one page of about 24 rows. To get the next page, send next_cursor from the answer as cursor.
  • 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-search?lat=40.7128&lng=-74.0060&query=bike

Questions

How much does the Facebook Marketplace Search API cost?

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

What do I send?

You must send query, lat and lng. 9 more inputs are optional: radius_km, min_price, max_price, count, sort_by, delivery_method, condition, date_listed and availability. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page of about 24 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

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