---
title: "Get ecommerce sources"
method: GET
path: "/api/sites/{id}/ecommerce/sources"
tags: ["Sites"]
---

# Get ecommerce sources

`GET /api/sites/{id}/ecommerce/sources`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/ecommerce/sources`
- Auth: one of:
  - API key in cookie `hk_token`
  - HTTP bearer
  - API key in header `X-API-Key`

Returns revenue and order counts grouped by UTM source, medium, campaign, and referrer.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `from` string, date-time
- `to` string, date-time
- `filter` string
- `filter_type` string
- `filter_value` string
- `item_id` string
- `item_name` string
- `limit` integer

## Response `200`

Ecommerce sources

- EcommerceSourceStat[]
  - `orders` integer
  - `referrer` string
  - `revenue` number
  - `utm_campaign` string
  - `utm_medium` string
  - `utm_source` string

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
