Google Places · Schema

Photo

A photo associated with a place.

RestaurantGeolocationGoogleLocationsMapsPlacesPoints of Interest

Properties

Name Type Description
name string The resource name of the photo, used to fetch the media.
widthPx integer The maximum available width of the photo in pixels.
heightPx integer The maximum available height of the photo in pixels.
authorAttributions array Attribution information for the authors of this photo.
View JSON Schema on GitHub

JSON Schema

photo-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-places/refs/heads/main/json-schema/photo-schema.json",
  "title": "Photo",
  "description": "A photo associated with a place.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The resource name of the photo, used to fetch the media.",
      "example": "places/ChIJN1t_tDeuEmsRUsoyG83frY4"
    },
    "widthPx": {
      "type": "integer",
      "description": "The maximum available width of the photo in pixels.",
      "example": 1080
    },
    "heightPx": {
      "type": "integer",
      "description": "The maximum available height of the photo in pixels.",
      "example": 1080
    },
    "authorAttributions": {
      "type": "array",
      "description": "Attribution information for the authors of this photo.",
      "items": {
        "$ref": "#/components/schemas/AuthorAttribution"
      }
    }
  }
}