Skip to content

Current origin-error status per subdomain

GET
/uptime/live
curl --request GET \
--url 'https://api.nsin.ir/uptime/live?domain=example.com' \
--header 'Authorization: Bearer <token>'

What is happening right now, per subdomain, over the domain’s detection window — including hosts that are erroring but have not (yet) crossed the alert thresholds. Distinct from /uptime, which lists only sustained outages.

domain
required
string

The domain name (for example example.com). These endpoints take the domain as a query parameter rather than a path segment.

Example
example.com

Live status.

Media type application/json
object
window_min

Length of the trailing window, in minutes.

integer
hosts
Array<object>
object
hostname
string
requests
integer
errors

Origin-attributable 5xx responses.

integer
error_pct

Origin-error percentage across the window.

number
down

Currently meets this domain’s alert thresholds.

boolean
incident

An incident is currently open for this host.

boolean
Example generated
{
"window_min": 1,
"hosts": [
{
"hostname": "example",
"requests": 1,
"errors": 1,
"error_pct": 1,
"down": true,
"incident": true
}
]
}

The domain query parameter is missing.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example missing
{
"error": "domain is required"
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}