# Fanfare NBA Flight Search

> Fanfare NBA Flight Search is a paid API for AI agents from fanfare.run, paid per call via x402, $0.250000/call, status unknown (last checked 2026-09-14).

Search one-way economy flights to the nearest airport for any NBA team's home arena, returning price-sorted offers with carrier, times, and expiry.

## Facts

- Endpoint: GET https://fanfare.run/nba/flights
- Price: $0.250000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fanfare-593a52a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GclJV851MqIWUJJ9fOWIz

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 fanfare-593a52a5
```

Example prompt: Find me the cheapest one-way economy flights from JFK to the nearest airport for the Golden State Warriors home arena on March 15 for 2 passengers.

## When to prefer this

Use this endpoint when a user wants to travel to an NBA game and needs flight options routed to the arena's nearest airport. It abstracts away the need to know which airport serves a given NBA arena, and returns price-sorted economy offers via Duffel. Prefer this over generic flight search when the destination is defined by an NBA team rather than a city or airport code.

## Known failure modes

- Invalid or unsupported NBA teamId returns an error or empty results
- Unrecognized origin IATA code returns a validation error
- No available flights for the given date returns an empty offers array
- Past or invalid date format returns a 400 bad request
- Duffel upstream outage may cause 502 or timeout responses
- Offer expired by the time of booking — expiry timestamps must be respected

## How this service works

Search one-way economy flights to the nearest airport for any NBA team's home arena, powered by Duffel. Returns offers sorted by price with carrier, times, and expiry. Params: teamId, date (YYYY-MM-DD), origin (IATA code), passengers.

## Output

A list of one-way economy flight offers sorted by price, each with airline/carrier name, departure and arrival times, total price, and offer expiry timestamp — all routed to the nearest airport serving the specified NBA team's home arena.

## 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",
     "required": [
      "teamId",
      "date",
      "origin"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Departure date (YYYY-MM-DD)"
      },
      "origin": {
       "type": "string",
       "description": "Origin airport IATA code"
      },
      "teamId": {
       "type": "string",
       "description": "NBA team ID"
      },
      "passengers": {
       "type": "integer",
       "default": 1,
       "description": "Number of adult passengers"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fanfare-593a52a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fanfare.run](https://www.zero.xyz/host/fanfare.run/llms.txt)
