Google Maps Photo Meta API

Our Google Maps Photo Meta API allows you to scrape more info about photo from Google Maps Photo. The API is accessed through the following endpoint: /search?engine=google_maps_photo_meta.

A user may query the following: https://serpapi.com/search?engine=google_maps_photo_meta utilizing a GET request. Head to the playground for a live and interactive demo.

API Parameters

Search Query

data_id

Required

Parameter defines the Google Maps Photos' data ID. Find the data ID of a photo using our Google Maps Photos API.

Serpapi Parameters

engine

Required

Set parameter to google_maps_photo_meta to use the Google Maps Photo Meta API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the Google Maps Photo Meta results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

API Results

JSON Results

JSON output includes structured data for user, date and location.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, the error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

This API does not have the HTML response, just a text. search_metadata.prettify_html_file contains prettified version of the result. It is displayed in the playground.

API Examples

JSON structure overview

{
  ...
  "user": {
    "name": "String - Name of user who posted the photo",
    "link": "String - Link to user's Google profile",
    "image": "String - User profile image URL",
    "user_id": "String - Google's user id"
  },
  "location": {
    "latitude": "Float - Latitude of the place",
    "longitude": "Float - Longitude of the place",
    "name": "String - Name of the place",
    "type": "String - Type of the place, e.g, Coffee shop"
  },
  "date": "String - Date the photo was posted (format: DD-MM-YYYY)"
  ...
}

Results for: Peet's Coffee

Results for: Peet's Coffee

JSON Example

{
  ...
  "user": {
    "name": "R",
    "link": "https://maps.google.com/maps/contrib/103419305671938156693",
    "image": "https://lh3.googleusercontent.com/a-/ACNPEu835-47-Efj2vFl3OshpYVrCZ9OJuM1EoPf7ddsRA=s48-p-k-no-mo",
    "user_id": "103419305671938156693"
  },
  "location":{
    "latitude": 40.74573990219196,
    "longitude": -73.9882272348948,
    "name": "Stumptown Coffee Roasters",
    "type": "Coffee shop"
  },
  "date": "29-8-2022"
}