The analytics API provides three complementary views into your link traffic: a total-count summary, a per-day timeseries suitable for charting, and a breakdown ranked by any supported dimension. All three endpoints share the same filter parameters and read from pre-aggregated daily rollup tables for maximum performance. When dimension filters (such asDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/org-quicko/linq/llms.txt
Use this file to discover all available pages before exploring further.
referer, os, browser, or platform) are specified, the API automatically falls back to querying the raw visit log to respect the added specificity — this path is still fast for recent, bounded windows, but the time range is capped at 366 days in that case.
linq collects no geolocation data and stores no client IP addresses at any point. The
platform dimension (android, ios, desktop) and os/browser fields are inferred purely from the request’s User-Agent string.Shared Filter Parameters
Every analytics endpoint accepts the following query parameters. Multiple values forlink_id, domain_id, referer, os, browser, and platform can be supplied as comma-separated strings.
Start of the reporting window, inclusive. Format:
YYYY-MM-DD. Omitting from on summary and timeseries returns all-time data from the rollup. Required when any dimension filter (referer, os, browser, platform) is also set.End of the reporting window, inclusive. Defaults to today’s UTC date.
Restrict the report to one or more specific links.
Restrict the report to one or more specific domains.
When
"true", restricts the report to orphan visits — requests that matched no active link (unknown slug, archived link, or root path). Defaults to "false".Filter by bot status. One of
"true" (bots only), "false" (humans only), or "any" (no filter, the default).Filter to visits from specific referring hostnames. Use
(none) for visits with no recorded referrer. Enables the detail (raw log) query path.Filter to visits from a specific OS (e.g.
windows, macos, android). Case-insensitive. Enables the detail query path.Filter to visits from a specific browser (e.g.
chrome, safari). Case-insensitive. Enables the detail query path.Filter to visits from a specific platform. One of
android, ios, or desktop. Enables the detail query path.GET /api/v1/analytics/summary
Returns the total visit count for the given filters, split into human visits, bot visits, and orphan visits.Response Fields
Total visits (human + bot) matching the query.
Visits not classified as bots.
Visits classified as bots.
Visits that resolved to no active link. Always
0 when link_id is set (orphans have no link to match).- All-time summary
- Scoped to a link and date range
GET /api/v1/analytics/timeseries
Returns a list of per-day visit counts over the requested time range. Useful for charting trends over time. Results are ordered chronologically (oldest first).Response
Returns an array ofStatsBucket objects, one per day that had at least one qualifying visit.
The date for this bucket in
YYYY-MM-DD format.Human visits on this day.
Bot visits on this day.
- cURL
- Response
GET /api/v1/analytics/breakdown
Returns visit counts grouped by a chosen dimension, ordered by total volume descending. Use this endpoint to identify top referrers, platforms, destination URLs, or slugs.Additional Parameter
The dimension to group results by. One of:
| Value | Description |
|---|---|
referer | Referring hostname (or (none) if absent) |
os | Operating system inferred from User-Agent |
browser | Browser inferred from User-Agent |
platform | android, ios, or desktop |
slug | The slug that was requested |
destination | The destination URL the visit was sent to |
Response
Returns an array ofStatsBucket objects, sorted by total volume descending.
The dimension value for this group. For
referer, this is the referrer hostname. Uses (none) for visits where the dimension was not recorded.Human visits in this group.
Bot visits in this group.
- By platform
- By referer
- Response