Usage by Hour API

This endpoint returns account usage statistics by hour, sorted by date ascending. Usage data is for you entire account and is not broken down by application.

URI

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

The following querystring parameters are accepted:

endDate

ISO 8601 String

Optional

Filter the results to only return usage data from before this date and time.


startDate

ISO 8601 String

Optional

Filter the results to only return usage data from after this date and time.

Response

[
    {
        "timestamp": "2023-01-18T07:00:00+00:00",
        "pageViews": 556,
        "totalErrors": 3126,
        "processedErrors": 2762,
        "ignoredErrors": 352,
        "droppedErrors": 0,
        "errorsPerPageView": 5.622
    },
    {
        "timestamp": "2023-01-18T08:00:00+00:00",
        "pageViews": 645,
        "totalErrors": 3260,
        "processedErrors": 2859,
        "ignoredErrors": 345,
        "droppedErrors": 0,
        "errorsPerPageView": 5.054
    }
]

Example

curl -H "Authorization: {API_KEY}" "https://api.trackjs.com/{CUSTOMER_ID}/v1/usage/hourly?startDate=2023-01-18T02:00:00Z&endDate=2023-01-20T16:00:00Z"