API

Analytics API

Retrieve Qorlivo click analytics, unique visitors, timeseries data, countries, devices, browsers, and referrers.

Use the Analytics API to build reports, sync campaign metrics, or power company dashboards.

Get analytics

GET /api/v1/analytics?linkId={linkId}&start=2026-07-01&end=2026-07-31

Query parameters:

ParameterTypeRequiredNotes
linkIdstringNoRestrict analytics to one link. Omit for workspace-level data.
startstringNoISO 8601 date. Defaults to 7 days before end.
endstringNoISO 8601 date. Defaults to today.

The maximum date range is 90 days.

Example:

curl "https://www.qorlivo.com/api/v1/analytics?start=2026-07-01&end=2026-07-31" \
  -H "Authorization: Bearer $QORLIVO_API_KEY"

Response:

{
  "totalClicks": 1200,
  "totalUnique": 940,
  "timeseries": [
    {
      "day": "2026-07-01",
      "clicks": 82,
      "uniqueClicks": 71
    }
  ],
  "countries": {
    "US": 780,
    "CA": 120
  },
  "devices": {
    "mobile": 820,
    "desktop": 340,
    "tablet": 40
  },
  "browsers": {
    "Chrome": 650,
    "Safari": 410
  },
  "referrers": {
    "twitter.com": 240,
    "newsletter.example.com": 180
  }
}

Use linkId when you want analytics for one short link.

curl "https://www.qorlivo.com/api/v1/analytics?linkId=j97xxxxxxxxxxxxxxxxxxxxxxxxx&start=2026-07-01&end=2026-07-07" \
  -H "Authorization: Bearer $QORLIVO_API_KEY"

Reading the response

FieldMeaning
totalClicksTotal clicks in the range.
totalUniqueApproximate unique visitors in the range.
timeseriesDaily click and unique visitor counts.
countriesClick counts grouped by country code.
devicesClick counts grouped by device category.
browsersClick counts grouped by browser.
referrersClick counts grouped by referrer.

Date handling

Use ISO 8601 date strings:

2026-07-01
2026-07-01T00:00:00.000Z

If start or end is invalid, Qorlivo returns 400.

Reporting tips

  • Store the date range you used so reports are repeatable.
  • Compare links over the same window.
  • Expect some referrers to appear as direct or unknown.
  • Use link-specific analytics for campaign decisions.
  • Use workspace-level analytics for overall reporting.