Description
This endpoint provides comprehensive analytics for one or more QR codes in your account.You can query by:
- QR IDs (specific QR codes), or
- Tags (group of QR codes with the same tag).
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | Comma-separated list of analytics types to include in the response. Defaults to all. |
from | string (YYYY-MM-DD) | Yes | Start date for analytics data (inclusive). |
to | string (YYYY-MM-DD) | Yes | End date for analytics data (inclusive). Defaults to current date. |
Supported type Values
| Type | Description |
|---|---|
count | Scan count overview (total, unique, trends) |
qr | QR code-level summary |
device | Breakdown by device type (e.g., Mobile, PC) |
os | Breakdown by operating system |
browser | Breakdown by browser type |
date | Time-series data by date |
handset | Breakdown by handset or device model |
geography | Country/region-level distribution |
geo_location | Detailed city-level location data |
day_time | Hourly and day-based scan distribution |
age | Age group data (if enabled in analytics settings) |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
filter_by | string | Yes | Specify filter type — either qrid or tags. |
q | array | Yes | List of QR IDs or tags to filter analytics for. |
Examples
Get QR Code Analytics by QR ID
Get Analytics by Tags
Get Multiple QR Codes Analytics
Get All Analytics Types
Response Structure
Success Response (200 OK)
The response structure varies based on thetype query parameter. Response keys depend on the requested analytics types.
Complete Analytics Response (all types requested)
Count Analytics Only
Device, OS, and Browser Analytics
Response Schema
Each analytics type returns a separate structure.| Key | Description | Example Format |
|---|---|---|
count | Summary metrics for scans | { "total": 150, "unique": 120 } |
device | Device type counts | [["Mobile", 100], ["Desktop", 50]] |
os | Operating systems | [["Android", 80], ["iOS", 40]] |
browser | Browser breakdown | [["Chrome", 60], ["Safari", 30]] |
date | Daily scan counts | { "all": [["2025-10-25", 5], ["2025-10-26", 2]] } |
geography | Country/region breakdown | [{"country_name": "India", "count": 30}] |
geo_location | City-level data | [{"city": "Delhi", "count": 10}] |
day_time | Hourly scan distribution | [["Mon", "09", 2], ["Tue", "14", 1]] |
Use Cases
- 📈 Build custom QR code analytics dashboards
- 🗺️ Analyze user scan geography and device trends
- ⏰ Study time-based scan activity
- 🧭 Track campaign performance by tags or QR IDs
- 🧮 Export scan data summaries for internal BI systems
Integration Examples
JavaScript - Get QR Code Analytics
Python - Get QR Code Analytics
PHP - Get QR Code Analytics
Authorizations
API key authentication. Enter your API key directly in the Authorization header.
Query Parameters
Analytics type(s) to retrieve. Multiple values can be comma-separated.
count, qr, device, os, browser, date, handset, geography, geo_location Start date for analytics data (inclusive). Format: YYYY-MM-DD
End date for analytics data (inclusive). Format: YYYY-MM-DD. Defaults to current date.
Body
Response
Analytics data retrieved successfully
Analytics data response containing various types of analytics based on the requested fields. Response keys depend on the 'type' query parameter. Available analytics types: qr, count, device, os, browser, date, handset, geography, geo_location, age, day_time.