API directory · Google Maps Platform
Places API: rich place discovery for your product
The Places API (New) gives your application access to Google's global places database, covering search, autocomplete, enriched details and AI-powered summaries. As Asia's largest Google Maps Platform reseller and Premier Partner, Lepton picks the right Places surface for your use case and delivers the integration end to end.
Get a demo →What the API does
Google's places database, searchable and enriched
The Places API (New) is the current production release of Google's place data surface. It covers Text Search, Nearby Search, Place Details, Place Photos and Autocomplete, with field masks to control exactly which data fields you pull and pay for. It also surfaces enhanced attributes: payment and parking options, fuel and EV charge options, accessibility details and amenities. AI-powered summaries of places, reviews and areas are rolling out on select SKUs; we confirm availability for your region and plan during scoping.
The legacy Places API can no longer be enabled for new projects. New integrations use the New version.
Address and place lookup
Places API (New): Autocomplete, Place Details
Sample response. Pick an example to run it live.
Suggestions Autocomplete
The pick, resolved Place Details
Udyog Vihar Phase IV, Sector 18, Gurugram, Haryana 122015, India
- Coordinates
- 28.49870, 77.08380
- Plus code
- 7JWVF3XM+FG
- Place ID
- ChIJjzYhl-v8jqivBdjSIN-2Jh6
| Sublocality level 2 | Udyog Vihar Phase IV |
|---|---|
| Sublocality level 1 | Sector 18 |
| Locality | Gurugram |
| Administrative area level 2 | Gurgaon Division |
| Administrative area level 1 | Haryana |
| Postal code | 122015 |
The request
// 1. Autocomplete, as the visitor types (session-priced)
POST https://places.googleapis.com/v1/places:autocomplete
X-Goog-Api-Key: YOUR_API_KEY
X-Goog-FieldMask: suggestions.placePrediction.placeId,suggestions.placePrediction.text,suggestions.placePrediction.structuredFormat,suggestions.placePrediction.types
Content-Type: application/json
{
"input": "Udyog Vihar Phase 4",
"sessionToken": "SESSION_TOKEN",
"includedRegionCodes": [
"in"
],
"languageCode": "en"
}
// 2. Place Details for the pick, same token, ends the session
GET https://places.googleapis.com/v1/places/ChIJjzYhl-v8jqivBdjSIN-2Jh6?sessionToken=SESSION_TOKEN&languageCode=en
X-Goog-Api-Key: YOUR_API_KEY
X-Goog-FieldMask: id,formattedAddress,addressComponents,location,plusCode,types
// Bills: Autocomplete Session Usage (no charge) + Place Details Essentials.
// Without a session token, each keystroke bills Autocomplete Requests.Raw response
{
"places:autocomplete": {
"suggestions": [
{
"placePrediction": {
"place": "places/ChIJjzYhl-v8jqivBdjSIN-2Jh6",
"placeId": "ChIJjzYhl-v8jqivBdjSIN-2Jh6",
"text": {
"text": "Udyog Vihar Phase IV, Sector 18, Gurugram, Haryana 122015, India",
"matches": [
{
"endOffset": 19
}
]
},
"structuredFormat": {
"mainText": {
"text": "Udyog Vihar Phase IV",
"matches": [
{
"endOffset": 19
}
]
},
"secondaryText": {
"text": "Sector 18, Gurugram, Haryana 122015, India"
}
},
"types": [
"sublocality_level_2",
"sublocality",
"political"
]
}
},
{
"placePrediction": {
"place": "places/ChIJRGk3_4pg4RzKexDprnXECK0",
"placeId": "ChIJRGk3_4pg4RzKexDprnXECK0",
"text": {
"text": "Udyog Vihar Phase IV Metro Approach Road, Udyog Vihar Phase IV, Gurugram, Haryana 122015, India",
"matches": [
{
"endOffset": 19
}
]
},
"structuredFormat": {
"mainText": {
"text": "Udyog Vihar Phase IV Metro Approach Road",
"matches": [
{
"endOffset": 19
}
]
},
"secondaryText": {
"text": "Udyog Vihar Phase IV, Gurugram, Haryana 122015, India"
}
},
"types": [
"route"
]
}
},
{
"placePrediction": {
"place": "places/ChIJDrNry2oTM6bQGValDACJhqI",
"placeId": "ChIJDrNry2oTM6bQGValDACJhqI",
"text": {
"text": "Udyog Vihar Phase V, Sector 19, Gurugram, Haryana 122016, India",
"matches": [
{
"endOffset": 19
}
]
},
"structuredFormat": {
"mainText": {
"text": "Udyog Vihar Phase V",
"matches": [
{
"endOffset": 19
}
]
},
"secondaryText": {
"text": "Sector 19, Gurugram, Haryana 122016, India"
}
},
"types": [
"sublocality_level_2",
"sublocality",
"political"
]
}
},
{
"placePrediction": {
"place": "places/ChIJ6DpXGr3dC4VzTIPfoOnz2hW",
"placeId": "ChIJ6DpXGr3dC4VzTIPfoOnz2hW",
"text": {
"text": "Udyog Vihar Phase III, Sector 20, Gurugram, Haryana 122016, India",
"matches": [
{
"endOffset": 19
}
]
},
"structuredFormat": {
"mainText": {
"text": "Udyog Vihar Phase III",
"matches": [
{
"endOffset": 19
}
]
},
"secondaryText": {
"text": "Sector 20, Gurugram, Haryana 122016, India"
}
},
"types": [
"sublocality_level_2",
"sublocality",
"political"
]
}
}
]
},
"places/ChIJjzYhl-v8jqivBdjSIN-2Jh6": {
"id": "ChIJjzYhl-v8jqivBdjSIN-2Jh6",
"formattedAddress": "Udyog Vihar Phase IV, Sector 18, Gurugram, Haryana 122015, India",
"addressComponents": [
{
"longText": "Udyog Vihar Phase IV",
"shortText": "Udyog Vihar Phase IV",
"types": [
"sublocality_level_2",
"sublocality",
"political"
],
"languageCode": "en"
},
{
"longText": "Sector 18",
"shortText": "Sector 18",
"types": [
"sublocality_level_1",
"sublocality",
"political"
],
"languageCode": "en"
},
{
"longText": "Gurugram",
"shortText": "Gurugram",
"types": [
"locality",
"political"
],
"languageCode": "en"
},
{
"longText": "Gurgaon Division",
"shortText": "Gurgaon Division",
"types": [
"administrative_area_level_2",
"political"
],
"languageCode": "en"
},
{
"longText": "Haryana",
"shortText": "HR",
"types": [
"administrative_area_level_1",
"political"
],
"languageCode": "en"
},
{
"longText": "India",
"shortText": "IN",
"types": [
"country",
"political"
],
"languageCode": "en"
},
{
"longText": "122015",
"shortText": "122015",
"types": [
"postal_code"
],
"languageCode": "en"
}
],
"location": {
"latitude": 28.4987,
"longitude": 77.0838
},
"plusCode": {
"globalCode": "7JWVF3XM+FG",
"compoundCode": "F3XM+FG Gurugram, Haryana"
},
"types": [
"sublocality_level_2",
"sublocality",
"political"
]
}
}Want this in your product? Talk to a GMP specialist
Find places by text or nearby
Places API (New): Text Search, Nearby Search
Sample response. Pick an example to run it live.
6 places ranked by relevance
The request
POST https://places.googleapis.com/v1/places:searchText
X-Goog-Api-Key: YOUR_API_KEY
X-Goog-FieldMask: places.id,places.displayName,places.formattedAddress,places.location,places.primaryTypeDisplayName
Content-Type: application/json
{
"textQuery": "cafes near Koramangala, Bengaluru",
"regionCode": "IN",
"languageCode": "en",
"maxResultCount": 8
}
// Bills: Text Search Pro. Adding rating or opening hours to the mask bills Enterprise.Raw response
{
"places": [
{
"id": "ChIJEC4zAlQCPTth5oxUoiOX3BG",
"displayName": {
"text": "Fifth Block Coffee House",
"languageCode": "en"
},
"formattedAddress": "17th Main Rd, Koramangala 5th Block, Bengaluru, Karnataka 560095, India",
"location": {
"latitude": 12.9356,
"longitude": 77.6172
},
"primaryTypeDisplayName": {
"text": "Coffee shop",
"languageCode": "en"
}
},
{
"id": "ChIJIBYAoPDbnVJZBKThZQlqxEl",
"displayName": {
"text": "The Filter Kaapi Bar",
"languageCode": "en"
},
"formattedAddress": "80 Feet Rd, Koramangala 4th Block, Bengaluru, Karnataka 560034, India",
"location": {
"latitude": 12.9339,
"longitude": 77.6258
},
"primaryTypeDisplayName": {
"text": "Cafe",
"languageCode": "en"
}
},
{
"id": "ChIJk4HIwdsUcwZcf2IajWeeAMS",
"displayName": {
"text": "Courtyard Bakehouse",
"languageCode": "en"
},
"formattedAddress": "1st Cross Rd, Koramangala 6th Block, Bengaluru, Karnataka 560095, India",
"location": {
"latitude": 12.9391,
"longitude": 77.6221
},
"primaryTypeDisplayName": {
"text": "Bakery",
"languageCode": "en"
}
},
{
"id": "ChIJe4F6KAqyk3qR_aA1WGm6xnt",
"displayName": {
"text": "Monsoon Coffee Co.",
"languageCode": "en"
},
"formattedAddress": "Jyoti Nivas College Rd, Koramangala 5th Block, Bengaluru, Karnataka 560095, India",
"location": {
"latitude": 12.9322,
"longitude": 77.6147
},
"primaryTypeDisplayName": {
"text": "Coffee shop",
"languageCode": "en"
}
},
{
"id": "ChIJ16ktqPzDyqxT-qjmd24sed2",
"displayName": {
"text": "Indigo Leaf Cafe",
"languageCode": "en"
},
"formattedAddress": "8th Main Rd, Koramangala 3rd Block, Bengaluru, Karnataka 560034, India",
"location": {
"latitude": 12.9289,
"longitude": 77.6224
},
"primaryTypeDisplayName": {
"text": "Cafe",
"languageCode": "en"
}
},
{
"id": "ChIJi-rXyJTEPj1fd6_0UnpUP1Q",
"displayName": {
"text": "Brew Street Cafe",
"languageCode": "en"
},
"formattedAddress": "18th Cross Rd, Koramangala 6th Block, Bengaluru, Karnataka 560095, India",
"location": {
"latitude": 12.9417,
"longitude": 77.6196
},
"primaryTypeDisplayName": {
"text": "Cafe",
"languageCode": "en"
}
}
]
}Want this in your product? Talk to a GMP specialist
Use cases
Where teams put the Places API to work
- 01
Discovery · In-app local search and point-of-interest discovery
Consumer apps use Text Search and Nearby Search to surface restaurants, retailers, services and landmarks, enriched with photos, ratings and attribute data from Google's database.
- 02
Address entry · Autocomplete at checkout and registration
Place Autocomplete with session tokens reduces keystroke latency and improves address capture accuracy at the point of entry, with session-based billing that keeps cost predictable.
- 03
Proptech · Enriched neighbourhood context for real estate
Property portals use Place Details and Nearby Search to surface schools, hospitals, transit stops and retail density around a listing, giving buyers richer context without a separate data vendor.
- 04
Retail · Store locator and site selection
Retail and franchise teams use Nearby Search filtered by place type and operating status to power store finders, and Places data feeds into site-selection analysis alongside Places Insights.
Where Lepton comes in
API selection, session-token architecture and field-mask cost engineering
Google Maps Platform has 50+ APIs. We pick the ones that solve your problem and deliver the integration. For Places specifically, the choices that drive cost and quality are the Places surface variant, the field mask configuration and whether Autocomplete sessions are wired correctly.
Picking the right Places surface
Text Search, Nearby Search, Place Details and Autocomplete bill differently and return different data. We match the right surface to each feature, so you do not pay for data you do not use.
End-to-end SDK and API wiring
GCP project setup, API key configuration, service account scoping, field mask definition and session token wiring for Autocomplete, delivered as a working integration rather than a price list.
Field-mask and session-based billing engineering
Field masks on Place Details requests are the single largest cost lever. We define them against your data requirements and validate session token coverage on Autocomplete flows.
Request headers and JSON body
POST https://places.googleapis.com/v1/places:searchText
Content-Type: application/json
X-Goog-Api-Key: <your key>
X-Goog-FieldMask: places.id,places.displayName,places.formattedAddress,
places.location,places.rating,places.userRatingCount,
places.businessStatus,places.primaryType
{
"textQuery": "vegetarian restaurant in Indiranagar Bengaluru",
"includedType": "restaurant",
"regionCode": "IN",
"languageCode": "en",
"minRating": 4.0,
"locationBias": {
"circle": {
"center": { "latitude": 12.9784, "longitude": 77.6408 },
"radius": 1500.0
}
}
} Response application/json
{
"places": [
{
"id": "ChIJXXXXXXXXXXXXXXXXXXXXXX1",
"displayName": { "text": "Tulsi Kitchen", "languageCode": "en" },
"formattedAddress": "12th Main Rd, Indiranagar, Bengaluru, Karnataka 560038, India",
"location": { "latitude": 12.97812, "longitude": 77.64114 },
"rating": 4.4,
"userRatingCount": 2187,
"businessStatus": "OPERATIONAL",
"primaryType": "vegetarian_restaurant"
},
{
"id": "ChIJXXXXXXXXXXXXXXXXXXXXXX2",
"displayName": { "text": "Neem Tree Cafe", "languageCode": "en" },
"formattedAddress": "100 Feet Rd, Indiranagar, Bengaluru, Karnataka 560038, India",
"location": { "latitude": 12.97094, "longitude": 77.64027 },
"rating": 4.2,
"userRatingCount": 1043,
"businessStatus": "OPERATIONAL",
"primaryType": "restaurant"
},
{
"id": "ChIJXXXXXXXXXXXXXXXXXXXXXX3",
"displayName": { "text": "Anna Tiffin House", "languageCode": "en" },
"formattedAddress": "CMH Rd, Indiranagar, Bengaluru, Karnataka 560038, India",
"location": { "latitude": 12.97655, "longitude": 77.63719 },
"rating": 4.1,
"userRatingCount": 618,
"businessStatus": "OPERATIONAL",
"primaryType": "restaurant"
}
]
} Tell us the discovery problem. We will name the right Places surface.
Bring the product use case. We map it to the correct Places API endpoints and walk through the integration with our team.
Get a demo →