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

# Get site hits

`GET /api/sites/{id}/hits`

## Request

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

Returns paginated raw hits.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `from` string, date-time
- `to` string, date-time
- `limit` integer
- `offset` integer
- `q` string
- `sort` string
- `order` 'asc' | 'desc'
- `filter` string
- `filter_type` string
- `filter_value` string
- `goal_id` string[]
- `funnel_id` string[]

## Response `200`

Paginated hits

- PaginatedHits
  - `data` Hit[]
    - `asn` integer
    - `asn_org` string
    - `city` string
    - `country_code` string
    - `hostname` string
    - `id` string, uuid
    - `is_unique` boolean
    - `language` string
    - `page_id` string, uuid
    - `path` string
    - `provider` string
    - `qr_code_id` string, uuid
    - `referrer` string
    - `region` string
    - `screen_height` integer
    - `screen_width` integer
    - `session_id` string, uuid
    - `site_id` string, uuid
    - `timestamp` string, date-time
    - `user_agent` string
    - `utm_campaign` string
    - `utm_content` string
    - `utm_medium` string
    - `utm_source` string
    - `utm_term` string
    - `viewport_height` integer
    - `viewport_width` integer
  - `total` integer

---

[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)
