domain

Domain statistics data by interval

Returns statistics for domain grouped by interval

post/domain/{domainId}/by_interval

Request

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

Path parameters

domainIdinteger required

Domain identifier

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

domain interval 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.