Analytics

Get scan analytics

GET
/qr-codes/{id}/analytics

Human scans for one QR code over a period, with breakdowns by day, device, location and referrer.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key from Settings → API keys, sent as Authorization: Bearer ezqr_…. Requires the Max plan.

Path Parameters

id*string

The QR code's id

Formatuuid

Query Parameters

period?string
Default"30d"
Value in"7d""30d""90d""all"

Response Body

Analytics

application/json
  1. response
data*
curl -X GET 'https://ez-qr.com/api/v1/qr-codes/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics'
{  "data": {    "totalEvents": 0,    "botEvents": 0,    "uniqueVisitors": 0,    "eventsByDay": [      {        "date": "2019-08-24",        "count": 0      }    ],    "topDevices": [      {        "name": "string",        "count": 0      }    ],    "topBrowsers": [      {        "name": "string",        "count": 0      }    ],    "topOs": [      {        "name": "string",        "count": 0      }    ],    "topCountries": [      {        "name": "string",        "count": 0      }    ],    "topCities": [      {        "name": "string",        "count": 0      }    ],    "topReferrers": [      {        "name": "string",        "count": 0      }    ],    "topSources": [      {        "name": "string",        "count": 0      }    ],    "topCampaigns": [      {        "name": "string",        "count": 0      }    ]  }}