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

GET/v1/space-weather

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it.
Price1 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

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.

Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "attribution": "string",
  "endorsement": "string",
  "generated_at": "string",
  "label": "string",
  "status": "string",
  "threshold_s": 0
}
401No key, or a missing, malformed, unknown, revoked or expired one (unauthorized); the body carries signup, docs and a one-call hint for a free key

application/problem+json · Problem

402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected X-PAYMENT). Not problem+json

application/json · X402PaymentRequired

403The key may not call this: a browser key outside its scope (scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)

application/problem+json · Problem

429Per-key rate limit (rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)

application/problem+json · Problem

501Space weather not enabled (SN_LIVE_DIR unset). Not billed

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (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