Documentation menu
Statistics
Visits and clicks, by period and by resource.
Workspace statistics#
GET/analytics
Required scope: analytics:read
Aggregates for all resources in the token's workspace over the period. Aggregates only: no IP, IP fingerprint or user agent. Without analytics.breakdowns in the plan, the by_* rankings are empty and locked.breakdowns is true (200, not 402).
Query parameters
| Field | Type | Description |
|---|---|---|
| periodoptional | string | Analysis period. Values: Default: |
| fromoptional | string (date) | Start |
| tooptional | string (date) | End |
| granularityoptional | string | Granularity of Values: |
| streamoptional | string |
Values: Default: |
| compareoptional | string |
Values: Default: |
Responses
200 OK
| Field | Type | Description |
|---|---|---|
| datarequired | object | Aggregated statistics of the token's workspace. Aggregates only: no IP, IP fingerprint or user agent. |
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| data.periodrequired | object | |
| data.period.labelrequired | string | Values: |
| data.period.fromrequired | string (date) | |
| data.period.torequired | string (date) | |
| data.period.min_daterequired | string (date) | Earliest selectable date (never before the plan's retention limit). |
| data.period.granularityrequired | string | Values: |
| data.period.streamrequired | string | Values: |
| data.summaryrequired | object | |
| data.summary.total_eventsrequired | integer | |
| data.summary.unique_visitorsrequired | integer | Number of distinct visitors; no individual data is exposed. |
| data.summary.evolutionrequired | number | null | Change in % compared with the previous period of the same duration; |
| data.summary.active_resourcesoptional | integer | Resources that received at least one event over the period. |
| data.timelinerequired | array | Zero-filled slots, with no gaps. |
| data.timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| data.timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| data.timeline[].countoptional | integer | |
| data.comparisonrequired | oneOf | |
| data.previous_timelinerequired | array | null | Timeline of the |
| data.previous_timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| data.previous_timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| data.previous_timeline[].countoptional | integer | |
| data.timeline_by_typerequired | object |
|
| data.timeline_by_type.qr-codesoptional | array | |
| data.timeline_by_type.qr-codes[]required | object | Slot of a |
| data.timeline_by_type.qr-codes[].dateoptional | string | Start of the slot, same format and values as |
| data.timeline_by_type.qr-codes[].countoptional | integer | |
| data.timeline_by_type.link-pagesoptional | array | |
| data.timeline_by_type.link-pages[]required | object | Slot of a |
| data.timeline_by_type.link-pages[].dateoptional | string | Start of the slot, same format and values as |
| data.timeline_by_type.link-pages[].countoptional | integer | |
| data.timeline_by_type.short-linksoptional | array | |
| data.timeline_by_type.short-links[]required | object | Slot of a |
| data.timeline_by_type.short-links[].dateoptional | string | Start of the slot, same format and values as |
| data.timeline_by_type.short-links[].countoptional | integer | |
| data.by_resource_typerequired | array | Events per resource type, all three types always present. |
| data.by_resource_type[]required | object | |
| data.by_resource_type[].valueoptional | string | Values: |
| data.by_resource_type[].countoptional | integer | |
| data.by_resource_type[].percentageoptional | number | |
| data.by_countryrequired | array | Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the |
| data.by_country[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_country[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_country[].countoptional | integer | |
| data.by_country[].percentageoptional | number | Share, in %, of the total events over the period |
| data.unknown_countryrequired | object | Events with no resolved country. |
| data.unknown_country.countoptional | integer | |
| data.unknown_country.percentageoptional | number | |
| data.by_devicerequired | array | Devices. |
| data.by_device[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_device[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_device[].countoptional | integer | |
| data.by_device[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_browserrequired | array | Browsers. |
| data.by_browser[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_browser[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_browser[].countoptional | integer | |
| data.by_browser[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_osrequired | array | Operating systems. |
| data.by_os[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_os[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_os[].countoptional | integer | |
| data.by_os[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_utm_sourcerequired | array | UTM sources. |
| data.by_utm_source[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_utm_source[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_utm_source[].countoptional | integer | |
| data.by_utm_source[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_utm_mediumrequired | array | UTM media. |
| data.by_utm_medium[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_utm_medium[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_utm_medium[].countoptional | integer | |
| data.by_utm_medium[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_utm_campaignrequired | array | UTM campaigns. |
| data.by_utm_campaign[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_utm_campaign[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_utm_campaign[].countoptional | integer | |
| data.by_utm_campaign[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_click_id_platformrequired | array | Advertising platforms detected from a click ID (only the platform is stored). |
| data.by_click_id_platform[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_click_id_platform[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_click_id_platform[].countoptional | integer | |
| data.by_click_id_platform[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_refererrequired | array | Referrers, reduced to their domain. |
| data.by_referer[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_referer[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_referer[].countoptional | integer | |
| data.by_referer[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_linkrequired | array | Clicks per link page link ( |
| data.by_link[]required | object | |
| data.by_link[].valueoptional | string | null | Link title. |
| data.by_link[].idoptional | string (ulid) | ULID of the link. |
| data.by_link[].countoptional | integer | |
| data.by_link[].percentageoptional | number | |
| data.by_resourcerequired | array | Most active resources. |
| data.by_resource[]required | object | |
| data.by_resource[].valueoptional | string | Resource label. |
| data.by_resource[].idoptional | string | ULID of the resource. |
| data.by_resource[].typeoptional | string | Values: |
| data.by_resource[].countoptional | integer | |
| data.by_resource[].percentageoptional | number | |
| data.lockedrequired | object | |
| data.locked.breakdownsrequired | boolean |
|
Errors All codes
401Token missing, unknown, expired or revoked (
code: invalid_token). Also returned when the token's creator has left the workspace. Rejections are counted per IP (30 per minute): beyond that, 429.402The workspace's plan does not include API access (
feature: api.access), or the requested plan entitlement is missing or its quota is reached:plan_required,quota_reachedorplan_restricted(resource read-only after a downgrade).403Missing scope (
code: insufficient_scope, withrequired_scope), or action refused by the role of the token's creator in the workspace (viewer, invited member under Business: read-only).422Validation failed (
errorsper field). Special cases:code: field_not_availablefor a field that does not exist in the public API (folderId,folder_id,organization,folder);code: idempotency_key_mismatchfor anIdempotency-Keyreused with a different request (noerrors).429Limit reached (
code: rate_limited): per token, for all of the workspace's tokens combined, or a route's own limit (QR code export,POST /webhooks,PATCH /webhooks/{webhook}withurl,POST /webhooks/{webhook}/test,…/resend). WaitRetry-Afterseconds. TheX-RateLimit-*headers are present;X-RateLimit-Resetfollows the limiter whoseX-RateLimit-Remainingis the lowest.
curl -sS "https://api.hyllo.fr/api/public/v1/analytics" \
-H "Authorization: Bearer $HYLLO_API_TOKEN" \
-H "Accept: application/json"Response example
{
"data": {
"period": {
"label": "today",
"from": "string",
"to": "string",
"min_date": "string",
"granularity": "hour",
"stream": "visit"
},
"summary": {
"total_events": 1,
"unique_visitors": 1,
"evolution": 1,
"active_resources": 1
},
"timeline": [
{
"date": "2026-05-08",
"count": 45
}
],
"comparison": {
"mode": "previous_period",
"from": "string",
"to": "string",
"total_events": 1,
"unique_visitors": 1
},
"previous_timeline": [
{
"date": "2026-05-08",
"count": 45
}
],
"timeline_by_type": {
"qr-codes": [
{
"date": "2026-05-08",
"count": 45
}
],
"link-pages": [
{
"date": "2026-05-08",
"count": 45
}
],
"short-links": [
{
"date": "2026-05-08",
"count": 45
}
]
},
"by_resource_type": [
{
"value": "qr-codes",
"count": 1,
"percentage": 1
}
],
"by_country": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"unknown_country": {
"count": 1,
"percentage": 1
},
"by_device": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_browser": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_os": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_utm_source": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_utm_medium": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_utm_campaign": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_click_id_platform": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_referer": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_link": [
{
"value": "string",
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"count": 1,
"percentage": 1
}
],
"by_resource": [
{
"value": "string",
"id": "string",
"type": "qr-codes",
"count": 1,
"percentage": 1
}
],
"locked": {
"breakdowns": true
}
}
}Statistics of a resource#
GET/analytics/{type}/{id}
Required scope: analytics:read
Aggregates for a QR code, a link page or a short link in the token's workspace. A resource from another workspace, or an unknown type, returns 404. Same locked rule as GET /analytics.
Path parameters
| Field | Type | Description |
|---|---|---|
| typerequired | string | Resource type. Values: |
| idrequired | string (ulid) | ULID of the resource. |
Query parameters
| Field | Type | Description |
|---|---|---|
| periodoptional | string | Analysis period. Values: Default: |
| fromoptional | string (date) | Start |
| tooptional | string (date) | End |
| granularityoptional | string | Granularity of Values: |
| streamoptional | string |
Values: Default: |
| compareoptional | string |
Values: Default: |
Responses
200 OK
| Field | Type | Description |
|---|---|---|
| datarequired | object | Aggregated statistics of a resource. Aggregates only: no IP, IP fingerprint or user agent. A |
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| data.periodrequired | object | |
| data.period.labelrequired | string | Values: |
| data.period.fromrequired | string (date) | |
| data.period.torequired | string (date) | |
| data.period.min_daterequired | string (date) | Earliest selectable date (never before the plan's retention limit). |
| data.period.granularityrequired | string | Values: |
| data.period.streamrequired | string | Values: |
| data.summaryrequired | object | |
| data.summary.total_eventsrequired | integer | |
| data.summary.unique_visitorsrequired | integer | Number of distinct visitors; no individual data is exposed. |
| data.summary.evolutionrequired | number | null | Change in % compared with the previous period of the same duration; |
| data.timelinerequired | array | Zero-filled slots, with no gaps. |
| data.timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| data.timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| data.timeline[].countoptional | integer | |
| data.comparisonrequired | oneOf | |
| data.previous_timelinerequired | array | null | Timeline of the |
| data.previous_timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| data.previous_timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| data.previous_timeline[].countoptional | integer | |
| data.by_countryrequired | array | Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the |
| data.by_country[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_country[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_country[].countoptional | integer | |
| data.by_country[].percentageoptional | number | Share, in %, of the total events over the period |
| data.unknown_countryrequired | object | Events with no resolved country. |
| data.unknown_country.countoptional | integer | |
| data.unknown_country.percentageoptional | number | |
| data.by_devicerequired | array | Devices. |
| data.by_device[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_device[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_device[].countoptional | integer | |
| data.by_device[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_browserrequired | array | Browsers. |
| data.by_browser[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_browser[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_browser[].countoptional | integer | |
| data.by_browser[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_osrequired | array | Operating systems. |
| data.by_os[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_os[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_os[].countoptional | integer | |
| data.by_os[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_utm_sourcerequired | array | UTM sources. |
| data.by_utm_source[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_utm_source[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_utm_source[].countoptional | integer | |
| data.by_utm_source[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_utm_mediumrequired | array | UTM media. |
| data.by_utm_medium[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_utm_medium[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_utm_medium[].countoptional | integer | |
| data.by_utm_medium[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_utm_campaignrequired | array | UTM campaigns. |
| data.by_utm_campaign[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_utm_campaign[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_utm_campaign[].countoptional | integer | |
| data.by_utm_campaign[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_click_id_platformrequired | array | Advertising platforms detected from a click ID (only the platform is stored). |
| data.by_click_id_platform[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_click_id_platform[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_click_id_platform[].countoptional | integer | |
| data.by_click_id_platform[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_refererrequired | array | Referrers, reduced to their domain. |
| data.by_referer[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| data.by_referer[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| data.by_referer[].countoptional | integer | |
| data.by_referer[].percentageoptional | number | Share, in %, of the total events over the period |
| data.by_linkrequired | array | Clicks per link page link ( |
| data.by_link[]required | object | |
| data.by_link[].valueoptional | string | null | Link title. |
| data.by_link[].idoptional | string (ulid) | ULID of the link. |
| data.by_link[].countoptional | integer | |
| data.by_link[].percentageoptional | number | |
| data.by_resourcerequired | array | Most active resources. |
| data.by_resource[]required | object | |
| data.by_resource[].valueoptional | string | Resource label. |
| data.by_resource[].idoptional | string | ULID of the resource. |
| data.by_resource[].typeoptional | string | Values: |
| data.by_resource[].countoptional | integer | |
| data.by_resource[].percentageoptional | number | |
| data.lockedrequired | object | |
| data.locked.breakdownsrequired | boolean |
|
Errors All codes
401Token missing, unknown, expired or revoked (
code: invalid_token). Also returned when the token's creator has left the workspace. Rejections are counted per IP (30 per minute): beyond that, 429.402The workspace's plan does not include API access (
feature: api.access), or the requested plan entitlement is missing or its quota is reached:plan_required,quota_reachedorplan_restricted(resource read-only after a downgrade).403Missing scope (
code: insufficient_scope, withrequired_scope), or action refused by the role of the token's creator in the workspace (viewer, invited member under Business: read-only).404Unknown resource, or one belonging to a workspace other than the token's (never 403: existence is not revealed).
422Validation failed (
errorsper field). Special cases:code: field_not_availablefor a field that does not exist in the public API (folderId,folder_id,organization,folder);code: idempotency_key_mismatchfor anIdempotency-Keyreused with a different request (noerrors).429Limit reached (
code: rate_limited): per token, for all of the workspace's tokens combined, or a route's own limit (QR code export,POST /webhooks,PATCH /webhooks/{webhook}withurl,POST /webhooks/{webhook}/test,…/resend). WaitRetry-Afterseconds. TheX-RateLimit-*headers are present;X-RateLimit-Resetfollows the limiter whoseX-RateLimit-Remainingis the lowest.
curl -sS "https://api.hyllo.fr/api/public/v1/analytics/$TYPE/$ID" \
-H "Authorization: Bearer $HYLLO_API_TOKEN" \
-H "Accept: application/json"Response example
{
"data": {
"period": {
"label": "today",
"from": "string",
"to": "string",
"min_date": "string",
"granularity": "hour",
"stream": "visit"
},
"summary": {
"total_events": 1,
"unique_visitors": 1,
"evolution": 1
},
"timeline": [
{
"date": "2026-05-08",
"count": 45
}
],
"comparison": {
"mode": "previous_period",
"from": "string",
"to": "string",
"total_events": 1,
"unique_visitors": 1
},
"previous_timeline": [
{
"date": "2026-05-08",
"count": 45
}
],
"by_country": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"unknown_country": {
"count": 1,
"percentage": 1
},
"by_device": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_browser": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_os": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_utm_source": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_utm_medium": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_utm_campaign": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_click_id_platform": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_referer": [
{
"value": "FR",
"count": 450,
"percentage": 36.5
}
],
"by_link": [
{
"value": "string",
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"count": 1,
"percentage": 1
}
],
"by_resource": [
{
"value": "string",
"id": "string",
"type": "qr-codes",
"count": 1,
"percentage": 1
}
],
"locked": {
"breakdowns": true
}
}
}Clicks per link of a page#
GET/link-pages/{linkPage}/links/analytics
Required scope: analytics:read
All-time click count per link, keyed by link ULID (links with no clicks are omitted: an absent ULID means 0). Without analytics.breakdowns in the plan, data is empty and locked is true (200, not 402). Declared before /links/{link}: analytics is not a link ULID.
Path parameters
| Field | Type | Description |
|---|---|---|
| linkPagerequired | string (ulid) | ULID of the link page. |
Responses
200 OK
| Field | Type | Description |
|---|---|---|
| datarequired | object | |
| lockedrequired | boolean |
|
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| data.*optional | integer |
Errors All codes
401Token missing, unknown, expired or revoked (
code: invalid_token). Also returned when the token's creator has left the workspace. Rejections are counted per IP (30 per minute): beyond that, 429.402The workspace's plan does not include API access (
feature: api.access), or the requested plan entitlement is missing or its quota is reached:plan_required,quota_reachedorplan_restricted(resource read-only after a downgrade).403Missing scope (
code: insufficient_scope, withrequired_scope), or action refused by the role of the token's creator in the workspace (viewer, invited member under Business: read-only).404Unknown resource, or one belonging to a workspace other than the token's (never 403: existence is not revealed).
429Limit reached (
code: rate_limited): per token, for all of the workspace's tokens combined, or a route's own limit (QR code export,POST /webhooks,PATCH /webhooks/{webhook}withurl,POST /webhooks/{webhook}/test,…/resend). WaitRetry-Afterseconds. TheX-RateLimit-*headers are present;X-RateLimit-Resetfollows the limiter whoseX-RateLimit-Remainingis the lowest.
curl -sS "https://api.hyllo.fr/api/public/v1/link-pages/$LINK_PAGE/links/analytics" \
-H "Authorization: Bearer $HYLLO_API_TOKEN" \
-H "Accept: application/json"Response example
{
"data": {
"01J9ZQ0K7TQ3P8W2M5N6R4S1VX": 42
},
"locked": true
}Schemas
Analytics
Aggregated statistics of the token's workspace. Aggregates only: no IP, IP fingerprint or user agent.
| Field | Type | Description |
|---|---|---|
| periodrequired | object | |
| summaryrequired | object | |
| timelinerequired | array | Zero-filled slots, with no gaps. |
| comparisonrequired | oneOf | |
| previous_timelinerequired | array | null | Timeline of the |
| timeline_by_typerequired | object |
|
| by_resource_typerequired | array | Events per resource type, all three types always present. |
| by_countryrequired | array | Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the |
| unknown_countryrequired | object | Events with no resolved country. |
| by_devicerequired | array | Devices. |
| by_browserrequired | array | Browsers. |
| by_osrequired | array | Operating systems. |
| by_utm_sourcerequired | array | UTM sources. |
| by_utm_mediumrequired | array | UTM media. |
| by_utm_campaignrequired | array | UTM campaigns. |
| by_click_id_platformrequired | array | Advertising platforms detected from a click ID (only the platform is stored). |
| by_refererrequired | array | Referrers, reduced to their domain. |
| by_linkrequired | array | Clicks per link page link ( |
| by_resourcerequired | array | Most active resources. |
| lockedrequired | object |
Variant #1
Compared window; null without compare.
| Field | Type | Description |
|---|---|---|
| modeoptional | string | Values: |
| fromoptional | string (date) | |
| tooptional | string (date) | |
| total_eventsoptional | integer | |
| unique_visitorsoptional | integer |
Variant #2
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| period.labelrequired | string | Values: |
| period.fromrequired | string (date) | |
| period.torequired | string (date) | |
| period.min_daterequired | string (date) | Earliest selectable date (never before the plan's retention limit). |
| period.granularityrequired | string | Values: |
| period.streamrequired | string | Values: |
| summary.total_eventsrequired | integer | |
| summary.unique_visitorsrequired | integer | Number of distinct visitors; no individual data is exposed. |
| summary.evolutionrequired | number | null | Change in % compared with the previous period of the same duration; |
| summary.active_resourcesoptional | integer | Resources that received at least one event over the period. |
| timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| timeline[].countoptional | integer | |
| previous_timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| previous_timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| previous_timeline[].countoptional | integer | |
| timeline_by_type.qr-codesoptional | array | |
| timeline_by_type.qr-codes[]required | object | Slot of a |
| timeline_by_type.qr-codes[].dateoptional | string | Start of the slot, same format and values as |
| timeline_by_type.qr-codes[].countoptional | integer | |
| timeline_by_type.link-pagesoptional | array | |
| timeline_by_type.link-pages[]required | object | Slot of a |
| timeline_by_type.link-pages[].dateoptional | string | Start of the slot, same format and values as |
| timeline_by_type.link-pages[].countoptional | integer | |
| timeline_by_type.short-linksoptional | array | |
| timeline_by_type.short-links[]required | object | Slot of a |
| timeline_by_type.short-links[].dateoptional | string | Start of the slot, same format and values as |
| timeline_by_type.short-links[].countoptional | integer | |
| by_resource_type[]required | object | |
| by_resource_type[].valueoptional | string | Values: |
| by_resource_type[].countoptional | integer | |
| by_resource_type[].percentageoptional | number | |
| by_country[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_country[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_country[].countoptional | integer | |
| by_country[].percentageoptional | number | Share, in %, of the total events over the period |
| unknown_country.countoptional | integer | |
| unknown_country.percentageoptional | number | |
| by_device[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_device[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_device[].countoptional | integer | |
| by_device[].percentageoptional | number | Share, in %, of the total events over the period |
| by_browser[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_browser[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_browser[].countoptional | integer | |
| by_browser[].percentageoptional | number | Share, in %, of the total events over the period |
| by_os[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_os[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_os[].countoptional | integer | |
| by_os[].percentageoptional | number | Share, in %, of the total events over the period |
| by_utm_source[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_utm_source[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_utm_source[].countoptional | integer | |
| by_utm_source[].percentageoptional | number | Share, in %, of the total events over the period |
| by_utm_medium[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_utm_medium[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_utm_medium[].countoptional | integer | |
| by_utm_medium[].percentageoptional | number | Share, in %, of the total events over the period |
| by_utm_campaign[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_utm_campaign[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_utm_campaign[].countoptional | integer | |
| by_utm_campaign[].percentageoptional | number | Share, in %, of the total events over the period |
| by_click_id_platform[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_click_id_platform[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_click_id_platform[].countoptional | integer | |
| by_click_id_platform[].percentageoptional | number | Share, in %, of the total events over the period |
| by_referer[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_referer[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_referer[].countoptional | integer | |
| by_referer[].percentageoptional | number | Share, in %, of the total events over the period |
| by_link[]required | object | |
| by_link[].valueoptional | string | null | Link title. |
| by_link[].idoptional | string (ulid) | ULID of the link. |
| by_link[].countoptional | integer | |
| by_link[].percentageoptional | number | |
| by_resource[]required | object | |
| by_resource[].valueoptional | string | Resource label. |
| by_resource[].idoptional | string | ULID of the resource. |
| by_resource[].typeoptional | string | Values: |
| by_resource[].countoptional | integer | |
| by_resource[].percentageoptional | number | |
| locked.breakdownsrequired | boolean |
|
ResourceAnalytics
Aggregated statistics of a resource. Aggregates only: no IP, IP fingerprint or user agent. A static QR code returns counters at zero.
| Field | Type | Description |
|---|---|---|
| periodrequired | object | |
| summaryrequired | object | |
| timelinerequired | array | Zero-filled slots, with no gaps. |
| comparisonrequired | oneOf | |
| previous_timelinerequired | array | null | Timeline of the |
| by_countryrequired | array | Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the |
| unknown_countryrequired | object | Events with no resolved country. |
| by_devicerequired | array | Devices. |
| by_browserrequired | array | Browsers. |
| by_osrequired | array | Operating systems. |
| by_utm_sourcerequired | array | UTM sources. |
| by_utm_mediumrequired | array | UTM media. |
| by_utm_campaignrequired | array | UTM campaigns. |
| by_click_id_platformrequired | array | Advertising platforms detected from a click ID (only the platform is stored). |
| by_refererrequired | array | Referrers, reduced to their domain. |
| by_linkrequired | array | Clicks per link page link ( |
| by_resourcerequired | array | Most active resources. |
| lockedrequired | object |
Variant #1
Compared window; null without compare.
| Field | Type | Description |
|---|---|---|
| modeoptional | string | Values: |
| fromoptional | string (date) | |
| tooptional | string (date) | |
| total_eventsoptional | integer | |
| unique_visitorsoptional | integer |
Variant #2
Nested fields and variants
| Field | Type | Description |
|---|---|---|
| period.labelrequired | string | Values: |
| period.fromrequired | string (date) | |
| period.torequired | string (date) | |
| period.min_daterequired | string (date) | Earliest selectable date (never before the plan's retention limit). |
| period.granularityrequired | string | Values: |
| period.streamrequired | string | Values: |
| summary.total_eventsrequired | integer | |
| summary.unique_visitorsrequired | integer | Number of distinct visitors; no individual data is exposed. |
| summary.evolutionrequired | number | null | Change in % compared with the previous period of the same duration; |
| timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| timeline[].countoptional | integer | |
| previous_timeline[]required | object | Timeline entry — always present even if count = 0 (zero-filling). |
| previous_timeline[].dateoptional | string | Start of the slot. Format depends on the granularity: |
| previous_timeline[].countoptional | integer | |
| by_country[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_country[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_country[].countoptional | integer | |
| by_country[].percentageoptional | number | Share, in %, of the total events over the period |
| unknown_country.countoptional | integer | |
| unknown_country.percentageoptional | number | |
| by_device[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_device[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_device[].countoptional | integer | |
| by_device[].percentageoptional | number | Share, in %, of the total events over the period |
| by_browser[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_browser[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_browser[].countoptional | integer | |
| by_browser[].percentageoptional | number | Share, in %, of the total events over the period |
| by_os[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_os[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_os[].countoptional | integer | |
| by_os[].percentageoptional | number | Share, in %, of the total events over the period |
| by_utm_source[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_utm_source[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_utm_source[].countoptional | integer | |
| by_utm_source[].percentageoptional | number | Share, in %, of the total events over the period |
| by_utm_medium[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_utm_medium[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_utm_medium[].countoptional | integer | |
| by_utm_medium[].percentageoptional | number | Share, in %, of the total events over the period |
| by_utm_campaign[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_utm_campaign[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_utm_campaign[].countoptional | integer | |
| by_utm_campaign[].percentageoptional | number | Share, in %, of the total events over the period |
| by_click_id_platform[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_click_id_platform[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_click_id_platform[].countoptional | integer | |
| by_click_id_platform[].percentageoptional | number | Share, in %, of the total events over the period |
| by_referer[]required | object | Entry of an analytics ranking (country, device, browser, etc.). |
| by_referer[].valueoptional | string | null | Segment value (country code, device name, etc.) |
| by_referer[].countoptional | integer | |
| by_referer[].percentageoptional | number | Share, in %, of the total events over the period |
| by_link[]required | object | |
| by_link[].valueoptional | string | null | Link title. |
| by_link[].idoptional | string (ulid) | ULID of the link. |
| by_link[].countoptional | integer | |
| by_link[].percentageoptional | number | |
| by_resource[]required | object | |
| by_resource[].valueoptional | string | Resource label. |
| by_resource[].idoptional | string | ULID of the resource. |
| by_resource[].typeoptional | string | Values: |
| by_resource[].countoptional | integer | |
| by_resource[].percentageoptional | number | |
| locked.breakdownsrequired | boolean |
|
