Scrapingdog

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/photos

API Parameters

πŸ”‘

Authentication

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
πŸ“

Location

  • data_id Required
    The Google Maps data ID. You can get this by entering the location name as the query in our Google Maps API.

    Type: String
🌍

Localization

  • language Optional
    Language 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_id Optional
    This parameter specifies the category's unique identifier, which can be obtained from the categories array using our Google Maps Photos API.

    Type: String
  • next_page_token Optional
    The 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"
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..."
  }
}