Documentation menu
GET/v1/space-weather
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it. |
|---|---|
| Price | 1 call per request. Class: standard. Published as unit_rules.default in /pricing.json. |
What it does
The NOAA SWPC OVATION aurora forecast and the planetary Kp index, with a link to the probability grid. A forecast of where the aurora is likely, about 30 to 90 minutes ahead, not an observation. status is ok, unavailable (the forecast is older than an hour: the times and Kp are still reported, aurora is null) or unknown (no data); never an error. No endorsement by or affiliation with NOAA is implied. One Standard unit per request; a browser (maps) key may call it.
Call it
curl -fsS -X GET "https://api.mapmap.ai/v1/space-weather" \
-H "Authorization: Bearer $MAPMAP_KEY"Responses
| Field | Type | Required | Description |
|---|---|---|---|
| age_s | integer | no | Seconds since forecast_time. null when unknown. |
| attribution | string | yes | The credit, verbatim. |
| aurora | AuroraGrid | no | |
| endorsement | string | yes | No endorsement by or affiliation with NOAA is implied. |
| forecast_time | string | no | The time the aurora forecast is for (RFC 3339). |
| generated_at | string | yes | When this answer was assembled (RFC 3339). |
| kp | number | no | Planetary Kp index. |
| kp_time | string | no | When Kp was measured (RFC 3339). |
| label | string | yes | Forecast, not an observation. |
| max_probability | number | no | Highest aurora probability in the grid, percent. |
| observation_time | string | no | The observation time the forecast was made from (RFC 3339). |
| status | string | yes | ok, unavailable or unknown. |
| threshold_s | integer | yes | The age after which the forecast is unavailable, seconds. |
Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"attribution": "string",
"endorsement": "string",
"generated_at": "string",
"label": "string",
"status": "string",
"threshold_s": 0
}unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
SN_LIVE_DIR unset). Not billedapplication/problem+json · Problem
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Events and live layers
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_space_weather