FACEBOOK SCRAPER API

Facebook Location Search API

Find cities and areas by name, with the ID that lists their events and the latitude and longitude that search their Marketplace, plus country and time zone. This list is not paginated: one request returns up to 8 places, best match first.

Endpoint
POST /facebook/search/locations
Price
1 credit per request
SDK
client.facebook.searchLocations()
MCP tool
facebook_search_locations
Terminal
curl -X POST "https://api.bridgly.app/facebook/search/locations" \
-H "Authorization: Bearer $BRIDGLY_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Austin"
}'
[ REQUEST AND RESPONSE ]

What does the Facebook Location Search API return?

Find cities and areas by name as JSON, with the ID that lists their events and the latitude and longitude that search their Marketplace. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.

Request body

querystringrequired
Name of the city or area to find, e.g. "Austin".
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.

Example response

200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"locations": [
{
"id": "string",
"name": "string",
"subtitle": "string",
"address": "string",
"latitude": 0,
"longitude": 0,
"countryCode": "string",
"timezone": "string"
}
]
}
}
[ USE CASES ]

What can you build with the Facebook Location Search API?

Search Marketplace by city

Turn a city name into the coordinates the Marketplace search needs.

List local events

Get the city ID that lists the events happening there.

Geocode places

Get coordinates, country and time zone for a place name.

[ FAQ ]

Facebook Location Search API questions

How many results come back?

Up to 8 places per search, best match first. Add the state or country to the query to narrow it, for example "Springfield, Missouri".

How do I use the Facebook Location Search API?

Send a POST request to https://api.bridgly.app/facebook/search/locations with query in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.facebook.searchLocations(). AI agents connected to Bridgly over MCP can call the facebook_search_locations tool.

How much does the Facebook Location Search API cost?

Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.67 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.

Try the Facebook Location Search API

100 free credits on business email, no card. Your first call takes a minute.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free with 100 credits