# FlightAware Airport Weather Observations (METAR)

> FlightAware Airport Weather Observations (METAR) is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns current METAR weather observation data for a specific airport including temperature, wind, pressure, visibility, and flight rules

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/KMIA/weather/observations
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flightaware-b212ac93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HfiGfqBNdX2s_ZZHVHlUe

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-b212ac93
```

Example prompt: What are the current weather conditions at Miami International Airport (KMIA)? I need the temperature in Fahrenheit, wind speed, visibility, and current flight rules.

## When to prefer this

Use this endpoint when you need real-time or near-real-time METAR weather data tied to a specific ICAO airport code, especially for aviation decision-making (flight rules, density altitude, wind) or when you need structured parsed weather fields rather than raw text. Prefer over generic weather APIs when aviation-specific fields like flight rules category, density altitude, or raw METAR string are required.

## Known failure modes

- Invalid or unknown ICAO airport code returns 404 or empty result
- Airport has no active METAR reporting station — returns null fields
- Stale or missing observation data if airport station is offline
- Invalid temperature_units enum value causes request error
- x402 payment failure if wallet has insufficient USDC balance

## How this service works

Get weather observations (METAR) for a specific airport

## Output

Returns a structured weather observation object containing airport code, observation time, temperature, dewpoint, wind speed and direction (including human-friendly description), pressure (hPa and inHg), visibility, humidity percentage, cloud layers, conditions, flight rules category (VFR/IFR/etc.), density altitude, wind variable flag, and raw METAR string.

## 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-b212ac93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stabletravel.dev](https://www.zero.xyz/host/stabletravel.dev/llms.txt)
