- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Gets the metadata of the specified Photo
.
This method returns the following error codes:
google.rpc.Code.PERMISSION_DENIED
if the requesting user did not create the requestedPhoto
.google.rpc.Code.NOT_FOUND
if the requestedPhoto
does not exist.google.rpc.Code.UNAVAILABLE
if the requestedPhoto
is still being indexed.
HTTP request
GET https://streetviewpublish.googleapis.com/v1/photo/{photoId}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
photoId |
Required. ID of the |
Query parameters
Parameters | |
---|---|
view |
Required. Specifies if a download URL for the photo bytes should be returned in the |
languageCode |
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.