Current origin-error status per subdomain
const url = 'https://api.nsin.ir/uptime/live?domain=example.com';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.nsin.ir/uptime/live?domain=example.com' \ --header 'Authorization: Bearer <token>'What is happening right now, per watched scope, 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.
One hostname may appear on several rows: the whole-host watch
(monitor_id: 0) plus one row per uptime monitor that matches it, each
measured over its own traffic. Key on (hostname, monitor_id).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The domain name (for example example.com). These endpoints take the
domain as a query parameter rather than a path segment.
Example
example.comResponses
Section titled “ Responses ”Live status.
object
Length of the trailing window, in minutes.
object
The monitor this row belongs to; 0 for the domain’s default
whole-host watch. One hostname can appear on several rows — one per
matching monitor, plus the whole-host row — so key on
(hostname, monitor_id), never on hostname alone.
Empty for the whole-host watch.
Human name of the watch, so two rows for one hostname do not read as duplicates. Empty for the whole-host watch.
Origin-attributable 5xx responses.
Origin-error percentage across the window.
Currently meets this domain’s alert thresholds.
An incident is currently open for this scope.
Example generated
{ "window_min": 1, "hosts": [ { "hostname": "example", "monitor_id": 1, "monitor_name": "example", "scope_label": "example", "requests": 1, "errors": 1, "error_pct": 1, "down": true, "incident": true } ]}The domain query parameter is missing.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "domain is required"}Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "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.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}