AI-generated Key Takeaways
- 
          Retrieves metadata for a specified Photo using its ID. 
- 
          Allows specifying the view (including download URL) and language code. 
- 
          Requires authorization with the streetviewpublishscope.
- 
          Returns a Photo object on success, or an error if permissions are lacking, the photo is not found, or is still being indexed. 
- 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_DENIEDif the requesting user did not create the requested- Photo.
- google.rpc.Code.NOT_FOUNDif the requested- Photodoes not exist.
- google.rpc.Code.UNAVAILABLEif the requested- Photois 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.
