# GET /airport/status: $0.002 per call

Live US airport delays from the FAA: ground delay programs (average and maximum delay), ground stops, arrival and departure delays with trend, and closures, with the reason. Pass ?airport=SFO (3-letter FAA code), or no airport for every affected airport. US airports only; not individual flight status.

- **Price:** $0.002 in USDC, the same on Base, Solana, Polygon, Arbitrum. Failed calls are never charged.
- **Free trial:** yes, 20 free calls a day from Claude, Cursor or any MCP client ([set-up](/mcp/setup)).
- **Answers cached for:** 2 min
- **Data sources:** FAA NAS Status (free, US public domain)
- **Lane:** Time, holidays & weather ([OpenAPI](/openapi/world.json))
- **Live health:** [status page](/status)

## Free sample

See an answer for the demo input first, free (no payment, 10 a minute): [https://aayatai.com/sample/airport-status](/sample/airport-status). It is a stored real answer when we have one, otherwise an example marked `"kind": "illustrative"`.

```bash
curl "https://aayatai.com/sample/airport-status"
```

## 1. See the price (free)

Call it without paying: you get `402 Payment Required` and a `PAYMENT-REQUIRED` header with the exact price and where to pay.

```bash
curl -i "https://aayatai.com/airport/status?airport=SAN"
```

## 2. Pay and call (TypeScript)

```bash
npm install @x402/fetch @x402/evm viem
```

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet used only by your agent, holding a little USDC on Base.
const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://aayatai.com/airport/status?airport=SAN");
console.log(await res.json());
```

## 3. Or as an MCP tool

```ts
// MCP server: https://aayatai.com/mcp (Streamable HTTP). With the x402 MCP client (see /start):
const result = await client.callTool("airport-status", {"airport":"SAN"});
```

## Inputs

- `airport` (string): FAA/IATA airport code, e.g. SFO, JFK, ORD (K prefix allowed: KSFO). Leave out for all.

Bad inputs are rejected with HTTP 400 before any payment is asked for.

## Example answer

Example only: the shape of an answer, with placeholder addresses and made-up figures. It is not data about any real token or wallet; call the service (or its free sample) for real results.

```json
{
  "airport": "SAN",
  "status": "delays",
  "events": [
    {
      "airport": "SAN",
      "type": "Airport Closures",
      "reason": "SAN 03/071 SAN AD AP CLSD TO NON SKED TRANSIENT GA ACFT EXC PPR 619-298-7704 2603181300-2610010800",
      "details": {
        "Start": "Mar 18 at 13:00 UTC.",
        "Reopen": "Oct 01 at 08:00 UTC."
      }
    }
  ],
  "airportsAffected": [
    "ASE",
    "LAX",
    "SAN"
  ],
  "updatedAt": "2026-09-29T09:56:14.000Z",
  "note": "What the FAA lists right now for US airports. A closure notice may cover only some traffic (e.g. private flights); read the reason.",
  "source": "FAA NAS Status (nasstatus.faa.gov), US public domain"
}
```

## Related

- [GET /time/convert](/services/time-convert) ($0.001): Convert a date and time between time zones, daylight saving handled.
- [GET /holidays](/services/holidays) ($0.002): Public holidays for 38 countries (most of Europe, UK by nation, US federal, Brazil, Mexico, South Africa) with regional holidays (e.g.
- [GET /weather](/services/weather) ($0.002): Weather now and forecast for any latitude/longitude on Earth: temperature, feels-like, wind, humidity, cloud, pressure, rain next hour, the next 12 hours, and d
- [GET /postcode/lookup](/services/postcode-lookup) ($0.001): Postal code to place name, region and latitude/longitude in about 60 countries (US ZIP codes, UK postcodes, Canada, Germany, France, India, Japan, Australia...)
- [GET /earthquakes](/services/earthquakes) ($0.002): Recent earthquakes near any point on Earth from the US Geological Survey: magnitude, place, time, depth, felt reports, tsunami flag and a link, newest first.
- [GET /business-hours](/services/business-hours) ($0.001): Is a business open now (or at a given time), and when does it next open or close?

New here? [Getting started in 60 seconds](/start). All services: [Aayat AI](/).