{"uid":"cap_MUrV1wTVB7lkIgyGn26md","slug":"aviationapis-metar-decoder-f703623a","name":"AviationAPIs METAR Decoder","description":"Pay-per-call aviation data APIs for AI agents, settled in USDC via the x402 protocol.","url":"https://aviationapis.com/decode-metar?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"raw":{"type":"string","description":"A raw METAR/SPECI observation string, e.g. 'KSFO 021856Z 28014KT 10SM FEW016 19/13 A3004'"}}},"responseSchema":{"type":"json","example":{"raw":"KSFO 021856Z 28014KT 10SM FEW016 19/13 A3004","auto":false,"type":"METAR","wind":{"gust_kt":null,"speed_kt":14,"direction_deg":280},"cavok":false,"clouds":[{"type":null,"cover":"FEW","base_ft":1600}],"temp_c":19,"remarks":null,"station":"KSFO","weather":null,"dewpoint_c":13,"report_time":"021856Z","altimeter_hpa":1017,"visibility_sm":10,"altimeter_inhg":30.04,"flight_category":"VFR","wind_variable_to_deg":null,"wind_variable_from_deg":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PBUQ-1veZvXF1yiKAH3kB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a raw METAR or SPECI aviation weather observation string into structured JSON fields including wind, visibility, clouds, temperature, altimeter, and flight category.","exampleAgentPrompt":"Decode this raw METAR string for me and tell me the flight category, wind, visibility, and cloud conditions: 'KSFO 021856Z 28014KT 10SM FEW016 19/13 A3004'.","exampleUseCases":null,"resultDescription":"A structured JSON object containing the decoded METAR fields: station ID, report type (METAR/SPECI), auto flag, report time, wind speed/direction/gust in knots, visibility in statute miles, cloud layers with cover type and base altitude in feet, temperature and dewpoint in Celsius, altimeter in both inHg and hPa, weather phenomena, CAVOK flag, variable wind range, flight category (VFR/MVFR/IFR/LIFR), and raw input string.","failureModes":["Malformed or empty METAR string returns an error or unparseable result","Missing required 'raw' field in request body causes a 400-level error","Truncated METAR string may result in null values for unparseable fields","Non-standard or military METAR formats may not parse correctly","Network or payment (x402) failure results in no response"],"whenToPreferThis":"Use this endpoint when you have a raw METAR or SPECI string and need it parsed into structured, machine-readable fields — especially for flight planning tools, weather dashboards, pilot briefing apps, or any automation that needs to extract wind, visibility, cloud base, or flight category from unparsed aviation weather text. Prefer this over a general weather API when the raw METAR text is already available and structured extraction is the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:33:29.123Z","isFirstParty":false,"canonicalSlug":"aviationapis-metar-decoder-f703623a"}