Get Click Traffic and Platforms

Retrieve aggregated analytics showing click traffic by country and top platforms.

Endpoint

GET /v2/external/client/analytics/click-traffic-platforms?shortUrl={shortUrl}

Query Parameters

Parameter Type Required Description
shortUrl string Yes Returned opaque link ID (preferred), or a code
domainId string No Disambiguate a code on a custom domain

Response

{
  "status": true,
  "message": "Click traffic fetched successfully",
  "data": {
    "clicksTraffic": {
      "US": 450,
      "GB": 230,
      "CA": 180,
      "DE": 120,
      "FR": 100
    },
    "topPlatforms": {
      "iOS": 520,
      "Android": 380,
      "Windows": 180,
      "macOS": 120,
      "Linux": 50
    }
  }
}

Response Fields

  • clicksTraffic: Object with country codes as keys and click counts as values
  • topPlatforms: Object with platform names as keys and click counts as values

Notes

  • Only links in the API key workspace scope can be accessed
  • Results are cached for 1 hour
  • Data retention limits apply based on your plan

Domain scope

Use shortUrl=RETURNED_LINK_ID to select one link unambiguously, or add domainId=DOMAIN_ID when passing a code. Access is checked before cache reads; logs are queried by the resolved link ID. Unknown/inaccessible records fail; ambiguous codes return 409. Historical logs without a link ID are not mixed across domains.