{"uid":"cap_AVVa9YiXzR8HTg09l3MTk","slug":"stabletravel-dev-eb4a8ee1","name":"FlightAware Airport Delays – MAD (Madrid)","description":"Get current delay information for a specific airport","url":"https://stabletravel.dev/api/flightaware/airports/MAD/delays","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"color":"green","airport":"LEMD","reasons":[],"category":"none","delay_secs":0}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yDTE5UNcx_oL7XjZcNcoP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current delay information for Madrid Barajas Airport (MAD/LEMD), including delay severity, categories, and delay durations.","exampleAgentPrompt":"Are there any current delays at Madrid Barajas airport, and if so what's causing them?","exampleUseCases":[{"title":"Flight booking delay check for travelers","prompt":"Before I book a flight to Madrid tomorrow, can you tell me if there are any delays happening at Madrid Barajas right now and how serious they are?"},{"title":"Real-time airport status for ground crews","prompt":"We need to know the current delay situation at MAD airport, including what's causing the delays and how long they might last, so we can schedule our ground operations accordingly."},{"title":"Customer support delay notifications","prompt":"A passenger just called asking if delays at Madrid Barajas will affect their connection. Can you check what the delay status is right now and let me know how bad it is?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:48:49.281Z","isFirstParty":false}