Google Maps Place Details API ​
API health status
Healthy Available Limited Mostly unavailable No data
Loading health status...
Get Google maps Place Details data, including contact details and business information, for enrich business directories, look up place details, and sync local app data.
Tags: Google Maps
Parameters ​
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| place_id | No | string | The unique Google Place ID. Obtainable via the Google Maps Search API. Use this or 'data_id'. | |
| data_id | No | string | The unique Google Maps location data ID. Use this or 'place_id'. | |
| country | No | string | us | Set the target country code (e.g., 'us', 'uk') to localize results. See Google Countries. |
Copy Request ​
bash
curl -X GET "https://api.justserpapi.com/api/v1/google/maps/places?place_id=YOUR_VALUE" \
-H "X-API-Key: YOUR_API_KEY"js
const res = await fetch("https://api.justserpapi.com/api/v1/google/maps/places?place_id=YOUR_VALUE", {
headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);python
import requests
url = "https://api.justserpapi.com/api/v1/google/maps/places"
headers = { "X-API-Key": "YOUR_API_KEY" }
params = {
"place_id": "YOUR_VALUE"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())php
<?php
$url = "https://api.justserpapi.com/api/v1/google/maps/places?place_id=YOUR_VALUE";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: YOUR_API_KEY"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.justserpapi.com/api/v1/google/maps/places?place_id=YOUR_VALUE", nil)
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Response ​
Loading the latest response example...
