link

Link statistics data by interval

Returns statistics for link grouped by interval

post/link/{linkId}/by_interval

Request

  • Base URL
    https://statistics.short.io/statistics
  • URL
    https://statistics.short.io/statistics/link/{linkId}/by_interval
  • Auth
    API key in header Authorization

Path parameters

linkIdstring required

Request body

period'custom' | 'today' | 'yesterday' | 'total' | 'week' | 'month' | 'lastmonth' | 'last7' | 'last30'

One of predefined time intervals. Select custom to provide custom dates

clicksChartInterval'hour' | 'day' | 'week' | 'month'

One of predefined time intervals

tzstring

Timezone name

startDatestring date

Returns statistics for clicks after given date. Required if period is custom

endDatestring date

Returns statistics for clicks before given date. Required if period is custom

Response

link statistics

Example response

{
  "clickStatistics": [
    {
      "y": 5,
      "x": "2019-08-11T03:00:00.000Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.