Skip to main content

Analytics Countries

Returns scan data broken down by country, with optional filtering.

GET/analytics/countries

Headers

HeaderRequiredDescription
X-API-KeyRequiredYour API key
QR-VersionOptionalAPI version (e.g., 2026-02-16)

Query Parameters

ParameterTypeDefaultDescription
start_datestring3 months agoStart date in YYYY-MM-DD format
end_datestringtodayEnd date in YYYY-MM-DD format
qr_idsstringComma-separated list of QR code IDs to filter by
countrystringComma-separated list of country codes to filter by
osstringComma-separated list of operating systems to filter by
typestringComma-separated list of QR code types to filter by
info

All filter parameters are optional. When omitted, the API returns data for the last 3 months across all QR codes.

Request

curl -X GET "https://integration-api.qr-build.com/analytics/countries?start_date=2026-01-01&end_date=2026-02-19" \
-H "X-API-Key: qrb_live_your_api_key_here"

Response

{
"object": "analytics",
"success": true,
"data": [
{
"code": "US",
"name": "US",
"value": 4521,
"percentage": 35
},
{
"code": "GB",
"name": "GB",
"value": 2134,
"percentage": 17
},
{
"code": "DE",
"name": "DE",
"value": 1567,
"percentage": 12
}
]
}