Skip to content
Documentation menu
docs / api / get-v1-weather-frames
Weather

GET/v1/weather/frames

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 GFS forecast frames MapMap processes for the map: kept runs (newest first), each frame's valid time and file paths, how each field's PNG bytes decode (encodings), a base URL the paths resolve against and a tiles template for the pressure-line and rain/temperature tile ids. A forecast, not an observation; derived from NOAA GFS and modified by MapMap; no endorsement by or affiliation with NOAA is implied. Freshness is a field (ok, stale, unknown), never an error. When the key is sent as ?api_key=, the same key is stamped onto base and tiles. One Standard unit per request; a browser (maps) key may call it.

Call it

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

Parameters

NameInTypeRequiredDescription
runquerystringnoOne kept run, YYYYMMDDHH. 404 run-not-found if it is not kept; 400 invalid-run if malformed
latestqueryintegerno1: only the newest run. Default: every kept run Limits: at least 0.

Responses

200The frame manifest
FieldTypeRequiredDescription
age_sintegernoSeconds since generated_at. null with no manifest.
attributionobjectyesThe credit, verbatim from the manifest.
basestringyesFrame paths below resolve against this URL.
encodingsobjectyesHow each field's PNG bytes decode, verbatim from the manifest.
generated_atstringnoThe manifest's own generation time (RFC 3339). null with no manifest.
labelstringyesForecast, not an observation.
modelWeatherModelyesThe model.
notestringyesThe modification and no-endorsement note.
processed_bystringyesAlways MapMap.
runsWeatherRun[]yesKept runs, newest first.
statusstringyesok, stale or unknown.
threshold_sintegeryesThe age after which the manifest reads stale, seconds.
tilesstringyesTile URL template for the gateway ids on each frame (rain, temp: png; isobars: mvt).

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

json
{
  "attribution": {},
  "base": "string",
  "encodings": {},
  "label": "string",
  "model": {
    "horizon_h": 0,
    "id": "string",
    "step_h": 0
  },
  "note": "string",
  "processed_by": "string",
  "runs": [
    {
      "frames": [
        {}
      ],
      "run": "string",
      "run_id": "string"
    }
  ],
  "status": "string",
  "threshold_s": 0,
  "tiles": "string"
}
400invalid-run or invalid-latest. Not billed

application/problem+json · Problem

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

404run-not-found. 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

501Weather frames not enabled (SN_WEATHER_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 Weather

Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_weather_frames