South Star

METAR Weather Parser Aviation Reports TAF Forecasts Batch API

Free tier included · Weather
Parse METAR/SPECI reports, TAF forecasts, and batch weather data into structured JSON. Offline, stateless, no logging.

METAR Weather Parser decodes raw METAR/SPECI aviation weather reports and TAF forecasts into structured JSON. It covers station, time, wind (including gusts, VRB, variable sectors), visibility (SM, meters, fractions, CAVOK), RVR, present weather, clouds (CB/TCU/VV), temperature/dewpoint (M-minus, RMK tenths), altimeter (A/QNH), and remarks. TAF forecasts include validity, change groups (FM/TEMPO/BECMG/PROB), TX/TN temperatures, and military groups.

Use cases: aviation apps needing structured weather data, flight-planning tools, weather dashboards, drone operations, and ETL pipelines processing historical reports. The `/extra/batch` endpoint parses up to 100 reports in one call, ideal for bulk processing. The `/extra/airport` endpoint returns airport metadata (name, coordinates, elevation, runways) from the OurAirports database.

This API is offline and stateless — no external network calls, no databases, no logs. It uses a regex tokenizer over the published METAR grammar, stdlib-only.

Honest limits: input capped at 4000 characters per report; batch limited to 100 items; `/extra/airport` requires a valid 4-character ICAO code. Unknown tokens are returned in `unparsed`.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and paths to the interactive docs and health endpoint.
GET/healthLiveness probe; returns status "ok" while the process is up.
POST/parseParse a single METAR/SPECI report into structured JSON.
POST/tafParse a TAF aerodrome forecast into structured JSON.
POST/extra/batchParse up to 100 raw METAR/SPECI strings in a single request. Returns an array of structured results in the same order as the input.
GET/extra/airportAirport directory by ICAO. Returns airport metadata (name, ICAO, coordinates, elevation, runways) from the OurAirports public-domain database.

Quick start

curl -X POST "https://metar.p.rapidapi.com/parse" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: metar.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"metar":"METAR KJFK 281151Z 27010KT 1 1/2SM -RA BR OVC007 18/16 A2970"}'

FAQ

Does the API make any external network calls?

No. Parsing is entirely offline — regex tokenization over embedded constants. There are no databases and no logs. The `/extra/airport` endpoint reads from a static OurAirports dataset bundled with the service.

What are the input size and batch limits?

Each METAR/TAF string is capped at 4000 characters. The `/extra/batch` endpoint accepts up to 100 reports per request. The `/extra/airport` endpoint requires a valid 4-character ICAO code.

How accurate is the parsing?

The parser follows the WMO 49 / FAA 7900.5 grammar and is tested against real reports from KJFK, UUWW, EDDF, and UUEE. Unknown tokens are returned in `unparsed` rather than dropped, so you can see what wasn't recognized.

Can I parse historical or archived reports in bulk?

Yes. Use `POST /extra/batch` to send up to 100 reports in a single request, with results returned in the same order as the input.

Try METAR Weather Parser Aviation Reports TAF Forecasts Batch free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs