METAR / SPECI decoder with flight category

$0.005 USDC per call · Business, finance and compliance · POST /api/v1/metar-parse · Id metar-parse

Decodes up to 20 METAR or SPECI aviation weather reports (US and ICAO forms: wind with gusts and variable direction, visibility in statute miles or metres, CAVOK, RVR, present weather, cloud layers, temperature/dew point, altimeter, trend, RMK remarks) into structured fields and computes the FAA flight category (LIFR/IFR/MVFR/VFR). Every token it cannot decode is returned with its character offset and the status is unknown, never silently dropped; remark text it does not recognise is kept raw and does not change the status. Does not fetch weather, decode TAFs, or interpret forecasts. Reports must be uppercase as transmitted.

What you get

Turns a raw weather string into checked fields so an agent never misreads M05 or 1 1/2SM; each unparsed token is located exactly.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/metar-parse. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/metar-parse \
  -H 'content-type: application/json' \
  -d '{"reports":["METAR KPIT 091955Z COR 22015G25KT 3/4SM R28L/2600FT TSRA OVC010CB 18/16 A2992 RMK SLP045 T01820159"]}'

Input

FieldTypeRequiredDescription
reportsarray<string; length 0..2000>; max 20 itemsyesReports to decode.
claimsarray<object>; max 100 itemsnoOptional claims to verify against the decoded report.

Example request body

{
  "reports": [
    "METAR KPIT 091955Z COR 22015G25KT 3/4SM R28L/2600FT TSRA OVC010CB 18/16 A2992 RMK SLP045 T01820159"
  ]
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
reportsarray<object>no
parserstringno
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the physical-ops-kit package.

Machine-readable