domain
Domain statistics
Returns detailed statistics for domain in given period
get/domain/{domainId}
Request
- Base URLhttps://statistics.short.io/statistics
- URLhttps://statistics.short.io/statistics/domain/{domainId}
- AuthAPI key in header Authorization
Path parameters
domainIdinteger required
Domain identifier
Query parameters
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 statistics
Example response
{
"clicks": 12345,
"humanClicks": 10000,
"links": 100,
"linksChange": "12.34",
"interval": {
"startDate": "2019-09-11T02:59:59.999Z",
"endDate": "2019-08-11T02:59:59.000Z",
"prevStartDate": "2019-07-11T03:00:00.000Z",
"prevEndDate": "2019-08-11T03:00:00.000Z"
},
"clicksPerLink": "0.12",
"clicksPerLinkChange": "234.56",
"humanClicksPerLink": "0.06",
"prevClicksChange": "34.53",
"humanClicksChange": "-67.15",
"clickStatistics": {
"datasets": [
{
"data": [
{
"y": 5,
"x": "2019-08-11T03:00:00.000Z"
}
]
}
]
},
"referer": [
{
"score": 123,
"referer": "google.com"
}
],
"social": [
{
"score": 123,
"social": "Facebook"
}
],
"browser": [
{
"score": 54,
"browser": "Firefox"
}
],
"country": [
{
"score": 54,
"country": "US",
"countryName": "United States"
}
],
"city": [
{
"city": "5393015",
"name": "Santa Clara",
"countryCode": "US"
}
],
"os": [
{
"score": 13,
"os": "Windows"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.