GET /v1/aviation/delay-risk/{iata}$0.02realtimetier: datacache 1800sEngine B — Weather Intelligence
Next-24h delay risk for a top-100 US airport, scored per 6-hour block from forecast wind gusts, convective potential, winter and sustained precipitation, and heavy cloud cover, with the drivers named and a one-line verdict.
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
iata | path | string | yes |
curl "https://x402-factory.com/v1/aviation/delay-risk/BNA"
{
"data": {
"blocks": [
{
"window_start": "2026-07-18T12:00:00.000Z",
"window_end": "2026-07-18T17:00:00.000Z",
"risk_score": 0.34,
"drivers": [
"thunderstorm_potential"
]
},
{
"window_start": "2026-07-18T18:00:00.000Z",
"window_end": "2026-07-18T23:00:00.000Z",
"risk_score": 0.04,
"drivers": []
},
{
"window_start": "2026-07-19T00:00:00.000Z",
"window_end": "2026-07-19T05:00:00.000Z",
"risk_score": 0.49,
"drivers": [
"thunderstorm_potential",
"sustained_precip"
]
},
{
"window_start": "2026-07-19T06:00:00.000Z",
"window_end": "2026-07-19T11:00:00.000Z",
"risk_score": 0.04,
"drivers": []
}
],
"verdict": "Moderate delay risk at BNA; pad connections by an hour."
},
"meta": {
"endpoint": "/v1/aviation/delay-risk/{iata}",
"version": "1.0.0",
"generated_at": "2026-08-18T22:54:16.971Z",
"freshness": "realtime",
"sources": [
"stub-model"
],
"request_id": "req_00000000",
"docs": "https://x402-factory.com/docs/weather.aviation-delay-risk",
"data_mode": "live"
}
}data payload){
"type": "object",
"properties": {
"blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"window_start": {
"type": "string"
},
"window_end": {
"type": "string"
},
"risk_score": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"drivers": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"window_start",
"window_end",
"risk_score",
"drivers"
],
"additionalProperties": false
}
},
"verdict": {
"type": "string"
}
},
"required": [
"blocks",
"verdict"
],
"additionalProperties": false
}
The platform wraps every payload in an envelope: { "data": …, "meta": { endpoint, version, generated_at, freshness, sources, request_id, docs, data_mode } }.
Unpaid requests receive 402 with payment requirements (accepts). Pay $0.02 in USDC on Base per call via an X-PAYMENT header — see docs.x402.org. With PAYMENT_MODE=disabled (local dev) the endpoint is open.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMS | Input failed validation; message lists the offending fields. |
| 404 | NOT_FOUND | No matching resource; suggestion may point to a sibling endpoint. |
| 410 | RESOLVED | Market/event settled; body includes a resolution summary. |
| 503 | STALE_DATA | Upstream feed down; stale data is never silently served beyond 2× cache TTL. |
| 500 | INTERNAL | Our bug. The request_id helps us find it. |