# BRAINIAC Airport Connection Risk Calculator

> BRAINIAC Airport Connection Risk Calculator is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-12).

Calculates the risk of missing flight connections at airports based on inbound/outbound flight schedules, minimum connect times, and actual or scheduled arrival/departure data.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/aviation-intelligence/airport-connection-risk-calculate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-airport-connection-risk-calculator-9af3152f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DC53ZJwkCkcFsKdroxPUd

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 brainiac-airport-connection-risk-calculator-9af3152f -d '<json body>'
```

Example prompt: I have two flights — BA100 arriving at JFK at 10:00am and BA117 departing JFK at 11:20am, with a minimum connect time of 90 minutes. Can you calculate whether I'll make that connection and how many minutes of slack I have?

## When to prefer this

Use this endpoint when you need a lightweight, no-account, pay-per-call connection risk calculation using caller-supplied flight data only — no API key or airline system access required. It is ideal for travel agents, itinerary builders, or operations tools that already have structured flight schedule data and want fast, low-cost connection feasibility analysis. Prefer alternatives if you need live flight tracking data, as this endpoint uses only caller-supplied times and free OpenSky metadata.

## Known failure modes

- Missing required connection pair fields (origin, destination, times) returns a validation error
- Negative slack minutes indicates a missed connection — not an API error but a computed risk outcome
- If no flights array is supplied the endpoint cannot calculate connections and returns empty results
- Truncated or malformed base64 file input may cause parsing failure
- Exceeding maxItems (5000 flights) will cause a schema validation rejection
- asOf date mismatch with supplied times may produce unexpected expiry or timing comparisons

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a list of connection assessments, each with a risk status (e.g. 'missed', 'tight', 'safe'), slack minutes (positive or negative), inbound and outbound flight identifiers, and minimum connect time used. Also returns a findings array with coded conflict details, a summary of high-risk connection count, flags indicating whether paid tracking or authenticated airline systems were used (always false for this endpoint), and a list of limitations about data sources.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "flights": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "seats": {
      "type": "number",
      "maximum": 1000,
      "minimum": 0
     },
     "origin": {
      "type": "string",
      "maxLength": 8
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "status": {
      "type": "string",
      "maxLength": 80
     },
     "airline": {
      "type": "string",
      "maxLength": 120
     },
     "distanceKm": {
      "type": "number",
      "maximum": 40000,
      "minimum": 0
     },
     "fuelBurnKg": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     },
     "passengers": {
      "type": "number",
      "maximum": 1000,
      "minimum": 0
     },
     "airlineIata": {
      "type": "string",
      "maxLength": 8
     },
     "destination": {
      "type": "string",
      "maxLength": 8
     },
     "aircraftType": {
      "type": "string",

… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "C1",
    "risk": "missed",
    "source": "Caller-supplied",
    "airport": "JFK",
    "slackMinutes": -10,
    "inboundFlightId": "F1",
    "outboundFlightId": "F2",
    "inboundFlightNumber": "BA100",
    "outboundFlightNumber": "BA117",
    "minimumConnectMinutes": 90,
    "paidFlightTrackingUsed": false,
    "availableConnectMinutes": 80
   }
  ],
  "status": "calculated",
  "findings": [
   {
    "code": "connection_risk",
    "kind": "conflict",
    "detail": "Connection slack -10 minutes is missed.",
    "subject": "C1"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Flight schedules, diversions, registrations, maintenance logs, documents, ground times, emission factors, and connections are copied only from labeled fields supplied by the caller, or from key-free OpenSky aircraft metadata when openSky.icao24 is requested.",
   "No paid flight-tracking API or authenticated airline system is used and no API key is required.",
   "Delay, connection, diversion, ground-time, and emissions results use only supplied times/distances/factors (or a small disclosed public-style CO2 factor table when no factor or fuel burn is supplied).",
   "Document expiry checks compare caller-supplied expiry dates to asOf only. Regulatory compliance is not determined.",
   "Operations reports aggregate only sections for which records were supplied or optionally fetched."
  ],
  "highRiskCount": 1,
  "apiKeyRequired": false,
  "openSkyFetched": false,
  "connectionCount": 1,
  "paidProviderUsed": false,
  "paidFlightTrackingUsed": false,
  "authenticatedAirlineSystemUsed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-airport-connection-risk-calculator-9af3152f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
