Google Maps Photos API
The Google Maps Photos API retrieves high-quality photos from any Google Maps location. Filter by category and paginate through large photo sets using a data_id from the Google Maps Search API.
Endpoint:
https://api.scrapingdog.com/google_maps/photosAPI Parameters
π
Authentication
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
π
Location
data_idRequiredThe Google Maps data ID. You can get this by entering the location name as the query in our Google Maps API.
Type: String
π
Localization
languageOptionalLanguage of the results. Possible Values:en,es,fr,de, etc. Default:en. For a full list, see the Google Language Page.
Type: String
β
οΈ Advanced Parameters
category_idOptionalThis parameter specifies the category's unique identifier, which can be obtained from thecategoriesarray using our Google Maps Photos API.
Type: Stringnext_page_tokenOptionalThe next_page_token is used to get the next page results.
Type: String
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/google_maps/photos?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0"
import requests params = { "api_key": "APIKEY", "data_id": "0x88371272500ebf33:0x70a094fd98fb45c0", } response = requests.get("https://api.scrapingdog.com/google_maps/photos", params=params) print(response.json())
const axios = require("axios"); axios.get("https://api.scrapingdog.com/google_maps/photos", { params: { api_key: "APIKEY", data_id: "0x88371272500ebf33:0x70a094fd98fb45c0" } }).then(res => console.log(res.data));
<?php $params = http_build_query(["api_key" => "APIKEY", "data_id" => "0x88371272500ebf33:0x70a094fd98fb45c0"]); $response = file_get_contents("https://api.scrapingdog.com/google_maps/photos?" . $params); print_r(json_decode($response, true));
require "net/http" require "json" uri = URI("https://api.scrapingdog.com/google_maps/photos") uri.query = URI.encode_www_form(api_key: "APIKEY", data_id: "0x88371272500ebf33:0x70a094fd98fb45c0") puts JSON.parse(Net::HTTP.get_response(uri).body)
HttpURLConnection con = (HttpURLConnection) new URL("https://api.scrapingdog.com/google_maps/photos?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0").openConnection(); con.setRequestMethod("GET");
API Response
{
"categories": [
{ "name": "All", "id": "CgIgAQ==" },
{ "name": "Latest", "id": "CgIgARICGAI=" },
{ "name": "Food & drink", "id": "CgIgARICCAE=" },
{ "name": "Interior", "id": "CgIgARICCAI=" }
],
"photos": [
{
"thumbnail": "https://lh3.googleusercontent.com/places/photo-thumb-1...",
"image": "https://lh3.googleusercontent.com/places/photo-full-1..."
},
{
"thumbnail": "https://lh3.googleusercontent.com/places/photo-thumb-2...",
"image": "https://lh3.googleusercontent.com/places/photo-full-2..."
}
],
"scrapingdog_pagination": {
"next": "https://api.scrapingdog.com/google_maps/photos?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0&next_page_token=EvgDKYQi49...",
"next_page_token": "EvgDKYQi49-NlUMIDw..."
}
}