Facebook API

Facebook Marketplace location search API

Resolve a place name to Facebook Marketplace locations with coordinates and metadata as normalized JSON.

POST/v1/run/facebook.marketplace_location_search
Requests
-
30d

Provider network

Providers ranked by traffic

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": {
    "locations": [
      {
        "city": "San Francisco",
        "latitude": 37.7749,
        "longitude": -122.4194,
        "name": "Example title",
        "pageId": "a1b2c3d4",
        "postalCode": "94107",
        "subtitle": "Example title"
      }
    ]
  },
  "found": true
}
Response interface
interface FacebookMarketplaceLocationSearchResponse {
  data: {
    locations: {
      city: string;
      latitude: number;
      longitude: number;
      name: string;
      pageId: string;
      postalCode: string;
      subtitle: string;
    }[];
  } | 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_location_search
curl -X POST https://api.getanyapi.com/v1/run/facebook.marketplace_location_search \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"Austin"}'
FieldTypeExample value
Request body
querystring"Austin"Location search query (e.g. a city name).
Response
dataobject
data.locationsobject[]
data.locations[].citystringPopulated whenever the provider has data for the entity.
data.locations[].latitudenumberPopulated whenever the provider has data for the entity.
data.locations[].longitudenumberPopulated whenever the provider has data for the entity.
data.locations[].namestringPopulated whenever the provider has data for the entity.
data.locations[].pageIdstringPopulated whenever the provider has data for the entity.
data.locations[].postalCodestringPopulated whenever the provider has data for the entity.
data.locations[].subtitlestringPopulated whenever the provider has data for the entity.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Marketplace location search API

The AnyAPI Facebook Marketplace location search API returns Facebook marketplace location search data as normalized JSON from one POST call to /v1/run/facebook.marketplace_location_search. Resolve a place name to Facebook Marketplace locations with coordinates and metadata 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.

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.

Resolve a place name to Facebook Marketplace locations with coordinates and metadata 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.