# NOAA SWPC Planetary Kp Index (Space Weather)

> NOAA SWPC Planetary Kp Index (Space Weather) is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns the latest 1-minute estimated planetary Kp index from NOAA SWPC with a geomagnetic storm flag based on a configurable threshold.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/space/kp
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/noaa-swpc-planetary-kp-index-space-weather-aa4d62f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QfhdkKkSyweMvB2Jl3P8e

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 noaa-swpc-planetary-kp-index-space-weather-aa4d62f8
```

Example prompt: Is there currently a geomagnetic storm? Give me the Kp index for the last 15 minutes and flag anything at G1 level or above (threshold 5).

## When to prefer this

Use this endpoint when you need real-time or near-real-time geomagnetic activity data, specifically the Kp index with an automated storm flag. Ideal for applications monitoring GPS/GNSS reliability, satellite operators needing drag alerts, HF radio operators checking blackout risk, or power grid managers watching for geomagnetically induced currents. Prefer this over raw NOAA SWPC endpoints when you want a clean JSON response with a pre-computed storm boolean and time-series support without dealing with NOAA's raw data formats.

## Known failure modes

- NOAA SWPC upstream data unavailable — returns error or stale data beyond 60s cache
- Invalid 'last' parameter outside 1–60 range — likely ignored or returns validation error
- Invalid 'threshold' outside 0–9 range — returns validation error
- Payment failure (x402) — 402 response if USDC payment not attached
- Network timeout to upstream NOAA feed

## 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 latest estimated planetary Kp index value, a boolean storm flag indicating whether the current Kp meets or exceeds the configured threshold (default 5 = G1 storm), and optionally a time series of up to 60 trailing 1-minute Kp readings. Useful for assessing GPS/GNSS degradation risk, satellite drag, HF blackout conditions, and grid stress.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/noaa-swpc-planetary-kp-index-space-weather-aa4d62f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
