---
title: "Link click analytics"
method: GET
path: "/v1/links/{id}/stats"
tags: ["Links"]
---

# Link click analytics

`GET /v1/links/{id}/stats`

## Request

- Base URL: `https://app.getshareglow.com`
- URL: `https://app.getshareglow.com/v1/links/{id}/stats`
- Auth: HTTP bearer

Clicks over time with country, device, browser and referrer breakdowns, clamped to your plan's analytics retention.

## Path parameters

- `id` string, required

## Query parameters

- `from` string, date
- `to` string, date

## Response `200`

Click statistics

- ClickStats
  - `range` object
  - `totals` object
    - `clicks` integer
    - `botHits` integer
    - `uniqueCountries` integer
  - `series` object[]
    - `day` string, date
    - `clicks` integer
    - `botHits` integer
  - `countries` object[]
  - `devices` object[]
  - `browsers` object[]
  - `referrers` object[]
  - `source` 'ae' | 'rollup' | 'mixed'

## Other responses

- `400`: Validation failed (`bad_request`, `invalid_url`, ...).
- `401`: Missing, unknown or revoked API key.
- `403`: The API key is valid but lacks the scope this endpoint needs (images, templates, scan, links, monitors or ai).
- `404`: The id does not exist in this workspace (`not_found`, `link_not_found`, `template_not_found`).
- `429`: Daily call limit reached. Retry after the `Retry-After` seconds.

---

[API](https://skmtc.dev/getshareglow/apis/shareglow-api.md) · [All operations](https://skmtc.dev/getshareglow/apis/shareglow-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getshareglow/apis/shareglow-api/revisions/3ea838c40d3c?raw)
