Status API › Analytics
Get a page's views by the hour
GET/api/v1/pages/{pageID}/analytics/hourly
The page's views per UTC hour, every hour in the range present (0 when none).
from and to go together: dates (to inclusive) or RFC 3339 instants (to
exclusive), widened to whole hours. Default the last 7 days, at most 14.
Permission (API-key scope): status:page:read.
Authorization
bearerAuth(status:page:read)apiKeyHeader(status:page:read)
Parameters
Path parameters
pageIDstring (uuid) requiredThe status page's id (a UUID).
Query parameters
fromstringYYYY-MM-DDor RFC 3339.tostringYYYY-MM-DD(inclusive) or RFC 3339 (exclusive).
Responses
200
Hourly views.
dataobject requiredrangeAnalyticsRangeShow AnalyticsRange properties
fromstring (date-time)tostring (date-time)granularitystringtzstring
page_idstringseriesarray of objectbucketstring (date-time)viewsinteger
successboolean required
400
from/to or compare is not valid (VALIDATION_FAILED, each field in details).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstringdetailsarray of object requiredfieldstringmessagestring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
404
No such item, or one the caller cannot see (NOT_FOUND).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThis request's id, also inX-Request-ID.
Example request
curl -X GET 'https://evohub.io/api/v1/pages/3f6c2a1e-8b4d-4f7a-9c21-5d0e7a9b1c42/analytics/hourly' \
-H 'Authorization: Bearer <TOKEN>'