Errors by Hour API

This endpoint returns the Error count by hour, sorted by date descending.

URI

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/hourly

The following querystring parameters are accepted:

application

String

Optional

Filter the results to only the Application key provided.


endDate

ISO 8601 String

Optional

Filter the results to only return errors before this date and time. Time precision is within 1 second.


startDate

ISO 8601 String

Optional

Filter the results to only return errors after this date and time. Time precision is within 1 second.


page

Number

Optional

The page of data you want returned. By default, the first page of data is returned. See Paging.


size

Number 1-1000

Optional

The size of the page of data you want returned. See Paging.


sort

Sort String

Optional

By default the endpoint returns results sorted by date in descending order. You may adjust the sort field and sort direction. Supported fields are "date", "count" and "usercount". Sort directions are specified by appending "|asc" or "|desc". Default value is "date|desc" if not specified.

Response

{
    "data": [{
        "key": "2020-05-28T15:00:00Z",
        "count": 718,
        "userCount": 8,
        "trackJsUrl": "https://my.trackjs.com/recent?minDate=2020-05-28T15:00:00.0000000&maxDate=2020-05-28T15:59:59.9990000"
    },
    {
        "key": "2020-05-28T14:00:00Z",
        "count": 684,
        "userCount": 3,
        "trackJsUrl": "https://my.trackjs.com/recent?minDate=2020-05-28T14:00:00.0000000&maxDate=2020-05-28T14:59:59.9990000"
    },],
    "metadata": {
        "startDate": "2020-05-20T02:00:00Z",
        "endDate": "2020-05-28T16:00:00Z",
        "page": 1,
        "size": 2,
        "hasMore": true,
        "trackJsUrl": "https://my.trackjs.com/recent"
    }
}

Example

curl -H "Authorization: {API_KEY}" "https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/hourly?startDate=2020-05-20T02:00:00Z&endDate=2020-05-28T16:00:00Z&sort=usercount|desc"