# npm Status Monitor API

> npm Status Monitor API is a paid API for AI agents from status-state-api.replit.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Returns the current normalized health status, component breakdown, and active incident details for npm's infrastructure

## Facts

- Endpoint: GET https://status-state-api.replit.app/api/monitors/npm?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-status-monitor-api-71c3f575
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mWTgx4m_cAvb1F4sVFKfN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability npm-status-monitor-api-71c3f575
```

Example prompt: Can you check whether npm is currently up or experiencing any outages, and tell me if there are any active incidents affecting the registry?

## When to prefer this

Use this endpoint when you need a normalized, structured status snapshot for npm specifically — particularly when you want fault-first component ordering, active incident detail, and a staleness signal in a single call without managing API keys. Prefer this over scraping npm's status page directly when you need machine-readable JSON and pay-per-use economics via x402.

## Known failure modes

- Payment not provided or insufficient: 402 response with overallStatus and hasActiveIncident preview in body
- Invalid or unknown slug: endpoint may return 404 or empty result
- Stale data: sourceUpdatedAt may lag if upstream status page is unresponsive
- Network timeout: Replit-hosted service may have cold-start latency

## How this service works

Current normalized overall status, fault-first components, active incident (or closedIncidentSummary if stale), and poll clocks. overallStatus and hasActiveIncident are in the 402 JSON body so you can decide whether to pay. $0.01 per call in USDC on Base or Solana, verified and settled by the PayAI facilitator - no API key, no signup.

## Output

Returns a JSON object with the npm slug and name, an overallStatus string (e.g. 'operational', 'degraded', 'outage'), an array of components sorted fault-first, an activeIncident object (or null), a closedIncidentSummary if the last incident is recent but closed, timestamps for lastCheckedAt and sourceUpdatedAt, staleness metadata, and checkIntervalMinutes indicating how often the monitor polls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string",
       "pattern": "^[a-z0-9-]{1,64}$",
       "examples": [
        "openai"
       ],
       "description": "Vendor slug from the free GET /api/monitors catalog"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "slug",
      "name",
      "overallStatus",
      "components",
      "activeIncident",
      "lastCheckedAt",
      "sourceUpdatedAt",
      "staleness"
     ],
     "properties": {
      "name": {
       "type": "string"
      },
      "slug": {
       "type": "string"
      },
      "staleness": {
       "type": "object"
      },
      "components": {
       "type": "array"
      },
      "homepageUrl": {
       "type": "string"
      },
      "lastCheckedAt": {
       "type": [
        "string",
        "null"
       ]
      },
      "overallStatus": {
       "type": "string"
      },
      "activeIncident": {
       "type": [
        "object",
        "null"
       ]
      },
      "sourceUpdatedAt": {
       "type": [
        "string",
        "null"
       ]
      },
      "componentsOmitted": {
       "type": [
        "object",
        "null"
       ]
      },
      "checkIntervalMinutes": {
       "type": "number"
      },
      "closedIncidentSummary": {
       "type": [
        "object",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-status-monitor-api-71c3f575/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status-state-api.replit.app](https://www.zero.xyz/host/status-state-api.replit.app/llms.txt)
