Endpoint
Authentication
This endpoint requires authentication using a Bearer token.Bearer token for authentication
Query Parameters
Event Configuration
The type of event to retrieve analytics for. Defaults to
clicks.Options: clicks, leads, sales, compositeThe parameter to group the analytics data points by. Defaults to
count if undefined.Options: count, timeseries, continents, countries, regions, cities, devices, browsers, os, triggers, referers, referer_urls, top_links, top_urlsLink Identification
The domain to filter analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with
-).The slug of the short link to retrieve analytics for. Must be used along with the corresponding
domain of the short link to fetch analytics for a specific short link.The unique ID of the link to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with
-).The ID of the link in your database. Must be prefixed with ‘ext_’ when passed as a query parameter.
Time Range
The interval to retrieve analytics for. If undefined, defaults to 24h.Options:
1h, 24h, 7d, 30d, 90d, ytd, 1y, all, all_unfilteredThe start date and time when to retrieve analytics from. If set, takes precedence over
interval. Format: ISO 8601 date string.The end date and time when to retrieve analytics from. If not provided, defaults to the current date. If set along with
start, takes precedence over interval.The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
Filtering
The ID of the tenant that created the link inside your system. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with
-).The tag ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with
-).The folder ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with
-). If not provided, return analytics for all links.The group ID to retrieve analytics for. Supports advanced filtering.
The ID of the partner to retrieve analytics for. Supports advanced filtering.
The ID of the customer to retrieve analytics for.
Geographic Filters
The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with
-).The city to retrieve analytics for. Supports advanced filtering.
The ISO 3166-2 region code to retrieve analytics for. Supports advanced filtering.
The continent to retrieve analytics for. Valid values: AF, AN, AS, EU, NA, OC, SA. Supports advanced filtering.
Device & Browser Filters
The device to retrieve analytics for. Supports advanced filtering.
The browser to retrieve analytics for. Supports advanced filtering.
The OS to retrieve analytics for. Supports advanced filtering.
Traffic Source Filters
The trigger to retrieve analytics for. Valid values: qr, link, pageview. Supports advanced filtering. If undefined, returns all trigger types.
The referer hostname to retrieve analytics for. Supports advanced filtering.
The full referer URL to retrieve analytics for. Supports advanced filtering.
UTM Parameters
The UTM source to retrieve analytics for. Supports advanced filtering.
The UTM medium to retrieve analytics for. Supports advanced filtering.
The UTM campaign to retrieve analytics for. Supports advanced filtering.
The UTM term to retrieve analytics for. Supports advanced filtering.
The UTM content to retrieve analytics for. Supports advanced filtering.
Other Filters
The destination URL to retrieve analytics for. Supports advanced filtering.
Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
Filter sales by type: ‘new’ for first-time purchases, ‘recurring’ for repeat purchases. If undefined, returns both.Options:
new, recurringSearch the events by a custom metadata value. Only available for lead and sale events. Max 10,000 characters.
Response
The response varies based on thegroupBy parameter:
Count Analytics
The total number of clicks
The total number of leads
The total number of sales
The total amount of sales, in cents
Timeseries Analytics
Returns an array of time-series data points:The starting timestamp of the interval
The number of clicks in the interval
The number of leads in the interval
The number of sales in the interval
The total amount of sales in the interval, in cents
Geographic Analytics
Returns an array of geographic data points (countries, regions, cities, or continents):The 2-letter ISO 3166-1 country code (for countries, regions, cities)
The 2-letter ISO 3166-1 continent code (for continents)
The 2-letter ISO 3166-2 region code (for regions, cities)
The name of the city (for cities)
The number of clicks from this location
The number of leads from this location
The number of sales from this location
The total amount of sales from this location, in cents
Device Analytics
Returns an array of device, browser, or OS data:The name of the device (for devices groupBy)
The name of the browser (for browsers groupBy)
The name of the OS (for os groupBy)
The number of clicks
The number of leads
The number of sales
The total amount of sales, in cents
Trigger Analytics
Returns an array of trigger methods:The type of trigger method: link click or QR scan
The number of clicks from this trigger method
The number of leads from this trigger method
The number of sales from this trigger method
The total amount of sales from this trigger method, in cents
Referer Analytics
Returns an array of referer data:The name of the referer. If unknown, this will be
(direct) (for referers groupBy)The full URL of the referer. If unknown, this will be
(direct) (for referer_urls groupBy)The number of clicks from this referer
The number of leads from this referer
The number of sales from this referer
The total amount of sales from this referer, in cents
Top Links Analytics
Returns an array of top-performing links:The unique ID of the short link
The domain of the short link
The key of the short link
The short link URL
The destination URL of the short link
The custom link preview title (og:title)
The comments of the short link
The ID of the folder that the link belongs to (if applicable)
The ID of the partner that the link belongs to (if applicable)
The creation timestamp of the short link
The number of clicks from this link
The number of leads from this link
The number of sales from this link
The total amount of sales from this link, in cents
Top URLs Analytics
Returns an array of top destination URLs:The full destination URL (including query parameters)
The number of clicks from this URL
The number of leads from this URL
The number of sales from this URL
The total amount of sales from this URL, in cents