Products: list

Requires authorization

Lists the products in your Merchant Center account. Try it now.

Request

HTTP request

GET https://www.googleapis.com/content/v2/merchantId/products

Parameters

Parameter name Value Description
Path parameters
merchantId unsigned long The ID of the account that contains the products. This account cannot be a multi-client account.
Optional query parameters
includeInvalidInsertedItems boolean Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
maxResults unsigned integer The maximum number of products to return in the response, used for paging.
pageToken string The token returned by the previous request.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/content

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

JSON

{
  "kind": "content#productsListResponse",
  "nextPageToken": string,
  "resources": [
    products Resource
  ]
}
Property name Value Description Notes
resources[] list
kind string Identifies what kind of resource this is. Value: the fixed string "content#productsListResponse".
nextPageToken string The token for the retrieval of the next page of products.

XML

<products>
  <next_page_token>
    string
  </next_page_token>
  (foreach)
    products Resource
  (/foreach)
</products>
Property name Value Description Notes
products object
products/next_page_token string The token for the retrieval of the next page of products.
products/product nested object Product data.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Enviar comentarios sobre…

Content API for Shopping