qrtap_code_stats
Retrieve aggregated anonymous scan statistics for one code, including total scans, a per-day series, and the mobile/tablet/desktop device split. Set a date range to inspect a specific period.
Instructions
Aggregated anonymous scan statistics for ONE code: total scans, a per-day series and the device split (mobile/tablet/desktop). Bots are excluded; QRTap stores no visitor IPs or user-agents, so no per-person data exists to return. Bound the window with from/to when the user asks about a period. For a whole batch use qrtap_group_stats; for plain totals across many codes use qrtap_list_codes with include_stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional range end (exclusive), ISO 8601. | |
| from | No | Optional range start (inclusive), ISO 8601, e.g. 2026-07-01T00:00:00Z. | |
| codeId | Yes | The code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug. |