---
title: "Scan events for one QR, newest first"
method: GET
path: "/api/v1/qrs/{id}/scans"
tags: ["Analytics"]
---

# Scan events for one QR, newest first

`GET /api/v1/qrs/{id}/scans`

## Request

- Base URL: `https://qrlia.dev.castlesoft.eu`
- URL: `https://qrlia.dev.castlesoft.eu/api/v1/qrs/{id}/scans`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `qrc_session`

## Path parameters

- `id` string, uuid, required

## Query parameters

- `days` integer: Look-back days; default 30, capped by the plan's analytics history.
- `includeBots` 'true' | 'false': Include link previews, mail scanners and scripts. Default false.
- `cursor` string
- `limit` integer

## Response `200`

Scans

- object
  - `items` ScanEvent[], required
    - `id` string, required
    - `qrId` string, required
    - `ts` string, required
    - `country` string, nullable, required
    - `city` string, nullable, required
    - `os` string, nullable, required
    - `device` string, nullable, required
    - `referer` string, nullable, required
    - `unique24h` boolean, required
    - `geoLat` number, nullable, required
    - `geoLng` number, nullable, required
  - `next` string, nullable

## Other responses

- `400`: Validation failed
- `401`: Authentication required
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `500`: Internal

---

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