Skip to content

google-places-api

Use when working with Google Places API - place search, place details, autocomplete, place photos, or location-based queries. Also use when integrating Google Maps place data, nearby search, or address validation.

ModelSource
sonnetpack: google-apis
Full Reference

┏━ πŸ”§ google-places-api ━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with Google Places API - plac… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Places API (New) v1 β€” the current actively-developed version. Legacy Places API is deprecated (no new project enrollment since March 2025). Field masks are mandatory on all requests.

ItemValue
Base URLhttps://places.googleapis.com
AuthX-Goog-Api-Key: YOUR_KEY header
Field maskX-Goog-FieldMask: field1,field2 β€” required
Pythonpip install google-maps-places
Node.jsnpm install @googlemaps/places
OperationMethodEndpoint
Text SearchPOST/v1/places:searchText
Nearby SearchPOST/v1/places:searchNearby
Place DetailsGET/v1/places/{placeId}
AutocompletePOST/v1/places:autocomplete
Place PhotosGET/v1/{photoName}/media
I want to…File
Authentication, API key setup, client libraries, legacy migrationreference/auth-setup.md
Field masks, billing tiers, prefix rulesreference/field-masks.md
Text Search, Nearby Search, place typesreference/search.md
Place Details, fetching by Place IDreference/details.md
Autocomplete, session tokens, billing optimizationreference/autocomplete.md
Place Photos, two-step photo fetchreference/photos.md
Reviews, AI generative summaries, atmosphere fieldsreference/reviews.md
Pricing tables, rate limits, error codes, retry logic, Maps JS APIreference/pricing-errors.md

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.