Devices
Returns scan counts grouped by device type for the authenticated workspace. Results are sorted by count in descending order.
GET
/v1/analytics/devices analytics:read Parameters
This endpoint takes no parameters.
Request examples
curl https://xqr.co/api/v1/analytics/devices \ -H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://xqr.co/api/v1/analytics/devices", { headers: { Authorization: "Bearer YOUR_API_KEY", },});
const { data, meta } = await res.json();import httpx
res = httpx.get( "https://xqr.co/api/v1/analytics/devices", headers={"Authorization": "Bearer YOUR_API_KEY"},)
devices = res.json()["data"]Response
200 OK
{ "data": [ { "device": "mobile", "count": 18234 }, { "device": "desktop", "count": 7891 }, { "device": "tablet", "count": 2103 } ], "meta": { "request_id": "req_m4n5o6", "rate_limit": { "remaining": 90, "reset_at": "2026-03-21T12:01:00Z" } }}Was this page helpful?
Thanks for your feedback!