# FlightAware Airport Weather Observations (METAR) API

> FlightAware Airport Weather Observations (METAR) API is a paid API for AI agents from stable-travel-git-migrate-stabletravel-router-140-merit-systems.vercel.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15, last successful call 2026-05-27).

Fetches current and recent METAR weather observations for a specific airport by its ICAO code

## Facts

- Endpoint: GET https://stable-travel-git-migrate-stabletravel-router-140-merit-systems.vercel.app/api/flightaware/airports/KJFK/weather/observations
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-05-27
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flightaware-airport-weather-observations-metar-api-8d5bd251
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u7DWtOIrOP5a3ULmxMeb_

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 flightaware-airport-weather-observations-metar-api-8d5bd251
```

Example prompt: What are the current weather conditions at JFK airport — give me the temperature in Fahrenheit, wind speed and direction, visibility, cloud layers, and flight rules?

## When to prefer this

Use this endpoint when you need structured, parsed METAR weather data for a specific airport including flight rules classification, cloud layers, wind, and visibility — especially when you need both human-friendly summaries and raw METAR strings for aviation planning or pre-flight checks.

## Known failure modes

- Invalid or unknown ICAO airport code returns an error
- Airport has no recent METAR data available
- Payment not provided or insufficient USDC balance returns 402
- Rate limiting or service unavailability returns 5xx
- Invalid temperature_units enum value returns validation error

## How this service works

Gets live weather observations for JFK airport.

## Output

Returns an array of recent METAR observations for the specified airport including time, temperature, dewpoint, wind speed/direction, visibility, pressure (inHg), cloud layers with altitude, flight rules (VFR/IFR/MVFR), relative humidity, raw METAR string, and human-friendly wind and cloud descriptions. Paginated with a next cursor link.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "temperature_units": "fahrenheit",
   "return_nearby_weather": false
  }
 }
}
```

## 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",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "timestamp": {
       "type": "string"
      },
      "temperature_units": {
       "enum": [
        "fahrenheit",
        "celsius"
       ],
       "type": "string"
      },
      "return_nearby_weather": {
       "type": "boolean"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "time": {
       "type": "string"
      },
      "clouds": {
       "type": "array",
       "items": {}
      },
      "dewpoint": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "pressure": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "raw_data": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "conditions": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ]
      },
      "visibility": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "wind_speed": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "pressure_hg": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "temperature": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      },
      "airport_code": {
       "type": "string"
      },
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/flightaware-airport-weather-observations-metar-api-8d5bd251/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stable-travel-git-migrate-stabletravel-router-140-merit-systems.vercel.app](https://www.zero.xyz/host/stable-travel-git-migrate-stabletravel-router-140-merit-systems.vercel.app/llms.txt)
