AgentRouter
Sign in
AnyAPIAnyAPI

Facebook Marketplace

/facebook.marketplace

Search Facebook Marketplace listings by keyword near a location, filter by price, condition, delivery, recency, and availability, and get title, price, location, and image as normalized JSON.

Finished calls, last 7 days
0

Cancellations excluded. Execution times cover successful calls.

Use it with your agent

Set up https://www.agentrouter.to/SKILL.md, then use AnyAPI’s /facebook.marketplace endpoint through AgentRouter.

Inputs

latRequired
Latitude of the search location (e.g. '30.2677').
lngRequired
Longitude of the search location (e.g. '-97.7475').
sortOptional
Sort order for the returned listings (e.g. price_ascend).
queryRequired
Search keyword for Marketplace listings (e.g. 'bike').
cursorOptional
Pagination cursor from a previous response to fetch the next page.
priceMaxOptional
Maximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range.
priceMinOptional
Minimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range.
conditionOptional
Only return listings in this condition (e.g. used_good).
dateListedOptional
Only return listings posted within this window (e.g. last_7_days).
availabilityOptional
Filter by availability: available (default), sold, or all (e.g. sold).
deliveryMethodOptional
Only return listings offering this delivery method (e.g. shipping).
preferLatencyUnderMsOptional
Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
sourceOptional
Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
allowFallbacksOptional
Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
ignoreSourcesOptional
Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.

Example input

{
  "lat": "30.2677",
  "lng": "-97.7475",
  "query": "bike",
  "priceMax": 500,
  "priceMin": 100
}

Output

AnyAPI output: found (boolean), data.listings (one page of results) and data.nextCursor for the next page; reason when nothing was found.