# WritersLogic METAR/SPECI Aviation Weather Parser

> WritersLogic METAR/SPECI Aviation Weather Parser is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-18).

Decodes up to 20 raw METAR or SPECI aviation weather reports into structured fields and computes FAA flight categories (LIFR/IFR/MVFR/VFR), returning every unrecognized token with its character offset rather than silently dropping it.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/metar-parse?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-metar-speci-aviation-weather-parser-043c1580
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZHKSoGa5hxOe792h9EXRu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-metar-speci-aviation-weather-parser-043c1580 -d '<json body>'
```

Example prompt: Can you parse this METAR for me and tell me the flight category, wind, visibility, and cloud layers: 'KJFK 121851Z 27018G25KT 10SM FEW045 BKN250 22/10 A2992 RMK AO2 SLP132'?

## When to prefer this

Choose this endpoint when you need deterministic, structured extraction of METAR or SPECI observation data without silent failures — every unrecognized token is surfaced with its position rather than dropped. Ideal for aviation dispatch systems, pre-flight automation, flight category alerting, and data pipelines that must process up to 20 reports per call. Prefer this over generic LLM-based weather parsing when auditability and claim verification matter. Not suitable for TAF decoding, forecast interpretation, or live weather fetching.

## Known failure modes

- Report string not uppercase — parser may return unknown tokens for fields that would otherwise decode correctly
- More than 20 reports submitted — request rejected with validation error
- Individual report string exceeds 2000 characters — rejected
- Report is a TAF or forecast rather than METAR/SPECI — not decoded, may return many unknown tokens
- Malformed or truncated METAR missing mandatory groups — partial decode with unknown tokens for missing fields
- Non-ASCII or special characters in report string — tokenization errors

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured JSON response for each submitted METAR/SPECI containing decoded fields: wind direction/speed/gusts, visibility (statute miles or metres), CAVOK flag, RVR values, present weather phenomena, cloud layers (coverage and altitude), air temperature and dew point in Celsius, altimeter setting, trend group, raw remarks text, computed FAA flight category (LIFR/IFR/MVFR/VFR), and an array of any unrecognized tokens each with their character offset and 'unknown' status. If claims were submitted, each claim is validated against the decoded value and the result includes a pass/fail for each assertion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "claims": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "report"
    ],
    "properties": {
     "report": {
      "type": "integer",
      "maximum": 19,
      "minimum": 0,
      "description": "Index into reports."
     },
     "dewpointC": {
      "type": "number",
      "description": "Claimed dew point, Celsius."
     },
     "windSpeed": {
      "type": "number",
      "description": "Claimed mean wind speed in the report's own unit."
     },
     "temperatureC": {
      "type": "number",
      "description": "Claimed air temperature, Celsius."
     },
     "flightCategory": {
      "enum": [
       "LIFR",
       "IFR",
       "MVFR",
       "VFR"
      ],
      "type": "string"
     }
    }
   },
   "maxItems": 100,
   "description": "Optional claims to verify against the decoded report."
  },
  "reports": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 2000,
    "description": "One METAR or SPECI report, optionally ending in '='."
   },
   "maxItems": 20,
   "minItems": 1,
   "description": "Reports to decode."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-metar-speci-aviation-weather-parser-043c1580/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
