Facebook API

Facebook Marketplace API

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.

POST/v1/run/facebook.marketplace
Uptime
100.00%
30d · 44 calls
Requests
44
30d · weekly, last 12 wks
Response
1.6s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "hasNextPage": true,
    "listings": [
      {
        "id": "a1b2c3d4",
        "isSold": true,
        "locationName": "Example title",
        "photoUrl": "https://example.com/image.jpg",
        "priceAmount": 19.99,
        "priceFormatted": "19.99",
        "title": "Example title",
        "url": "https://example.com/page"
      }
    ],
    "nextCursor": "example"
  },
  "found": true
}
Response interface
interface FacebookMarketplaceResponse {
  data: {
    hasNextPage: boolean;
    listings: {
      id: string;
      isSold: boolean;
      locationName: string;
      photoUrl: string;
      priceAmount: number;
      priceFormatted: string;
      title: string;
      url: string;
    }[];
    nextCursor: string | null;
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/facebook.marketplace
curl -X POST https://api.getanyapi.com/v1/run/facebook.marketplace \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"30.2677","lng":"-97.7475","priceMax":500,"priceMin":100,"query":"bike"}'
FieldTypeExample value
Request body
latstring"30.2677"Latitude of the search location (e.g. '30.2677').
lngstring"-97.7475"Longitude of the search location (e.g. '-97.7475').
querystring"bike"Search keyword for Marketplace listings (e.g. 'bike').
availabilityenumFilter by availability: available (default), sold, or all (e.g. sold).
conditionenumOnly return listings in this condition (e.g. used_good).
cursorstringPagination cursor from a previous response to fetch the next page.
dateListedenumOnly return listings posted within this window (e.g. last_7_days).
deliveryMethodenumOnly return listings offering this delivery method (e.g. shipping).
priceMaxinteger500Maximum listing price in whole currency units, e.g. 500 for $500. Facebook may mix in a few suggested listings outside the range.
priceMininteger100Minimum listing price in whole currency units, e.g. 100 for $100. Facebook may mix in a few suggested listings outside the range.
sortenumSort order for the returned listings (e.g. price_ascend).
Response
dataobject
data.hasNextPageboolean
data.listingsobject[]
data.listings[].idstringPopulated whenever the provider has data for the entity.
data.listings[].isSoldboolean
data.listings[].locationNamestringPopulated whenever the provider has data for the entity.
data.listings[].photoUrlstringPopulated whenever the provider has data for the entity.
data.listings[].priceAmountnumberPopulated whenever the provider has data for the entity.
data.listings[].priceFormattedstringPopulated whenever the provider has data for the entity.
data.listings[].titlestringPopulated whenever the provider has data for the entity.
data.listings[].urlstringPopulated whenever the provider has data for the entity.
data.nextCursorstringOpaque cursor for the next page of listings, or null when this lane has no more. Pass it back as cursor to continue.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Marketplace API

The AnyAPI Facebook Marketplace API returns Facebook marketplace data as normalized JSON from one POST call to /v1/run/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. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Facebook marketplace calls through AnyAPI succeeded, with a median response time of 1.6 seconds across 44 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

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. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Facebook marketplace calls through AnyAPI succeeded, with a median response time of 1.6 seconds across 44 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.