---
title: "List of raw clicks"
method: POST
path: "/domain/{domainId}/last_clicks"
tags: ["domain"]
---

# List of raw clicks

`POST /domain/{domainId}/last_clicks`

## Request

- Base URL: `https://statistics.short.io/statistics`
- URL: `https://statistics.short.io/statistics/domain/{domainId}/last_clicks`
- Auth: API key in header `Authorization`

Returns list of latest raw clicks

## Path parameters

- `domainId` integer, required

## Request body

- Model15
  - `limit` number: Limit records to receive
  - `endDate` string, date: Returns statistics for clicks before given date. Required if period is custom
  - `startDate` string, date: Returns statistics for clicks after given date. Required if period is custom
  - `beforeDate` string, date: Parameter is used for pagination
  - `afterDate` string, date: Parameter is used for pagination
  - `period` 'custom' | 'today' | 'yesterday' | 'total' | 'week' | 'month' | 'lastmonth' | 'last7' | 'last30': One of predefined time intervals. Select custom to provide custom dates
  - `tz` string: Timezone name
  - `include` Model12: Filter records by provided values
    - `countries` string[]: Return clicks from provided countries
    - `dt` string[]
    - `browsers` string[]: Return clicks from provided browsers
    - `human` boolean: Returns human clicks only if true
    - `socials` string[]: Return clicks from provided social networks
    - `browserVersions` string[]: Return clicks from provided browser versions
    - `statuses` number[]: Return clicks with provided statuses
    - `paths` string[]: Return clicks with provided paths
    - `protos` string[]: Return clicks with provided protocols
    - `methods` string[]: Return clicks with provided methods
    - `refhosts` string[]: Return clicks from provided referrers
    - `utmSources` string[]: Return clicks from provided utm sources
    - `utmMediums` string[]: Return clicks from provided utm mediums
    - `utmCampaigns` string[]: Return clicks from provided utm campaigns
  - `exclude` Model14: Exclude records with provided values
    - `countries` string[]: Return clicks from provided countries
    - `dt` string[]
    - `browsers` string[]: Return clicks from provided browsers
    - `human` boolean: Returns human clicks only if true
    - `socials` string[]: Return clicks from provided social networks
    - `browserVersions` string[]: Return clicks from provided browser versions
    - `statuses` number[]: Return clicks with provided statuses
    - `paths` string[]: Return clicks with provided paths
    - `protos` string[]: Return clicks with provided protocols
    - `methods` string[]: Return clicks with provided methods
    - `refhosts` string[]: Return clicks from provided referrers
    - `utmSources` string[]: Return clicks from provided utm sources
    - `utmMediums` string[]: Return clicks from provided utm mediums
    - `utmCampaigns` string[]: Return clicks from provided utm campaigns

## Response `200`

last click list

- LastClick
  - `ab_path` string: TBD
  - `browser` string: Visitor browser name
  - `browser_version` string: Visitor browser version
  - `city` string: Visitor's city
  - `country` string: Visitor's country
  - `geoname_id` string: Geoname ID of the city
  - `dt` string, date, required: Date and time of the visit
  - `goal_completed` string: TBD
  - `host` string: Domain name
  - `human` boolean, required: True if user is a human
  - `ip` string: Visitor's IP (for visitors outside of EU). EU visitors have last 2 octets hidden (GDPR)
  - `method` 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD', required: Request method
  - `os` string: Visitor's OS
  - `path` string, required: Visitor's path
  - `proto` 'http' | 'https': Visitor's protocol
  - `ref` string: Visitor's full referrer
  - `refhost` string: Visitor's referrer host
  - `ua` string: Visitor's user agent
  - `social` string: Visitor's social network
  - `utm_campaign` string: UTM campaign for the link
  - `st` number: HTTP status code for the link
  - `utm_source` string: TBD
  - `url` string: Full shart URL
  - `utm_medium` string: TBD

---

[API](https://skmtc.dev/short/apis/statistics-api.md) - [All operations](https://skmtc.dev/short/apis/statistics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/short/apis/statistics-api/revisions/b87df490eedc?raw)
