nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Uptime

Outage incidents open right now

gethttps://api.nsin.ir/uptime/active

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

A one-glance answer to "is anything down?" — the incidents currently open for this domain. Cheaper than /uptime/live (it reads only the incident records, no traffic aggregation), so it is the endpoint to poll for a status indicator.

Query parameters

  • domainstringrequiredquery

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

Responses

200Active outages.

Content type: application/json

  • countinteger

    Number of outage incidents currently open.

  • hostnamesarray of string

    The subdomains that are down right now.

  • sincestring (date-time)

    When the oldest open incident started. Absent when nothing is down.

json
{
  "count": 0,
  "hostnames": [
    "string"
  ],
  "since": "2026-01-01T00:00:00Z"
}
400The domain query parameter is missing.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "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.

json
{
  "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.

json
{
  "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.

json
{
  "error": "rate limit exceeded"
}

Example request

bash
curl -X GET "https://api.nsin.ir/uptime/active?domain=example.com" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc