Errors

Get error stats

GET/api/websites/{websiteId}/errors/stats

Returns the total number of error occurrences, issues, and affected visits for the selected date range, with a daily trend in UTC.

Try it

GET/api/websites/{websiteId}/errors/stats
Authorization

Credentials stay in this browser tab and are never sent anywhere except the API.

Path parameters
Query parameters
Response

Send a request to see the response.

Headers

NameTypeDescription
AuthorizationrequiredstringToken returned by POST /api/auth/login, or an API key (`umami_…`) created under Settings → API keys (self-hosted only). Bearer <token>.

Path parameters

NameTypeDescription
websiteIdrequiredstringID of the website.

Query parameters

NameTypeDescription
startAtrequiredintegerStart of the date range as a Unix timestamp in milliseconds.
endAtrequiredintegerEnd of the date range as a Unix timestamp in milliseconds.
statusenum<string>Filter by issue status: `unresolved`, `resolved`, or `ignored`.
Options: unresolved, resolved, ignored
searchstringSearch text used to filter results.
releasestringFilter by release, as set with `data-release` or `captureException`.
environmentstringFilter by environment, as set with `data-environment` or `captureException`.
browserstringBrowser used by the visitor.
urlPathstringFilter by the page path on which the error occurred.
pageintegerPage number, starting at 1.Default: 1
pageSizeintegerNumber of results per page.Default: 25

Responses

200Successful response.
NameTypeDescription
firstSeenrequiredstring | null
issuesrequirednumber
lastSeenrequiredstring | null
occurrencesrequirednumber
seriesrequiredobject[]
visitsrequirednumberVisit counts for the selected period.
200 example
400Invalid request.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
400 example
401Authenticated website access required.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
401 example
404Website, issue, or occurrence not found.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
404 example

Code samples

cURL