Skip to content

Summary

Returns aggregate analytics metrics for the authenticated workspace, including total links, total scans, active links in the last 30 days, and the number of unique countries your links have been scanned from.

GET /v1/analytics/summary
analytics:read

Parameters

Query parameters

ParameterTypeRequiredDefaultDescription
periodstringNo30dTime period to aggregate: 7d, 30d, 90d, or all.

Request examples

Terminal window
curl "https://xqr.co/api/v1/analytics/summary?period=30d" \
-H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK
{
"data": {
"total_links": 142,
"total_scans": 28450,
"active_links_30d": 87,
"unique_countries": 34
},
"meta": {
"request_id": "req_a1b2c3",
"rate_limit": {
"remaining": 95,
"reset_at": "2026-03-21T12:01:00Z"
}
}
}

Was this page helpful?