Skip to content
Start in Cloud

Get top ecommerce products

GET
/api/sites/{id}/ecommerce/products
curl --request GET \
--url https://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ecommerce/products \
--cookie hk_token=<hk_token>

Returns top products by revenue from purchase events.

id
required
string format: uuid
from
string format: date-time
to
string format: date-time
filter
string

Filter in form type:value (repeatable). Supported types: path, hostname, referrer, referrer_host, device, country, browser, language, utm_campaign, utm_content, utm_medium, utm_source, utm_term.

filter_type
string
filter_value
string
item_id
string
item_name
string
limit
integer
>= 1 <= 100

Ecommerce products

Media type application/json
Array<object>
object
item_id
string
item_name
string
orders
integer
quantity
integer
revenue
number
Example generated
[
{
"item_id": "example",
"item_name": "example",
"orders": 1,
"quantity": 1,
"revenue": 1
}
]