Prompt
nearby places search API
Latest observation
Oct 15, 2026
OpenAI APIWeb search: off
If you mean a Nearby Places Search API, the most common options are:
1) Google Places API
Search nearby businesses/POIs by location and radius.
Example request
GET https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=37.7749,-122.4194&radius=1500&type=restaurant&key=YOUR_API_KEY
Common parameters
location=lat,lngradius= search radius in meterstype= place category, e.g.restaurant,pharmacykeyword= free-text filterrankby=distance= sort by distance instead of radiuskey= API key
2) Yelp Fusion API
Good for local business search with ratings and reviews.
Example
GET https://api.yelp.com/v3/businesses/search?latitude=37.7749&longitude=-122.4194&radius=1500&categories=restaurants
Requires:
- Bearer token in
Authorizationheader
3) Foursquare Places API
Useful for venue discovery and category-based search.
Example
GET https://api.foursquare.com/v3/places/search?ll=37.7749,-122.4194&radius=1500&categories=13065
Requires:
Authorization: YOUR_API_KEY
4) OpenStreetMap / Overpass API
Free and flexible, but more complex and less polished.
Example query
[out:json];
node(around:1500,37.7749,-122.4194)["amenity"="restaurant"];
out;
Minimal Python example for Google Places
import requests
url = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"
params = {
"location": "37.7749,-122.4194",
"radius": 1500,
"type": "restaurant",
"key": "YOUR_API_KEY"
}
resp = requests.get(url, params=params)
print(resp.json())
If you want, I can give you:
- a comparison table of these APIs
- code in Python/JavaScript
- or help you build a nearby places search endpoint for your app.