analytics

analytics.product_report

Get product-level analytics for a store over a given period.

get/analytics.product_report.json

Request

  • Base URL: https://api.api2cart.com/v1.1
  • URL: https://api.api2cart.com/v1.1/analytics.product_report.json
  • Auth: API key in header x-api-key and API key in header x-store-key

Query parameters

date_fromstring

Start date for the analytics period (Y-m-d or Y-m-d H:i:s)

date_tostring

End date for the analytics period (Y-m-d or Y-m-d H:i:s). Defaults to the current date.

countinteger

This parameter sets the entity amount that has to be retrieved. Max allowed count=250

product_idsstring

Filter analytics by product ids

currency_idstring

Currency Id

store_idstring

Store Id

categories_idsstring

Defines product add that is specified by comma-separated categories id

sort_bystring

Set field to sort by

sort_directionstring

Set sorting direction

page_cursorstring

Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)

response_fieldsstring

Set this parameter to choose which entity fields to retrieve. Use comma-separated field names in curly braces, nested to match the response structure, e.g. {result{product{id,name}}}. The wildcard * returns every field at a level: {} gives the whole response, {result{product{}}} all product fields.

Response

successful operation

additional_fieldsobject nullable
custom_fieldsobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.