# 2s Aviation METAR Weather

> 2s Aviation METAR Weather is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-10-10).

Retrieves live METAR aviation weather observations for one or more airports by ICAO station code

## Facts

- Endpoint: GET https://2s.io/api/aviation/metar?utm_source=zero.xyz
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-aviation-metar-weather-63bec977
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q6CRqONrmqDCHu0zuqjqM

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 2s-aviation-metar-weather-63bec977
```

Example prompt: What are the current METAR conditions at KATL and KJFK — give me wind, visibility, cloud cover, and flight category for both.

## When to prefer this

Use this endpoint when you need real-time, decoded METAR aviation weather data for one or more airports by ICAO code. It provides structured output (not just raw METAR text) with flight category, making it ideal for flight planning, pre-flight briefings, or any agent workflow that needs current airport weather conditions. Prefer this over generic weather APIs when aviation-specific fields (altimeter, flight category, cloud layers in ft AGL) are required.

## Known failure modes

- Invalid or unknown ICAO code returns empty items array or error
- Missing 'ids' query parameter returns 400 or validation error
- Station not reporting (offline or no recent observation) returns no items for that station
- Network timeout or upstream NOAA outage returns error or empty response
- Malformed comma-separated list may cause partial results

## How this service works

Current aviation weather observation (METAR) for one or more airports. Pass ids = comma-separated ICAO station ids (e.g. KATL, EGLL, KJFK). Returns the raw METAR plus decoded fields: flight category (VFR/MVFR/IFR/LIFR), temperature + dewpoint (°C), wind direction/speed/gust (kt), visibility, altimeter (inHg), and cloud layers. Source: NOAA Aviation Weather Center (keyless, public domain).

## Output

Returns an array of decoded METAR records per station, each containing: raw METAR string, station name, temperature (°C), dewpoint (°C), wind direction (degrees), wind speed (kt), wind gust (kt or null), visibility, cloud layers with cover type and base altitude (ft AGL), altimeter setting (inHg), flight category (e.g. VFR/IFR/MVFR), and observation timestamp. Also includes a total count and source attribution (NOAA public domain).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "ids": "KATL,KJFK"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated ICAO ids (e.g. KATL,KJFK)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-aviation-metar-weather-63bec977/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
