Errors By Day

This endpoint returns the error count by day, sorted by date descending.

Url

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

Parameters

The following parameters may be specified on the query string to further filter the results. All parameters shown here are optional.

Date Range

startDate: Default value if not specified is the beginning of time.

endDate: Default value if not specified is the current date.

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/daily?startDate=2014-08-01&endDate=2014-08-31

Paging

By default the endpoint returns the most recent 20 results. You may adjust the number of results, and also specify a different page, if the number of total results exceed what you’ve requested.

page The page of data you’re requesting. Default value is 1 if not specified.

size The number of results to return per request. The default value is 20. The maximum value is 1000.

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/daily?page=1&size=50

Applications

If you make use of multiple applications, you specify which application key you’d like to receive data for.

application The application key to request data for. If not specified you will receive all data for all applications.

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/daily?application=Prod

Sorting

By default the endpoint returns results sorted by date in descending order. You may adjust the sort field and sort direction.

sort 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.

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/daily?sort=userCount|asc

Example

Request

GET https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/daily?startDate=2014-09-01&size=3

Response

{

    "data": [
        {
            "key": "2014-09-24T00:00:00Z",
            "count": 36,
            "userCount": 10,
            "trackJsUrl": "https://my.trackjs.com/daily/filtered?date=9%2f24%2f2014&"
        },
        {
            "key": "2014-09-23T00:00:00Z",
            "count": 5,
            "userCount": 2,
            "trackJsUrl": "https://my.trackjs.com/daily/filtered?date=9%2f23%2f2014&"
        },
        {
            "key": "2014-09-22T00:00:00Z",
            "count": 40,
            "userCount": 12,
            "trackJsUrl": "https://my.trackjs.com/daily/filtered?date=9%2f22%2f2014&"
        }
    ],
    "metadata": {
        "startDate": "2014-09-11T00:00:00Z",
        "page": 1,
        "size": 3,
        "hasMore": true,
        "trackJsUrl": "https://my.trackjs.com/daily"
    }

}