Skip to content
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

FieldTypeDescription
periodoptionalstring

Analysis period. custom requires from and to and the plan's analytics.custom_range feature (402 otherwise). Periods are clamped to the plan's retention period.

Values: today, yesterday, last_7_days, last_30_days, last_3_months, last_year, last_2_years, custom

Default: last_30_days

fromoptionalstring (date)

Start YYYY-MM-DD. Required if period=custom; not before the plan's retention limit.

tooptionalstring (date)

End YYYY-MM-DD, not earlier than from. Required if period=custom.

granularityoptionalstring

Granularity of timeline. Omitted: derived from the period (up to 1 day: hour; up to 60 days: day; up to 180 days: week; beyond: month).

Values: hour, day, week, month

streamoptionalstring

visit: visits to the resource; interaction: clicks on a link page's links.

Values: visit, interaction

Default: visit

compareoptionalstring

previous_period (same duration, ending the day before) or previous_year (same dates one year earlier): returns comparison and previous_timeline. 1 means previous_period. Requires analytics.custom_range (402 otherwise).

Values: previous_period, previous_year, 1, 0

Default: 0

Responses

200 OK

FieldTypeDescription
datarequiredobject

Aggregated statistics of the token's workspace. Aggregates only: no IP, IP fingerprint or user agent.

Nested fields and variants
FieldTypeDescription
data.periodrequiredobject
data.period.labelrequiredstring

Values: today, yesterday, last_7_days, last_30_days, last_3_months, last_year, last_2_years, custom

data.period.fromrequiredstring (date)
data.period.torequiredstring (date)
data.period.min_daterequiredstring (date)

Earliest selectable date (never before the plan's retention limit).

data.period.granularityrequiredstring

Values: hour, day, week, month

data.period.streamrequiredstring

Values: visit, interaction

data.summaryrequiredobject
data.summary.total_eventsrequiredinteger
data.summary.unique_visitorsrequiredinteger

Number of distinct visitors; no individual data is exposed.

data.summary.evolutionrequirednumber | null

Change in % compared with the previous period of the same duration; null when there is no earlier data.

data.summary.active_resourcesoptionalinteger

Resources that received at least one event over the period.

data.timelinerequiredarray

Zero-filled slots, with no gaps.

data.timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

data.timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

data.timeline[].countoptionalinteger
data.comparisonrequiredoneOf
data.previous_timelinerequiredarray | null

Timeline of the comparison window; null without compare.

data.previous_timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

data.previous_timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

data.previous_timeline[].countoptionalinteger
data.timeline_by_typerequiredobject

timeline broken down by resource type.

data.timeline_by_type.qr-codesoptionalarray
data.timeline_by_type.qr-codes[]requiredobject

Slot of a timeline_by_type series, zero-filled.

data.timeline_by_type.qr-codes[].dateoptionalstring

Start of the slot, same format and values as timeline[].date

data.timeline_by_type.qr-codes[].countoptionalinteger
data.timeline_by_type.link-pagesoptionalarray
data.timeline_by_type.link-pages[]requiredobject

Slot of a timeline_by_type series, zero-filled.

data.timeline_by_type.link-pages[].dateoptionalstring

Start of the slot, same format and values as timeline[].date

data.timeline_by_type.link-pages[].countoptionalinteger
data.timeline_by_type.short-linksoptionalarray
data.timeline_by_type.short-links[]requiredobject

Slot of a timeline_by_type series, zero-filled.

data.timeline_by_type.short-links[].dateoptionalstring

Start of the slot, same format and values as timeline[].date

data.timeline_by_type.short-links[].countoptionalinteger
data.by_resource_typerequiredarray

Events per resource type, all three types always present.

data.by_resource_type[]requiredobject
data.by_resource_type[].valueoptionalstring

Values: qr-codes, link-pages, short-links

data.by_resource_type[].countoptionalinteger
data.by_resource_type[].percentageoptionalnumber
data.by_countryrequiredarray

Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the analytics.breakdowns feature.

data.by_country[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_country[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_country[].countoptionalinteger
data.by_country[].percentageoptionalnumber

Share, in %, of the total events over the period

data.unknown_countryrequiredobject

Events with no resolved country.

data.unknown_country.countoptionalinteger
data.unknown_country.percentageoptionalnumber
data.by_devicerequiredarray

Devices.

data.by_device[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_device[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_device[].countoptionalinteger
data.by_device[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_browserrequiredarray

Browsers.

data.by_browser[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_browser[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_browser[].countoptionalinteger
data.by_browser[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_osrequiredarray

Operating systems.

data.by_os[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_os[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_os[].countoptionalinteger
data.by_os[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_utm_sourcerequiredarray

UTM sources.

data.by_utm_source[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_utm_source[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_utm_source[].countoptionalinteger
data.by_utm_source[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_utm_mediumrequiredarray

UTM media.

data.by_utm_medium[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_utm_medium[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_utm_medium[].countoptionalinteger
data.by_utm_medium[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_utm_campaignrequiredarray

UTM campaigns.

data.by_utm_campaign[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_utm_campaign[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_utm_campaign[].countoptionalinteger
data.by_utm_campaign[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_click_id_platformrequiredarray

Advertising platforms detected from a click ID (only the platform is stored).

data.by_click_id_platform[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_click_id_platform[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_click_id_platform[].countoptionalinteger
data.by_click_id_platform[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_refererrequiredarray

Referrers, reduced to their domain.

data.by_referer[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_referer[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_referer[].countoptionalinteger
data.by_referer[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_linkrequiredarray

Clicks per link page link (interaction stream).

data.by_link[]requiredobject
data.by_link[].valueoptionalstring | null

Link title.

data.by_link[].idoptionalstring (ulid)

ULID of the link.

data.by_link[].countoptionalinteger
data.by_link[].percentageoptionalnumber
data.by_resourcerequiredarray

Most active resources.

data.by_resource[]requiredobject
data.by_resource[].valueoptionalstring

Resource label.

data.by_resource[].idoptionalstring

ULID of the resource.

data.by_resource[].typeoptionalstring

Values: qr-codes, link-pages, short-links

data.by_resource[].countoptionalinteger
data.by_resource[].percentageoptionalnumber
data.lockedrequiredobject
data.locked.breakdownsrequiredboolean

true when the plan does not include analytics.breakdowns: the by_* rankings are then empty (200, not 402).

Errors All codes

  • 401

    Token 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.

  • 402

    The 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_reached or plan_restricted (resource read-only after a downgrade).

  • 403

    Missing scope (code: insufficient_scope, with required_scope), or action refused by the role of the token's creator in the workspace (viewer, invited member under Business: read-only).

  • 422

    Validation failed (errors per field). Special cases: code: field_not_available for a field that does not exist in the public API (folderId, folder_id, organization, folder); code: idempotency_key_mismatch for an Idempotency-Key reused with a different request (no errors).

  • 429

    Limit 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} with url, POST /webhooks/{webhook}/test, …/resend). Wait Retry-After seconds. The X-RateLimit-* headers are present; X-RateLimit-Reset follows the limiter whose X-RateLimit-Remaining is 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

FieldTypeDescription
typerequiredstring

Resource type.

Values: qr-codes, link-pages, short-links

idrequiredstring (ulid)

ULID of the resource.

Query parameters

FieldTypeDescription
periodoptionalstring

Analysis period. custom requires from and to and the plan's analytics.custom_range feature (402 otherwise). Periods are clamped to the plan's retention period.

Values: today, yesterday, last_7_days, last_30_days, last_3_months, last_year, last_2_years, custom

Default: last_30_days

fromoptionalstring (date)

Start YYYY-MM-DD. Required if period=custom; not before the plan's retention limit.

tooptionalstring (date)

End YYYY-MM-DD, not earlier than from. Required if period=custom.

granularityoptionalstring

Granularity of timeline. Omitted: derived from the period (up to 1 day: hour; up to 60 days: day; up to 180 days: week; beyond: month).

Values: hour, day, week, month

streamoptionalstring

visit: visits to the resource; interaction: clicks on a link page's links.

Values: visit, interaction

Default: visit

compareoptionalstring

previous_period (same duration, ending the day before) or previous_year (same dates one year earlier): returns comparison and previous_timeline. 1 means previous_period. Requires analytics.custom_range (402 otherwise).

Values: previous_period, previous_year, 1, 0

Default: 0

Responses

200 OK

FieldTypeDescription
datarequiredobject

Aggregated statistics of a resource. Aggregates only: no IP, IP fingerprint or user agent. A static QR code returns counters at zero.

Nested fields and variants
FieldTypeDescription
data.periodrequiredobject
data.period.labelrequiredstring

Values: today, yesterday, last_7_days, last_30_days, last_3_months, last_year, last_2_years, custom

data.period.fromrequiredstring (date)
data.period.torequiredstring (date)
data.period.min_daterequiredstring (date)

Earliest selectable date (never before the plan's retention limit).

data.period.granularityrequiredstring

Values: hour, day, week, month

data.period.streamrequiredstring

Values: visit, interaction

data.summaryrequiredobject
data.summary.total_eventsrequiredinteger
data.summary.unique_visitorsrequiredinteger

Number of distinct visitors; no individual data is exposed.

data.summary.evolutionrequirednumber | null

Change in % compared with the previous period of the same duration; null when there is no earlier data.

data.timelinerequiredarray

Zero-filled slots, with no gaps.

data.timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

data.timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

data.timeline[].countoptionalinteger
data.comparisonrequiredoneOf
data.previous_timelinerequiredarray | null

Timeline of the comparison window; null without compare.

data.previous_timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

data.previous_timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

data.previous_timeline[].countoptionalinteger
data.by_countryrequiredarray

Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the analytics.breakdowns feature.

data.by_country[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_country[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_country[].countoptionalinteger
data.by_country[].percentageoptionalnumber

Share, in %, of the total events over the period

data.unknown_countryrequiredobject

Events with no resolved country.

data.unknown_country.countoptionalinteger
data.unknown_country.percentageoptionalnumber
data.by_devicerequiredarray

Devices.

data.by_device[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_device[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_device[].countoptionalinteger
data.by_device[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_browserrequiredarray

Browsers.

data.by_browser[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_browser[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_browser[].countoptionalinteger
data.by_browser[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_osrequiredarray

Operating systems.

data.by_os[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_os[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_os[].countoptionalinteger
data.by_os[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_utm_sourcerequiredarray

UTM sources.

data.by_utm_source[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_utm_source[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_utm_source[].countoptionalinteger
data.by_utm_source[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_utm_mediumrequiredarray

UTM media.

data.by_utm_medium[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_utm_medium[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_utm_medium[].countoptionalinteger
data.by_utm_medium[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_utm_campaignrequiredarray

UTM campaigns.

data.by_utm_campaign[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_utm_campaign[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_utm_campaign[].countoptionalinteger
data.by_utm_campaign[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_click_id_platformrequiredarray

Advertising platforms detected from a click ID (only the platform is stored).

data.by_click_id_platform[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_click_id_platform[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_click_id_platform[].countoptionalinteger
data.by_click_id_platform[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_refererrequiredarray

Referrers, reduced to their domain.

data.by_referer[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

data.by_referer[].valueoptionalstring | null

Segment value (country code, device name, etc.)

data.by_referer[].countoptionalinteger
data.by_referer[].percentageoptionalnumber

Share, in %, of the total events over the period

data.by_linkrequiredarray

Clicks per link page link (interaction stream).

data.by_link[]requiredobject
data.by_link[].valueoptionalstring | null

Link title.

data.by_link[].idoptionalstring (ulid)

ULID of the link.

data.by_link[].countoptionalinteger
data.by_link[].percentageoptionalnumber
data.by_resourcerequiredarray

Most active resources.

data.by_resource[]requiredobject
data.by_resource[].valueoptionalstring

Resource label.

data.by_resource[].idoptionalstring

ULID of the resource.

data.by_resource[].typeoptionalstring

Values: qr-codes, link-pages, short-links

data.by_resource[].countoptionalinteger
data.by_resource[].percentageoptionalnumber
data.lockedrequiredobject
data.locked.breakdownsrequiredboolean

true when the plan does not include analytics.breakdowns: the by_* rankings are then empty (200, not 402).

Errors All codes

  • 401

    Token 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.

  • 402

    The 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_reached or plan_restricted (resource read-only after a downgrade).

  • 403

    Missing scope (code: insufficient_scope, with required_scope), or action refused by the role of the token's creator in the workspace (viewer, invited member under Business: read-only).

  • 404

    Unknown resource, or one belonging to a workspace other than the token's (never 403: existence is not revealed).

  • 422

    Validation failed (errors per field). Special cases: code: field_not_available for a field that does not exist in the public API (folderId, folder_id, organization, folder); code: idempotency_key_mismatch for an Idempotency-Key reused with a different request (no errors).

  • 429

    Limit 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} with url, POST /webhooks/{webhook}/test, …/resend). Wait Retry-After seconds. The X-RateLimit-* headers are present; X-RateLimit-Reset follows the limiter whose X-RateLimit-Remaining is 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

FieldTypeDescription
linkPagerequiredstring (ulid)

ULID of the link page.

Responses

200 OK

FieldTypeDescription
datarequiredobject
lockedrequiredboolean

true if the plan does not include analytics.breakdowns.

Nested fields and variants
FieldTypeDescription
data.*optionalinteger

Errors All codes

  • 401

    Token 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.

  • 402

    The 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_reached or plan_restricted (resource read-only after a downgrade).

  • 403

    Missing scope (code: insufficient_scope, with required_scope), or action refused by the role of the token's creator in the workspace (viewer, invited member under Business: read-only).

  • 404

    Unknown resource, or one belonging to a workspace other than the token's (never 403: existence is not revealed).

  • 429

    Limit 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} with url, POST /webhooks/{webhook}/test, …/resend). Wait Retry-After seconds. The X-RateLimit-* headers are present; X-RateLimit-Reset follows the limiter whose X-RateLimit-Remaining is 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.

FieldTypeDescription
periodrequiredobject
summaryrequiredobject
timelinerequiredarray

Zero-filled slots, with no gaps.

comparisonrequiredoneOf
previous_timelinerequiredarray | null

Timeline of the comparison window; null without compare.

timeline_by_typerequiredobject

timeline broken down by resource type.

by_resource_typerequiredarray

Events per resource type, all three types always present.

by_countryrequiredarray

Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the analytics.breakdowns feature.

unknown_countryrequiredobject

Events with no resolved country.

by_devicerequiredarray

Devices.

by_browserrequiredarray

Browsers.

by_osrequiredarray

Operating systems.

by_utm_sourcerequiredarray

UTM sources.

by_utm_mediumrequiredarray

UTM media.

by_utm_campaignrequiredarray

UTM campaigns.

by_click_id_platformrequiredarray

Advertising platforms detected from a click ID (only the platform is stored).

by_refererrequiredarray

Referrers, reduced to their domain.

by_linkrequiredarray

Clicks per link page link (interaction stream).

by_resourcerequiredarray

Most active resources.

lockedrequiredobject
Variant #1

Compared window; null without compare.

FieldTypeDescription
modeoptionalstring

Values: previous_period, previous_year

fromoptionalstring (date)
tooptionalstring (date)
total_eventsoptionalinteger
unique_visitorsoptionalinteger
Variant #2
Nested fields and variants
FieldTypeDescription
period.labelrequiredstring

Values: today, yesterday, last_7_days, last_30_days, last_3_months, last_year, last_2_years, custom

period.fromrequiredstring (date)
period.torequiredstring (date)
period.min_daterequiredstring (date)

Earliest selectable date (never before the plan's retention limit).

period.granularityrequiredstring

Values: hour, day, week, month

period.streamrequiredstring

Values: visit, interaction

summary.total_eventsrequiredinteger
summary.unique_visitorsrequiredinteger

Number of distinct visitors; no individual data is exposed.

summary.evolutionrequirednumber | null

Change in % compared with the previous period of the same duration; null when there is no earlier data.

summary.active_resourcesoptionalinteger

Resources that received at least one event over the period.

timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

timeline[].countoptionalinteger
previous_timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

previous_timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

previous_timeline[].countoptionalinteger
timeline_by_type.qr-codesoptionalarray
timeline_by_type.qr-codes[]requiredobject

Slot of a timeline_by_type series, zero-filled.

timeline_by_type.qr-codes[].dateoptionalstring

Start of the slot, same format and values as timeline[].date

timeline_by_type.qr-codes[].countoptionalinteger
timeline_by_type.link-pagesoptionalarray
timeline_by_type.link-pages[]requiredobject

Slot of a timeline_by_type series, zero-filled.

timeline_by_type.link-pages[].dateoptionalstring

Start of the slot, same format and values as timeline[].date

timeline_by_type.link-pages[].countoptionalinteger
timeline_by_type.short-linksoptionalarray
timeline_by_type.short-links[]requiredobject

Slot of a timeline_by_type series, zero-filled.

timeline_by_type.short-links[].dateoptionalstring

Start of the slot, same format and values as timeline[].date

timeline_by_type.short-links[].countoptionalinteger
by_resource_type[]requiredobject
by_resource_type[].valueoptionalstring

Values: qr-codes, link-pages, short-links

by_resource_type[].countoptionalinteger
by_resource_type[].percentageoptionalnumber
by_country[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_country[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_country[].countoptionalinteger
by_country[].percentageoptionalnumber

Share, in %, of the total events over the period

unknown_country.countoptionalinteger
unknown_country.percentageoptionalnumber
by_device[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_device[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_device[].countoptionalinteger
by_device[].percentageoptionalnumber

Share, in %, of the total events over the period

by_browser[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_browser[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_browser[].countoptionalinteger
by_browser[].percentageoptionalnumber

Share, in %, of the total events over the period

by_os[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_os[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_os[].countoptionalinteger
by_os[].percentageoptionalnumber

Share, in %, of the total events over the period

by_utm_source[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_utm_source[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_utm_source[].countoptionalinteger
by_utm_source[].percentageoptionalnumber

Share, in %, of the total events over the period

by_utm_medium[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_utm_medium[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_utm_medium[].countoptionalinteger
by_utm_medium[].percentageoptionalnumber

Share, in %, of the total events over the period

by_utm_campaign[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_utm_campaign[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_utm_campaign[].countoptionalinteger
by_utm_campaign[].percentageoptionalnumber

Share, in %, of the total events over the period

by_click_id_platform[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_click_id_platform[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_click_id_platform[].countoptionalinteger
by_click_id_platform[].percentageoptionalnumber

Share, in %, of the total events over the period

by_referer[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_referer[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_referer[].countoptionalinteger
by_referer[].percentageoptionalnumber

Share, in %, of the total events over the period

by_link[]requiredobject
by_link[].valueoptionalstring | null

Link title.

by_link[].idoptionalstring (ulid)

ULID of the link.

by_link[].countoptionalinteger
by_link[].percentageoptionalnumber
by_resource[]requiredobject
by_resource[].valueoptionalstring

Resource label.

by_resource[].idoptionalstring

ULID of the resource.

by_resource[].typeoptionalstring

Values: qr-codes, link-pages, short-links

by_resource[].countoptionalinteger
by_resource[].percentageoptionalnumber
locked.breakdownsrequiredboolean

true when the plan does not include analytics.breakdowns: the by_* rankings are then empty (200, not 402).

ResourceAnalytics

Aggregated statistics of a resource. Aggregates only: no IP, IP fingerprint or user agent. A static QR code returns counters at zero.

FieldTypeDescription
periodrequiredobject
summaryrequiredobject
timelinerequiredarray

Zero-filled slots, with no gaps.

comparisonrequiredoneOf
previous_timelinerequiredarray | null

Timeline of the comparison window; null without compare.

by_countryrequiredarray

Top 10 countries (ISO 3166-1 alpha-2). Empty if the plan lacks the analytics.breakdowns feature.

unknown_countryrequiredobject

Events with no resolved country.

by_devicerequiredarray

Devices.

by_browserrequiredarray

Browsers.

by_osrequiredarray

Operating systems.

by_utm_sourcerequiredarray

UTM sources.

by_utm_mediumrequiredarray

UTM media.

by_utm_campaignrequiredarray

UTM campaigns.

by_click_id_platformrequiredarray

Advertising platforms detected from a click ID (only the platform is stored).

by_refererrequiredarray

Referrers, reduced to their domain.

by_linkrequiredarray

Clicks per link page link (interaction stream).

by_resourcerequiredarray

Most active resources.

lockedrequiredobject
Variant #1

Compared window; null without compare.

FieldTypeDescription
modeoptionalstring

Values: previous_period, previous_year

fromoptionalstring (date)
tooptionalstring (date)
total_eventsoptionalinteger
unique_visitorsoptionalinteger
Variant #2
Nested fields and variants
FieldTypeDescription
period.labelrequiredstring

Values: today, yesterday, last_7_days, last_30_days, last_3_months, last_year, last_2_years, custom

period.fromrequiredstring (date)
period.torequiredstring (date)
period.min_daterequiredstring (date)

Earliest selectable date (never before the plan's retention limit).

period.granularityrequiredstring

Values: hour, day, week, month

period.streamrequiredstring

Values: visit, interaction

summary.total_eventsrequiredinteger
summary.unique_visitorsrequiredinteger

Number of distinct visitors; no individual data is exposed.

summary.evolutionrequirednumber | null

Change in % compared with the previous period of the same duration; null when there is no earlier data.

timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

timeline[].countoptionalinteger
previous_timeline[]requiredobject

Timeline entry — always present even if count = 0 (zero-filling).

previous_timeline[].dateoptionalstring

Start of the slot. Format depends on the granularity: YYYY-MM-DD HH:00:00 (hour), YYYY-MM-DD (day/week), YYYY-MM-01 (month).

previous_timeline[].countoptionalinteger
by_country[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_country[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_country[].countoptionalinteger
by_country[].percentageoptionalnumber

Share, in %, of the total events over the period

unknown_country.countoptionalinteger
unknown_country.percentageoptionalnumber
by_device[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_device[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_device[].countoptionalinteger
by_device[].percentageoptionalnumber

Share, in %, of the total events over the period

by_browser[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_browser[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_browser[].countoptionalinteger
by_browser[].percentageoptionalnumber

Share, in %, of the total events over the period

by_os[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_os[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_os[].countoptionalinteger
by_os[].percentageoptionalnumber

Share, in %, of the total events over the period

by_utm_source[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_utm_source[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_utm_source[].countoptionalinteger
by_utm_source[].percentageoptionalnumber

Share, in %, of the total events over the period

by_utm_medium[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_utm_medium[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_utm_medium[].countoptionalinteger
by_utm_medium[].percentageoptionalnumber

Share, in %, of the total events over the period

by_utm_campaign[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_utm_campaign[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_utm_campaign[].countoptionalinteger
by_utm_campaign[].percentageoptionalnumber

Share, in %, of the total events over the period

by_click_id_platform[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_click_id_platform[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_click_id_platform[].countoptionalinteger
by_click_id_platform[].percentageoptionalnumber

Share, in %, of the total events over the period

by_referer[]requiredobject

Entry of an analytics ranking (country, device, browser, etc.).

by_referer[].valueoptionalstring | null

Segment value (country code, device name, etc.)

by_referer[].countoptionalinteger
by_referer[].percentageoptionalnumber

Share, in %, of the total events over the period

by_link[]requiredobject
by_link[].valueoptionalstring | null

Link title.

by_link[].idoptionalstring (ulid)

ULID of the link.

by_link[].countoptionalinteger
by_link[].percentageoptionalnumber
by_resource[]requiredobject
by_resource[].valueoptionalstring

Resource label.

by_resource[].idoptionalstring

ULID of the resource.

by_resource[].typeoptionalstring

Values: qr-codes, link-pages, short-links

by_resource[].countoptionalinteger
by_resource[].percentageoptionalnumber
locked.breakdownsrequiredboolean

true when the plan does not include analytics.breakdowns: the by_* rankings are then empty (200, not 402).