Skip to main content

GET /tracking/link/stats/aggregated

GET 

tracking/link/stats/aggregated

Returns link logs count grouped by campaign_id, subscriber_id, device, country, ip, browser, custom_link_title, or params

Query Parameters

period_from string Required
example 2021-07-06T00:00:00.000Z

period_to string Required
example 2021-07-06T00:00:00.000Z

group string
Groups link tracking results by the specified field. When provided, each result entry will include the group field value with the count

offset string
Number of items to skip before starting to return results

limit string
Maximum number of items to return per request

sort string
Example: -count (desc) or count (asc)

campaign_id string
Filter by campaign identifier (letters, numbers, dashes, or underscores)

subscriber_id string
Filter by subscriber identifier (letters, numbers, dashes, underscores, dots, or email addresses)

profile_id string
Filter results by profile identifier

Returns

  • dataarray
    • campaign_idstring
      Campaign identifier (only when group=campaign_id)
    • subscriber_idstring
      Subscriber identifier (only when group=subscriber_id)
    • devicestring
      Device type or model (only when group=device)
    • countrystring
      Country code (ISO) (only when group=country)
    • ipstring
      Client IP address (only when group=ip)
    • browserstring
      Browser name and version (only when group=browser)
    • custom_link_titlestring
      Custom link title (only when group=custom_link_title)
    • params_namestring
      Parameter name (only when group=params)
    • params_valuestring
      Parameter value (only when group=params)
    • countinteger
      Number of link clicks
  • metaobject
    Pagination metadata for list responses
    • countinteger
      Total number of items available
    • offsetinteger
      Number of items skipped
    • limitinteger
      Maximum number of items returned per request
Error Codes

400 Bad Request

Bad Request

401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

500 Internal Server Error

Internal server error