List outage incidents
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
The domain's sustained origin-outage incidents, most recent first. An
incident opens when a watched scope's origin-error rate stays above the
domain's threshold for the whole detection window, and resolves after
recover_min clear minutes.
Incidents come from two sources: the domain's default whole-host watch,
and each uptime monitor. Read monitor_id / scope_label to tell them
apart.
Query parameters
- domainstringrequiredquery
The domain name (for example
example.com). These endpoints take the domain as a query parameter rather than a path segment. - limitintegerquery
How many incidents to return, 1-200. Out-of-range values fall back to the default.
Default:50
Responses
200Incident history.
Content type: application/json
- incidentsarray of OutageIncident
Item fields
- idinteger
- monitor_idinteger
The monitor that fired. Absent for the domain's default whole-host watch. Two monitors on one hostname are otherwise indistinguishable in the history.
- scope_labelstring
Human name of the watch — the monitor's
name, or its first included path when it has none. Empty string for the whole-host watch. - hostnamestring
- statestring
openwhile ongoing,resolvedonce recovered. - ongoingboolean
- started_atstring (date-time)
- resolved_atstring (date-time)
Absent while the incident is ongoing.
- duration_secondsinteger
- peak_err_pctnumber
Highest origin-error percentage reached.
- sample_reqsinteger
Requests observed over the incident.
{
"incidents": [
{
"id": 0,
"monitor_id": 0,
"scope_label": "string",
"hostname": "string",
"state": "string",
"ongoing": true,
"started_at": "2026-01-01T00:00:00Z",
"resolved_at": "2026-01-01T00:00:00Z",
"duration_seconds": 0,
"peak_err_pct": 0,
"sample_reqs": 0
}
]
}400The domain query parameter is missing.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "domain is required"
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/uptime?domain=example.com" \
-H "Authorization: Bearer $NSIN_API_KEY"