# 2s Space Weather API

> 2s Space Weather API is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns current space weather data including geomagnetic storm indices (Kp/G-scale), solar X-ray flux, solar flare class, and NOAA space weather scales

## Facts

- Endpoint: GET https://2s.io/api/space/weather
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-space-weather-api-62d6b049
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FUvsqNBcywueXMmEtU9iX

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 2s-space-weather-api-62d6b049
```

Example prompt: What's the current space weather situation — is there a geomagnetic storm going on, and what's the latest Kp index and solar flare class?

## When to prefer this

Use this endpoint when you need a single unified JSON response covering all major space weather indicators (Kp, G-scale, X-ray flux, flare class, NOAA scales) with no API key or signup required. Prefer over direct NOAA API calls when you want a clean normalized schema at very low cost. Ideal for agents monitoring aurora visibility, satellite operators, radio operators, or any workflow that needs real-time solar/geomagnetic conditions.

## Known failure modes

- Payment required (HTTP 402) if x402 USDC payment not included
- NOAA upstream data unavailable or delayed — may return stale or null fields for xray/flare data
- fluxLongWm2 and flareClass fields can be null if satellite data is temporarily unavailable
- satellite field may be null if reporting source is unspecified

## How this service works

The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.

## Output

A JSON object with 'ok: true', 'source', 'total', and an 'items' array containing: the latest Kp index value with its NOAA G-scale integer (0-5) and plain-English severity label (none/minor/moderate/strong/severe/extreme), up to 8 historical Kp samples from the last ~24 hours, current GOES X-ray flux in W/m² with derived flare class (e.g. C2.4, M1.0, X9.3) and satellite number, plus current and forecasted NOAA R (radio blackout), S (solar radiation), and G (geomagnetic) scale readings with labels.

## Example request

```json
{
 "properties": "kp,gscale,xrayFlux,flareClass"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-space-weather-api-62d6b049/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
