Errors by Message API

This endpoint returns the count of Error count by Message, sorted by count descending.

URI

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

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. Time precision is within 1 second.


startDate

ISO 8601 String

Optional

Filter the results to only return errors after this date. 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 "count" and "usercount". Sort directions are specified by appending "|asc" or "|desc". Default value is "count|desc" if not specified.

Response

{
    "data": [{
        "key": "Cannot read property on of undefined",
        "count": 54,
        "userCount": 12,
        "firstSeen": "2016-09-05T05:53:50.885+00:00",
        "lastSeen": "2016-09-22T22:42:23.579+00:00",
        "trackJsUrl": "https://my.trackjs.com/messages/filtered?message=Cannot+read+property+%27on%27+of+undefined&"
    }],
    "metadata": {
        "startDate": "2014-09-11T00:00:00Z",
        "page": 1,
        "size": 3,
        "hasMore": true,
        "trackJsUrl": "https://my.trackjs.com/messages"
    }
}

Example

curl -H "Authorization: {API_KEY}" "https://api.trackjs.com/{CUSTOMER_ID}/v1/errors/messages?startDate=2018-11-20&endDate=2018-11-27&sort=usercount|desc"