Google Maps API Tutorials (JavaScript)

Get Place Details From Place ID – Google Maps API Example

Last modified on April 17th, 2023
Raja Tamil
Google Maps API Javascript

Place Details Request lets you get more comprehensive information about a specific place using place_id.

The place_id can be found on each place item of the Place Search Response Object which could be either Nearby Search Request or Text Search Request.

Place Details BASE URL

https://maps.googleapis.com/maps/api/place/details

Place Details Request URL Parameter (Required)

namedescription
JSON or XMLOutput format (json recommended)

[blog-in-between-card]

Place Details Request Query Params (Required)

namedescription
place_id (Required)A unique identifier of a place (ID) that is normally returned from a Place Search
key (Required)Your Application API Key from Google Cloud Console

Sample Place Details Request URL

https://maps.googleapis.com/maps/api/place/details/json?place_id=ChIJryijc9s0K4gRG9aU7SDTXdA&key=[YOURAPIKEY]

Place Details Response JSON Object

FREE 1-HOUR COURSE:
Vue JS & Google Maps API

ACCESS FREE COURSE NOW