# greeneris-data-kp-index

> greeneris-data-kp-index is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Returns real-time NOAA Kp geomagnetic storm index with configurable trailing window and storm threshold flag

## Facts

- Endpoint: GET https://data.greeneris.io/v1/space/kp
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-kp-index-75006951
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DWCn1ehOTOXRW82n0GxkK

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 greeneris-data-kp-index-75006951
```

Example prompt: What's the current NOAA Kp index? Give me the last 5 minutes of readings and flag it as a storm if Kp hits 6 or above.

## When to prefer this

Use this endpoint when you need real-time or near-real-time NOAA Kp geomagnetic index data with a simple storm flag, especially in agentic workflows that already support x402 micropayments. Prefer this over scraping NOAA directly when you want a clean JSON response with a configurable storm threshold and trailing time series, with pay-per-call pricing and no subscription required.

## Known failure modes

- HTTP 402 returned if payment not included — endpoint requires USDC payment via x402 protocol before data is served
- Invalid 'last' parameter outside 1-60 range may return an error or clamped value
- NOAA upstream outage may cause stale or unavailable data
- Threshold value outside 0-9 range may cause validation error

## How this service works

Latest 1-minute estimated planetary Kp index from NOAA SWPC, with a boolean storm flag (estimated_kp >= threshold, default 5 = G1 storm). Query: ?last=1..60 (trailing minutes returned in 'series'), ?threshold=0..9. Signals GPS/GNSS degradation, satellite drag, HF blackouts and grid stress. 60s cache.

## Output

Returns the current Kp index value, estimated Kp, timestamp, a storm boolean (true if Kp meets or exceeds threshold), and an optional time-series array of up to 60 trailing 1-minute values, sourced from NOAA SWPC.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "last": {
       "type": "integer",
       "default": 1,
       "description": "Trailing 1-minute values to return (1-60)"
      },
      "threshold": {
       "type": "number",
       "default": 5,
       "description": "Kp level that sets storm=true (0-9)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "storm": false,
  "series": [
   {
    "kp_index": 2,
    "time_tag": "2026-07-13T08:59:00",
    "estimated_kp": 2
   }
  ],
  "source": "NOAA Space Weather Prediction Center (services.swpc.noaa.gov), public domain",
  "kp_index": 2,
  "time_tag": "2026-07-13T08:59:00",
  "threshold": 5,
  "estimated_kp": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-kp-index-75006951/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
