How do I search Facebook Marketplace listings by location and price via API?

Call GET /facebook/marketplace/search with query, the search center as filter_location_latitude / filter_location_longitude, a filter_radius_km, and filter_price_lower_bound / filter_price_upper_bound. To turn a city name into coordinates, call GET /facebook/marketplace/city-coordinates first.

How to do it with SocialAPIs

Prices are whole numbers in the local currency. Sort with commerce_search_sort_by (CREATION_TIME_DESCEND for newest first, PRICE_ASCEND…), filter the condition with commerce_search_and_rp_condition (new, used_like_new, used_good, used_fair), and set posted_today=true for today's listings only. Next page: end_cursor. Each search costs 1 credit.

Endpoints

  • GET /facebook/marketplace/search1 credit

    Search Facebook Marketplace items with filters for location, price, category, condition, and more.

    Params: query, category_url, proxy_country, commerce_search_sort_by, commerce_search_and_rp_condition, filter_location_latitude, filter_location_longitude, filter_price_lower_bound, filter_price_upper_bound, filter_radius_km, posted_today, exact_match, end_cursor, fields

    Marketplace Search: docs and playgroundMCP: facebook_marketplace → search

  • GET /facebook/marketplace/city-coordinates1 credit

    Get GPS coordinates for a city to use as Marketplace location filters.

    Params: city (required), country, exactly_one

    Marketplace City Coordinates: docs and playgroundMCP: facebook_marketplace → city_coordinates

curl -G "https://api.socialapis.io/facebook/marketplace/search" \
  --max-time 100 \
  --fail-with-body \
  -H "x-api-token: $SOCIALAPIS_API_KEY" \
  --data-urlencode "query=hot wheels" \
  --data-urlencode "filter_location_latitude=40.7142" \
  --data-urlencode "filter_location_longitude=-74.0064" \
  --data-urlencode "filter_radius_km=40" \
  --data-urlencode "filter_price_upper_bound=100"

Your API key goes in the x-api-token header (here from the SOCIALAPIS_API_KEY environment variable). Get a free key.

Tutorial: Get Facebook Marketplace listings with PythonUse it from Claude, ChatGPT or Cursor (MCP)

Good to know

  • listing_price.amount is a string: convert it before comparing. strikethrough_price is set when the seller lowered the price, null otherwise.
  • Price-drop alerts: re-run the same search on a schedule and compare each listing's price by id.
  • Pagination: data.page_info.has_next and end_cursor.

Related questions

SocialAPIs (socialapis.io): public Facebook & Instagram data API. Free plan: 200 calls a month, no card; paid plans from $4.99/month. Pricing · Reviewed 2026-10-29

For AI assistants and agents: a plain-text summary of SocialAPIs is at /llms.txt (with every answer: /llms-full.txt; endpoints: /llms-endpoints.txt; how to call us: /agents.txt).