Link Stats

Fields

  • $link_id (String, required): The ID of the link.

  • $start_time (String, required): The start time of the period for which to query statistics, in UTC. Format should be in ISO 8601 (e.g., YYYY-MM-DDTHH:MM:SSZ).

  • $end_time (String, required): The start time of the period for which to query statistics, in UTC. Format should be in ISO 8601 (e.g., YYYY-MM-DDTHH:MM:SSZ). This time must be after the start_time.

  • $offset (Int, required): The local time offset from UTC for the query, specified in hours. (e.g., EST is -0400.)

Request


link_statistics(
  link_id: $link_id
  start_time: $start_time
  end_time: $end_time
  offset: $offset
) {
  events
  countries
  campaigns
  destinations
}

Response

Last updated