Method: photos.list

Lists all the Photos that belong to the user.

HTTP request

GET https://streetviewpublish.googleapis.com/v1/photos

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
view

enum(PhotoView)

Specifies if a download URL for the photos bytes should be returned in the Photos response.

pageSize

number

The maximum number of photos to return. pageSize must be non-negative. If pageSize is zero or is not provided, the default page size of 100 is used. The number of photos returned in the response may be less than pageSize if the number of photos that belong to the user is less than pageSize.

pageToken

string

The nextPageToken value returned from a previous photos.list request, if any.

filter

string

The filter expression. For example: placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw.

The only filter supported at the moment is placeId.

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 data with the following structure:

Response to list all photos that belong to a user.

JSON representation
{
  "photos": [
    {
      object(Photo)
    }
  ],
  "nextPageToken": string
}
Fields
photos[]

object(Photo)

List of photos. The pageSize field in the request determines the number of items returned.

nextPageToken

string

Token to retrieve the next page of results, or empty if there are no more results in the list.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

Try it!