---
title: "Get event timeseries REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Get event timeseries, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesideventstimeseries/"
---

# Get event timeseries REST API

GET

/api/sites/{id}/events/timeseries

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events/timeseries?event_name=example&dimension_key=path';
const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request GET \
  --url 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events/timeseries?event_name=example&dimension_key=path' \
  --cookie hk_token=<hk_token>
```

-

Returns event occurrence counts over time. Optional property filters and repeatable filter=type:value hit-dimension filters restrict the sessions counted.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**
- **[bearerAuth](https://hitkeep.com/api/#bearerauth)**
- **[apiKeyAuth](https://hitkeep.com/api/#apikeyauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

### Query Parameters

**from**

string format: date-time

**to**

string format: date-time

**event_name**

required

string

**property_key**

string

**property_value**

string

**filter**

string

Filter in form type:value (repeatable). Supported types: path, hostname, referrer, referrer_host, device, country, city, provider, asn, browser, language, ai_bot, ai_bot_category, ai_source, utm_campaign, utm_content, utm_medium, utm_source, utm_term, qr_code_id.

**dimension_key**

deprecated

string

Allowed values: path hostname referrer referrer_host device country city provider asn browser language utm_campaign utm_content utm_medium utm_source utm_term

Deprecated single event dimension filter. Prefer repeatable filter=type:value.

**dimension_value**

deprecated

string

Deprecated single event dimension value. Requires dimension_key.

## Responses

### 200

Event timeseries

application/json

Array<object>

object

**count**

integer

**time**

string format: date-time

##### Examplegenerated

```
[
  {
    "count": 1,
    "time": "2026-04-15T12:00:00Z"
  }
]
```

[Previous List event property keys](https://hitkeep.com/api/operations/apisitesideventsproperties/)[Next List site exclusions](https://hitkeep.com/api/operations/apisitesidexclusions/get/)
