domain

Top values of specified column and interval

Returns values by interval and counts for specified column

post/domain/{domainId}/top_by_interval

Request

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

Path parameters

domainIdinteger required

Domain identifier

Request body

column'path' | 'path_404' | 'method' | 'st' | 'proto' | 'human' | 'browser' | 'browser_version' | 'country' | 'city' | 'social' | 'refhost' | 'os' | 'utm_source' | 'utm_medium' | 'utm_campaign' | 'goal_completed' | 'ab_path' required

column for the aggregation

interval'hour' | 'day' | 'week' | 'month'

One of predefined time intervals

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

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

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

tzstring

Timezone name

limitnumber

Response

top by interval response

datestring date required

Interval start date

Example response

[
  {
    "date": "2019-06-01T00:00:00.000Z",
    "statistics": [
      {
        "column": "Firefox",
        "score": 1234
      }
    ]
  }
]

Changes

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