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
curl -X POST "https://api.bridgly.app/facebook/search/locations" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "Austin"}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/facebook/search/locations", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "query": "Austin", },)data = response.json()const response = await fetch("https://api.bridgly.app/facebook/search/locations", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "query": "Austin" }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.facebook.searchLocations({ query: "Austin"});if (res.type === "success") { console.log(res.data);}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
{ "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" } ] }}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.
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.
More Facebook endpoints
The same API key works on every endpoint. See all Facebook Scraper API endpoints.
- Facebook Marketplace API→Search Facebook Marketplace listings near any location as JSON: title, price, original price, city, photo, seller, date and delivery options.
- Facebook Marketplace Item API→Get a Facebook Marketplace listing as JSON: title, description, price, condition, every photo, location, seller and status.
- Facebook Profile API→Get a Facebook profile or Page as JSON: name, bio, category, follower count, verified badge, intro details, websites and pictures, from a link or username.
- Facebook Posts API→List the posts of any public Facebook profile or Page as JSON, newest first: text, photos, videos, links, reactions by type, comment and share counts.
Try the Facebook Location Search API
100 free credits on business email, no card. Your first call takes a minute.