Errors by URL API

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

URI

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

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": "https://my.trackjs.com/",
        "count": 104,
        "userCount": 50,
        "trackJsUrl": "https://my.trackjs.com/urls/filtered?url=https%3a%2f%2fmy.trackjs.com%2f&"
    }],
    "metadata": {
        "startDate": "2014-09-11T00:00:00Z",
        "page": 1,
        "size": 3,
        "hasMore": true,
        "trackJsUrl": "https://my.trackjs.com/urls"
    }
}

Example

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