Method: skus.prices.list

Lists the latest prices for all SKUs.

HTTP request

GET https://cloudbilling.googleapis.com/v1beta/{parent=skus/*}/prices

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. To list the prices for all SKUs, use - as the SKU ID. Format: skus/-

Specifying a specific SKU ID returns a collection with one Price object for the SKU.

Query parameters

Parameters
pageSize

integer

Optional. Maximum number of prices to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.

pageToken

string

Optional. Page token received from a previous prices.list call to retrieve the next page of results. If this field is empty, the first page is returned.

currencyCode

string

Optional. ISO-4217 currency code for the price. If not specified, USD will be used.

Request body

The request body must be empty.

Response body

Response message for prices.list.

If successful, the response body contains data with the following structure:

JSON representation
{
  "prices": [
    {
      object (Price)
    }
  ],
  "nextPageToken": string
}
Fields
prices[]

object (Price)

The returned publicly listed prices.

nextPageToken

string

Token that can be sent as pageToken in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/cloud-billing
  • https://www.googleapis.com/auth/cloud-billing.readonly

For more information, see the Authentication Overview.