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

GET/v1/space-weather/aurora.png

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 aurora probability grid: a 360 by 181 8-bit grey PNG, one byte per cell holding the probability in percent, column 0 at 180 W, row 0 at 90 N. A forecast, not an observation. Never served stale: a forecast older than an hour, or no file, is 404 aurora-unavailable. Carries an ETag; If-None-Match answers 304. One Standard unit per request.

Call it

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

Responses

200The grid
304Not modified (If-None-Match matched the ETag)
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

404aurora-unavailable: the forecast is older than an hour or missing. Not billed

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_aurora_png