Links

Google Maps Data ID API

Using this API you can get the JSON results of the data ID of a particular place anywhere in the world.
Here is the list of default parameters for this API :
Parameters
Description
api_key required
This is your API key.
q required
Type: String
The name of that particular place.
gl
Type: String
Default: "us" Name of the country. The name should be in ISO 3166 Alpha-2 format.

API Example:

cURL
Node JS
Python
Java
Ruby
PHP
cURL "https://api.serpdog.io/dataId?&api_key=APIKEY&q=Statue Of Liberty&gl=us"
const axios = require('axios');
axios.get('https://api.serpdog.io/dataId?api_key=APIKEY&q=Statue Of Liberty&gl=us')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'api_key': 'APIKEY', 'q':'Statue Of Liberty' , 'gl':'us'}
resp = requests.get('https://api.serpdog.io/dataId', params=payload)
print (resp.text)
try {
String url = "https://api.serpdog.io/dataId?api_key=APIKEY&q=Statue Of Liberty&gl=us";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:q => "Statue Of Liberty",
:gl => "us"
}
uri = URI('https://api.serpdog.io/dataId')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.serpdog.io/dataId?api_key=APIKEY&q=Statue Of Liberty&gl=us";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
{
"meta": {
"api_key": "APIKEY",
"q": "Statue Of Liberty",
"gl": "us"
},
"placeDetails": [
{
"Address": " New York, NY 10004"
},
{
"Phone": " (212) 363-3200"
},
{
"dataId": "0x89c25090129c363d:0x40c6a5770d25022b"
}
]
}