Google Maps Places API
The Google Maps Places API retrieves a complete business profile for a specific location. Returns ratings, GPS coordinates, operating hours, service options, amenities, accessibility features, and payment methods.
Endpoint:
https://api.scrapingdog.com/google_maps/placesAPI Parameters
🔑
Authentication
api_keyRequiredYour personal API key. Available on your dashboard
Type: String
🔗
Request Parameters
typeRequiredThe parameter must be set toplace(i.e.,type=place). It is not required when usingplace_id.
Type: Stringdata_idRequiredIt is the Google Maps data ID. You can get this by entering the location name as the query in our Google Maps API.
Type: Stringplace_idOptionalThe parameter uniquely identifies a place on Google Maps. Place IDs are available for most locations, including businesses, landmarks, parks, and intersections. You can retrieve theplace_idusing our Google Maps API.
Theplace_idcan be used independently without any other optional parameters.
Type: StringcountryOptionalThis is the ISO code of the country from which you are seeking the results. Default:us. For a full list, see the Google Country Parameter.
Type: String
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/google_maps/places?api_key=APIKEY&place_id=ChIJT2h1HKZZwokR0kgzEtsa03k"
import requests params = { "api_key": "APIKEY", "place_id": "ChIJT2h1HKZZwokR0kgzEtsa03k", } response = requests.get("https://api.scrapingdog.com/google_maps/places", params=params) print(response.json())
const axios = require("axios"); axios.get("https://api.scrapingdog.com/google_maps/places", { params: { api_key: "APIKEY", place_id: "ChIJT2h1HKZZwokR0kgzEtsa03k" } }).then(res => console.log(res.data));
<?php $params = http_build_query(["api_key" => "APIKEY", "place_id" => "ChIJT2h1HKZZwokR0kgzEtsa03k"]); $response = file_get_contents("https://api.scrapingdog.com/google_maps/places?" . $params); print_r(json_decode($response, true));
require "net/http" require "json" uri = URI("https://api.scrapingdog.com/google_maps/places") uri.query = URI.encode_www_form(api_key: "APIKEY", place_id: "ChIJT2h1HKZZwokR0kgzEtsa03k") puts JSON.parse(Net::HTTP.get_response(uri).body)
HttpURLConnection con = (HttpURLConnection) new URL("https://api.scrapingdog.com/google_maps/places?api_key=APIKEY&place_id=ChIJT2h1HKZZwokR0kgzEtsa03k").openConnection(); con.setRequestMethod("GET");
API Response
{
"title": "Blue Bottle Coffee",
"rating": 4.5,
"reviews": 1568,
"gps_coordinates": { "latitude": 40.7455096, "longitude": -74.0083012 },
"type": ["Coffee shop", "Cafe"],
"address": "450 W 15th St, New York, NY 10011",
"phone": "+1 212-989-2494",
"website": "https://bluebottlecoffee.com/",
"operating_hours": {
"Monday": "7 AM–7 PM",
"Tuesday": "7 AM–7 PM",
"Wednesday": "7 AM–7 PM",
"Thursday": "7 AM–7 PM",
"Friday": "7 AM–7 PM",
"Saturday": "8 AM–6 PM",
"Sunday": "8 AM–6 PM"
},
"service_options": { "dine_in": true, "takeout": true, "delivery": false },
"amenities": { "wifi": true, "restroom": true, "seating": true },
"accessibility": { "wheelchair_accessible_entrance": true, "wheelchair_accessible_seating": true },
"payment_options": { "credit_cards": true, "debit_cards": true, "nfc_mobile_payments": true }
}