Analytics

The numbers behind one code

Read from the daily rollups, never the raw event log: raw events are deleted once counted. The plan's retention window is applied, and meta.clamped says when the range was shortened rather than quietly returning less.

get/api/v1/codes/{id}/scans

Request

  • Base URL: https://app.qrsalt.com
  • URL: https://app.qrsalt.com/api/v1/codes/{id}/scans
  • Auth: HTTP bearer

Query parameters

fromstring date

First day, YYYY-MM-DD. Defaults to 29 days before to. At most 366 days in one request.

tostring date

Last day, YYYY-MM-DD. Defaults to today.

dimension'country' | 'region' | 'city' | 'device' | 'os' | 'browser' | 'referrer' | 'hour' | 'weekday'

One breakdown beside the totals. Which ones a workspace may read depends on its plan; country is always available.

Response

Totals, a daily series and one optional breakdown.

Changes

No recorded changes to this operation across all 1 revision of this API.