# FlightAware Airport Delays – MAD (Madrid)

> FlightAware Airport Delays – MAD (Madrid) is a paid API for AI agents from stabletravel.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns current delay information for Madrid Barajas Airport (MAD/LEMD), including delay severity, categories, and delay durations.

## Facts

- Endpoint: GET https://stabletravel.dev/api/flightaware/airports/MAD/delays
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabletravel-dev-eb4a8ee1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AVVa9YiXzR8HTg09l3MTk

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-dev-eb4a8ee1
```

Example prompt: Are there any current delays at Madrid Barajas airport, and if so what's causing them?

## When to prefer this

Use this endpoint when you need real-time, structured delay data specifically for Madrid Barajas (MAD/LEMD) airport — especially when you need delay reason categories and severity color codes. Prefer this over a generic delays endpoint when you only need MAD and want a focused, low-latency single-airport response.

## Known failure modes

- Airport code not found or unsupported — may return empty or error response
- FlightAware upstream data unavailable — may return stale or error response
- Payment failure (x402) — returns 402 if USDC payment not provided
- Rate limiting — returns 429 if call quota exceeded

## How this service works

Get current delay information for a specific airport

## Output

Returns a JSON object with a color-coded severity indicator (e.g. green/yellow/red), the airport name and ICAO code (LEMD), an array of delay reasons each containing a category, count, delay duration in seconds, and color severity, and a top-level delay category and delay_secs value. A green status with empty reasons means no current delays.

## Example request

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

## 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": {},
     "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",
     "required": [
      "delays"
     ],
     "properties": {
      "delays": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "color": {
          "type": "string"
         },
         "airport": {
          "type": "string"
         },
         "reasons": {
          "type": "array",
          "items": {
           "type": "object",
           "properties": {
            "color": {
             "type": "string"
            },
            "count": {
             "type": "number"
            },
            "category": {
             "type": "string"
            },
            "delay_secs": {
             "type": "number"
            }
           },
           "additionalProperties": false
          }
         },
         "airport_code": {
          "type": "string"
         }
        },
        "additionalProperties": false
       }
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabletravel-dev-eb4a8ee1/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)
