Endpoint
Authentication
This endpoint requires authentication using a Bearer token.Bearer token for authentication
This endpoint requires a Business plan or higher.
Query Parameters
Event Configuration
The type of event to retrieve analytics for. Defaults to ‘clicks’.Options:
clicks, leads, salesPagination
The page number for pagination. Defaults to 1.
The number of events to return per page. Max 1000 items per page.
Sorting
The field to sort the events by. The default is
timestamp.Options: timestampThe sort order. The default is
desc.Options: asc, descLink 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.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.
The tag ID to retrieve analytics for. Supports advanced filtering.
The folder ID to retrieve analytics for. Supports advanced filtering. 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.
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
Returns an array of event objects. The structure of each event depends on the event type:Click Event
The event type:
clickThe timestamp of the event in ISO 8601 format
The click event details
The link details
Lead Event
The event type:
leadThe timestamp of the event in ISO 8601 format
The unique ID of the lead event
The name of the lead event (e.g., “Sign up”)
Additional metadata stored with the lead event
The click event details (same structure as Click Event above)
The link details (same structure as Click Event above)
The customer details
Sale Event
The event type:
saleThe timestamp of the event in ISO 8601 format
The unique ID of the sale event
The name of the sale event (e.g., “Invoice paid”)
The sale details
Additional metadata stored with the sale event
The click event details (same structure as Click Event above)
The link details (same structure as Click Event above)
The customer details (same structure as Lead Event above)