Skip to documentation
Browse documentation

Search Nearby

Discover places around a coordinate using a map viewport derived from the requested radius. Optional query and type terms are combined as search keywords; radius is an approximate search-area control, not a distance cutoff.

Capability ID googlemaps.nearby
Cost 1 credit per request
Maximum runtime 120 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

country string optional

Two-letter country code (default 'us').

lang string optional

Language code such as 'en' or 'en-US' (default 'en').

lat number required

Latitude (required).

Example 37.7749
limit integer optional

Max results (default 60, max 120).

Example 20
lng number required

Longitude (required).

Example -122.4194
query string optional

Search terms, e.g. 'coffee'. Combined with any type terms.

Example coffee
radius integer optional

Approximate map search-area radius in meters (default 1000; not a strict distance cutoff).

Example 500
types array<string> optional

Additional type terms combined into the search query, e.g. ['restaurant'].

Response

Successful output is returned in results[0].data. Raw platform output is intentionally open-ended and may evolve with the upstream source.

Illustrative sample The full redacted fixture is shown in the response panel.

Illustrative output fields

Derived from the sample above for orientation only. These observed fields are not a fixed response schema.

PathObserved typeExample
items array 3 items
items array 3 items
summary object 3 fields
summary.has_more boolean true
summary.query string coffee
summary.total_items integer 20

Execution behavior

A 200 response completed inline. A 202 response was queued; poll GET /jobs/:id until the job reaches completed or failed.