Method: photo.get

Gets the metadata of the specified Photo.

This method returns the following error codes:

HTTP request

GET https://streetviewpublish.googleapis.com/v1/photo/{photoId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
photoId

string

Required. ID of the Photo.

Query parameters

Parameters
view

enum (PhotoView)

Required. Specifies if a download URL for the photo bytes should be returned in the Photo response.

languageCode

string

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If languageCode is unspecified, the user's language preference for Google services is used.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Photo.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/streetviewpublish

For more information, see the OAuth 2.0 Overview.