Skip to content
Documentation menu
docs / api / get-v1-weather-frames-gfs-run-field-file
Weather

GET/v1/weather/frames/gfs/{run}/{field}/{file}

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

One forecast frame file, served verbatim: a global equirectangular PNG for rain, temp, cloud, gust or mslp, or a wind PNG with its JSON sidecar. file is fHHH.png, fHHH.json or the .half variants. The run must be one GET /v1/weather/frames lists. Run-keyed and never rewritten, so it is cached as immutable (private, because the resource is key-gated), with an ETag; If-None-Match answers 304. PMTiles frames are not served here; use the tiles template. A forecast, not an observation; derived from NOAA GFS and modified by MapMap. One Standard unit per file requested.

Call it

bash
curl -fsS -X GET "https://api.mapmap.ai/v1/weather/frames/gfs/{run}/{field}/{file}" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Parameters

NameInTypeRequiredDescription
runpathstringyesRun directory, YYYYMMDDHH
fieldpathstringyeswind, rain, temp, cloud, gust or mslp
filepathstringyesfHHH.png, fHHH.json, fHHH.half.png or fHHH.half.json

Responses

200The file's bytes
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

404not-found: unknown shape, unlisted run or no such file. 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_frame_file