# StableTravel Airport Weather Observations (METAR)

> StableTravel 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 observations for a specific airport (hardcoded to KDFW/Dallas Fort Worth)

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/KDFW/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/stabletravel-airport-weather-observations-metar-3c540ce0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AjOwmU-SxlAO2IF69pg2V

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 stabletravel-airport-weather-observations-metar-3c540ce0
```

Example prompt: What are the current weather conditions at Dallas Fort Worth airport — specifically temperature in Fahrenheit, wind speed, visibility, and whether it's VFR or IFR right now?

## When to prefer this

Use this endpoint when you specifically need current METAR weather observations for Dallas Fort Worth International Airport (KDFW) and want structured, parsed data alongside the raw METAR string. Prefer this over generic weather APIs when aviation-specific fields like flight rules, density altitude, and cloud layers are needed for flight planning or operational decisions.

## Known failure modes

- Airport code mismatch — this endpoint is hardcoded to KDFW; requests for other airports will not return data
- No recent observation available — returns null fields if METAR data is stale or unavailable
- Invalid timestamp parameter — returns error if timestamp format is malformed
- Payment failure — x402 micropayment not processed, request rejected with 402 status

## How this service works

Get weather observations (METAR) for a specific airport

## Output

Returns a structured weather observation object including temperature, dewpoint, wind speed and direction, visibility, pressure (hPa and inHg), humidity percentage, cloud layers, flight rules classification (VFR/IFR/MVFR/LIFR), density altitude, and the raw METAR string for KDFW airport.

## 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/stabletravel-airport-weather-observations-metar-3c540ce0/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)
