# METAR Aviation Weather Lookup

> METAR Aviation Weather Lookup is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches current METAR (Meteorological Aerodrome Report) data for 1–10 ICAO airport stations, including raw report, temperature, wind, visibility, and flight category

## Facts

- Endpoint: GET https://data.greeneris.io/v1/aviation/metar
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/metar-aviation-weather-lookup-1f590eff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sghTRxQKIrBzMgFhht7U6

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 metar-aviation-weather-lookup-1f590eff
```

Example prompt: Get me the current METAR for LFPG, EGLL, and KJFK — I need the flight category, wind, and visibility for each.

## When to prefer this

Use this endpoint when you need current official METAR data for one or more airports identified by ICAO code, especially for aviation decision-making, flight category checks, or weather briefing. Prefer over generic weather APIs when you need raw METAR text, flight category (VFR/IFR), QNH altimeter, or multiple airports in one call at commodity pricing with no API key required.

## Known failure modes

- Invalid or unknown ICAO code returns empty metars array for that station
- More than 10 ICAO codes in a single request may be rejected
- HTTP 402 returned if payment not yet made — retry after x402 USDC payment on Base
- Station has no recent observation — empty or missing entry for that ICAO code
- Malformed ids parameter (bad format) causes 400 error

## How this service works

Latest METAR observation, decoded, for any ICAO airport worldwide (NOAA AviationWeather.gov): wind direction/speed/gust (kt), temperature/dewpoint (C), visibility, QNH altimeter (hPa), flight category (VFR/MVFR/IFR/LIFR) plus the raw METAR string. Query: ?ids=KJFK,LFPG (1-10 comma-separated ICAO codes). Observations refresh every 30-60 min; 5 min cache.

## Output

Returns a JSON object with a count and an array of METAR records per station, each containing: raw METAR string, ICAO code, station name, lat/lon, temperature (°C), dewpoint (°C), wind speed (kt), wind direction (degrees), wind gust (kt or null), visibility, altimeter (hPa), flight category (VFR/IFR/MVFR/LIFR), and observed UTC timestamp. Source attribution to NOAA AviationWeather.gov is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "1-10 comma-separated ICAO station codes, e.g. KJFK,LFPG,EGLL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "metars": [
   {
    "lat": 49.015,
    "lon": 2.534,
    "raw": "METAR LFPG 140530Z 01010KT 350V110 CAVOK 20/16 Q1016 NOSIG",
    "icao": "LFPG",
    "name": "Paris/De Gaulle Arpt, ID, FR",
    "temp_c": 20,
    "dewpoint_c": 16,
    "visibility": "6+",
    "observed_utc": "2026-07-14T05:30:00Z",
    "wind_dir_deg": 10,
    "wind_gust_kt": null,
    "altimeter_hpa": 1016,
    "wind_speed_kt": 10,
    "flight_category": "VFR"
   }
  ],
  "source": "NOAA AviationWeather.gov data API (US Government, public domain)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/metar-aviation-weather-lookup-1f590eff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
