# 2s Aviation TAF (Terminal Aerodrome Forecast) API

> 2s Aviation TAF (Terminal Aerodrome Forecast) API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-13).

Returns raw and parsed Terminal Aerodrome Forecast (TAF) weather data for one or more airports identified by ICAO code, sourced from NOAA Aviation Weather Center.

## Facts

- Endpoint: GET https://2s.io/api/aviation/taf
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-aviation-taf-terminal-aerodrome-forecast-api-520285d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G_xHOQBhbJ4VrFnHIr5wV

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-taf-terminal-aerodrome-forecast-api-520285d5
```

Example prompt: Can you pull the current TAF forecasts for KATL and KORD so I can check the aviation weather before my flight?

## When to prefer this

Use this endpoint when you need authoritative, real-time Terminal Aerodrome Forecast data directly from NOAA for one or more airports by ICAO code, especially when no API key or signup is desired and pay-per-call USDC pricing is acceptable. Prefer over scraping aviationweather.gov directly or using general weather APIs that don't provide aviation-specific TAF format.

## Known failure modes

- Invalid or unknown ICAO code returns empty items array with total 0
- Missing required 'ids' query parameter returns a 400-level error
- Temporarily unavailable NOAA upstream source may return ok: false or empty data
- Malformed comma-separated IDs may result in partial or no results
- Network or payment failure returns HTTP 402 or 5xx

## How this service works

Terminal Aerodrome Forecast (TAF) for one or more airports — the official aviation forecast issued for an airport (~24–30h ahead). Pass ids = comma-separated ICAO station ids (e.g. KATL). Returns the raw TAF text + issue time. Source: NOAA Aviation Weather Center (keyless). For current conditions use aviation.metar.

## Output

Returns a JSON object with an array of TAF items, each containing the raw TAF string, airport name, ICAO station code, and issuance timestamp, plus source metadata (provider: NOAA Aviation Weather Center, license: US Government public domain). Total count of results is also included.

## Example request

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

## 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,KORD)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-aviation-taf-terminal-aerodrome-forecast-api-520285d5/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)
