Dub icon

Dub

Interact with the Dub API

Analytics → Get

AI-generated

Summary

Retrieve analytics data for Dub links.

Inputs

  • Event (required) — Event type to retrieve analytics for (clicks, leads, sales, composite).
  • Interval (required) — Time interval for analytics (e.g., 30d, 7d, all, ytd).
  • Additional Fields — Optional filters and grouping options such as browser, city, country, device, domain, externalId, folderId, groupBy, linkId, os, referer, region, tagIds, tagNames, tenantId, trigger, and UTM parameters.

Output shape

Array of analytics records (fields depend on selected groupBy and filters).

Returns data from the Dub Analytics endpoint matching the specified criteria.

Examples

Example 1: Get click analytics for the last 30 days, grouped by country.

Event: Clicks, Interval: 30d, Additional Fields: Group By = countries

Links

Discussion