Skip to content
Documentation menu
docs / api / get-v1-space-weather
live

GET/v1/space-weather

API key required, sent as Authorization: Bearer snk_… or ?api_key=snk_….

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

bash
curl -fsS -X GET "https://api.mapmap.ai/v1/space-weather" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Responses

200Aurora forecast and Kp
FieldTypeRequiredDescription
age_sintegernoSeconds since forecast_time. null when unknown.
attributionstringyesThe credit, verbatim.
auroraAuroraGridno
endorsementstringyesNo endorsement by or affiliation with NOAA is implied.
forecast_timestringnoThe time the aurora forecast is for (RFC 3339).
generated_atstringyesWhen this answer was assembled (RFC 3339).
kpnumbernoPlanetary Kp index.
kp_timestringnoWhen Kp was measured (RFC 3339).
labelstringyesForecast, not an observation.
max_probabilitynumbernoHighest aurora probability in the grid, percent.
observation_timestringnoThe observation time the forecast was made from (RFC 3339).
statusstringyesok, unavailable or unknown.
threshold_sintegeryesThe age after which the forecast is unavailable, seconds.
501Space weather not enabled (SN_LIVE_DIR unset). Not billed

Error bodies follow the shared problem model documented on API conventions.

Also under live

Generated from https://api.mapmap.ai/openapi.json on 2026-10-17 · operationId get_space_weather