---
type: "firecrawl-provider"
description: "Live airport arrivals and departures with flight status, airport delay figures, and the status of one flight."
use_when: "An airport's arrivals and departures with live status, and its current delay level.\n\nOne flight's status on a date, and flight numbers that start with a search term."
categories: "Travel"
capabilities: 5
credits_per_call: "2-5"
---
# AeroDataBox on Firecrawl Alexandria

Live airport arrivals and departures with flight status, airport delay figures, and the status of one flight.

- Categories: Travel
- Category index: [Travel category](https://alexandria.firecrawl.dev/agents/categories/travel)
- Provider key: `aerodatabox`
- Access: Firecrawl credits
- Cost: 2–5 credits per call

## More

- [Human guide](https://www.firecrawl.dev/app/alexandria/aerodatabox)
- [OpenAPI spec](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/openapi.json)

## Capabilities

- [Airport arrivals and departures](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/airports/flights): The airport's arrivals and departures in the window, and statusCounts. A flight that diverted is listed with status Diverted under the airport it was scheduled into; neither this response nor flights/status names the airport it landed at. Diverted is the state at the moment of the call, not a record of the day: once a diverted flight reaches the airport its row turns to Arrived or is replaced by a row for the onward leg, and a flight that returned to its origin may never be marked. So count Diverted while the disruption is on, and do not read a later, lower count as fewer diversions. A runwayTime or gate on a Diverted or Canceled row is an estimate, not proof of a landing. Live times and statuses exist only for airports with live coverage; elsewhere flights carry scheduled times and status Unknown or Expected. An airport with no flights in the window answers two empty lists.
- [Airport arrivals and departures now](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/airports/flights-now): The airport's arrivals and departures in the window, and statusCounts. A flight that diverted is listed with status Diverted under the airport it was scheduled into; neither this response nor flights/status names the airport it landed at. Diverted is the state at the moment of the call, not a record of the day: once a diverted flight reaches the airport its row turns to Arrived or is replaced by a row for the onward leg, and a flight that returned to its origin may never be marked. So count Diverted while the disruption is on, and do not read a later, lower count as fewer diversions. A runwayTime or gate on a Diverted or Canceled row is an estimate, not proof of a landing. Live times and statuses exist only for airports with live coverage; elsewhere flights carry scheduled times and status Unknown or Expected. An airport with no flights in the window answers two empty lists.
- [Airport delays now](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/airports/delays): Delay figures for the two hours before now. Only airports with live coverage have them.
- [Flight status](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/flights/status): The flights flown under that number on that date, usually one; a number with several legs returns one entry per leg. A flight nobody has on record returns an empty list. A diverted flight keeps the airport it was scheduled into as its arrival and the airport it landed at is not named; an onward leg from that airport can appear as a second entry, and the status turns to Arrived once the flight gets there. Check each movement's quality: without Live the times are the schedule only.
- [Flight number search](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/flights/search): Known flight numbers that start with q. No match returns an empty list.

## 1. Choose this provider when

An airport's arrivals and departures with live status, and its current delay level.

One flight's status on a date, and flight numbers that start with a search term.

## 2. Minimal request

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: { provider, capability, options } }`. For a batch, send `{ alexandria: [...] }` with up to 10 calls.

```json
{
  "provider": "aerodatabox",
  "capability": "airports/flights",
  "options": {
    "code": "<code>",
    "fromLocal": "<fromLocal>",
    "toLocal": "<toLocal>"
  }
}
```

## 3. Add provider options

Use only the options needed for the task:

- `code` (string, required): Airport code: 3-character IATA (SFO) or 4-character ICAO (KSFO). Example: `<code>`
- `codeType` (string): Which kind of code is sent. Omit it: three characters is read as IATA and four as ICAO. Example: `iata`
- `fromLocal` (string, required): Start of the window in the airport's local time, as YYYY-MM-DDTHH:mm. Example: `<fromLocal>`
- `toLocal` (string, required): End of the window in the airport's local time, as YYYY-MM-DDTHH:mm. At most 12 hours after fromLocal. Example: `<toLocal>`
- `direction` (string): Arrival, Departure, or Both (the default). Example: `Arrival`
- `withLeg` (boolean): When true, each flight has departure and arrival, both ends of the leg, in place of movement. Use it to see where an arrival came from and where it was due. Default false. Example: `false`
- `withCancelled` (boolean): Include Canceled, CanceledUncertain and Diverted flights. Default true; false drops them. Example: `false`
- `withCodeshared` (boolean): Include code-share flight numbers. Default true, so one aircraft can appear under several numbers. Send false to count each operated flight once. Example: `false`
- `withCargo` (boolean): Include cargo flights. Default true. Example: `false`
- `withPrivate` (boolean): Include private flights. Default true. Example: `false`
- `withLocation` (boolean): Add the present position, altitude and speed of flights in the air, when known. Default false. Example: `false`

## 4. Request through your preferred interface

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "aerodatabox",
    capability: "airports/flights",
    options: {
      code: "<code>",
      fromLocal: "<fromLocal>",
      toLocal: "<toLocal>",
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "aerodatabox",
  "capability": "airports/flights",
  "options": {
    "code": "<code>",
    "fromLocal": "<fromLocal>",
    "toLocal": "<toLocal>"
  }
})
```

### cURL

```sh
curl https://api.firecrawl.dev/v2/scrape \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "alexandria": {
    "provider": "aerodatabox",
    "capability": "airports/flights",
    "options": {
      "code": "<code>",
      "fromLocal": "<fromLocal>",
      "toLocal": "<toLocal>"
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'aerodatabox/airports/flights' \
  --options '{"code":"<code>","fromLocal":"<fromLocal>","toLocal":"<toLocal>"}'
```


### MCP

Call the FCX MCP retrieve tool with this object:

```json
{
  "provider": "aerodatabox",
  "capability": "airports/flights",
  "options": {
    "code": "<code>",
    "fromLocal": "<fromLocal>",
    "toLocal": "<toLocal>"
  }
}
```

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "aerodatabox",
  "capability": "airports/flights",
  "options": {
    "code": "<code>",
    "fromLocal": "<fromLocal>",
    "toLocal": "<toLocal>"
  }
}
```

## 6. Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. This example shows the provider payload in `data`:

```json
{
  "arrivals": [],
  "departures": [],
  "statusCounts": {}
}
```

## API reference-derived contract

The following capability contract is generated from the same normalized Alexandria API reference exposed in the API spec.

### Airport arrivals and departures

- Capability: `airports/flights`
- Description: The airport's arrivals and departures in the window, and statusCounts. A flight that diverted is listed with status Diverted under the airport it was scheduled into; neither this response nor flights/status names the airport it landed at. Diverted is the state at the moment of the call, not a record of the day: once a diverted flight reaches the airport its row turns to Arrived or is replaced by a row for the onward leg, and a flight that returned to its origin may never be marked. So count Diverted while the disruption is on, and do not read a later, lower count as fewer diversions. A runwayTime or gate on a Diverted or Canceled row is an estimate, not proof of a landing. Live times and statuses exist only for airports with live coverage; elsewhere flights carry scheduled times and status Unknown or Expected. An airport with no flights in the window answers two empty lists.
- Instructions: List the flights arriving at or departing from one airport in a window of local time, each with its status: delayed, cancelled, diverted, arrived and so on. Answers "how many flights into SFO were diverted or cancelled today" from statusCounts. A window is at most 12 hours, so a whole day is two calls. 2 Firecrawl credits per call.
- Cost: 2 credits per call
- Capability file: [Airport arrivals and departures](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/airports/flights)

Accepted options:
- `code` (string, required): Airport code: 3-character IATA (SFO) or 4-character ICAO (KSFO). Example: `<code>`
- `codeType` (string): Which kind of code is sent. Omit it: three characters is read as IATA and four as ICAO. Example: `iata`
- `fromLocal` (string, required): Start of the window in the airport's local time, as YYYY-MM-DDTHH:mm. Example: `<fromLocal>`
- `toLocal` (string, required): End of the window in the airport's local time, as YYYY-MM-DDTHH:mm. At most 12 hours after fromLocal. Example: `<toLocal>`
- `direction` (string): Arrival, Departure, or Both (the default). Example: `Arrival`
- `withLeg` (boolean): When true, each flight has departure and arrival, both ends of the leg, in place of movement. Use it to see where an arrival came from and where it was due. Default false. Example: `false`
- `withCancelled` (boolean): Include Canceled, CanceledUncertain and Diverted flights. Default true; false drops them. Example: `false`
- `withCodeshared` (boolean): Include code-share flight numbers. Default true, so one aircraft can appear under several numbers. Send false to count each operated flight once. Example: `false`
- `withCargo` (boolean): Include cargo flights. Default true. Example: `false`
- `withPrivate` (boolean): Include private flights. Default true. Example: `false`
- `withLocation` (boolean): Add the present position, altitude and speed of flights in the air, when known. Default false. Example: `false`

Response schema example:
```json
{
  "arrivals": [],
  "departures": [],
  "statusCounts": {}
}
```

### Airport arrivals and departures now

- Capability: `airports/flights-now`
- Description: The airport's arrivals and departures in the window, and statusCounts. A flight that diverted is listed with status Diverted under the airport it was scheduled into; neither this response nor flights/status names the airport it landed at. Diverted is the state at the moment of the call, not a record of the day: once a diverted flight reaches the airport its row turns to Arrived or is replaced by a row for the onward leg, and a flight that returned to its origin may never be marked. So count Diverted while the disruption is on, and do not read a later, lower count as fewer diversions. A runwayTime or gate on a Diverted or Canceled row is an estimate, not proof of a landing. Live times and statuses exist only for airports with live coverage; elsewhere flights carry scheduled times and status Unknown or Expected. An airport with no flights in the window answers two empty lists.
- Instructions: List the flights arriving at or departing from one airport around the present moment, each with its status, without working out the airport's local time. By default the window runs from two hours ago to ten hours ahead. Use airports/flights for a set time range. 2 Firecrawl credits per call.
- Cost: 2 credits per call
- Capability file: [Airport arrivals and departures now](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/airports/flights-now)

Accepted options:
- `code` (string, required): Airport code: 3-character IATA (SFO) or 4-character ICAO (KSFO). Example: `<code>`
- `codeType` (string): Which kind of code is sent. Omit it: three characters is read as IATA and four as ICAO. Example: `iata`
- `offsetMinutes` (number): Start of the window in minutes from the current time at the airport. Negative looks back. Default -120. Example: `10`
- `durationMinutes` (number): Length of the window in minutes, from 1 to 720. Default 720. Example: `10`
- `direction` (string): Arrival, Departure, or Both (the default). Example: `Arrival`
- `withLeg` (boolean): When true, each flight has departure and arrival, both ends of the leg, in place of movement. Use it to see where an arrival came from and where it was due. Default false. Example: `false`
- `withCancelled` (boolean): Include Canceled, CanceledUncertain and Diverted flights. Default true; false drops them. Example: `false`
- `withCodeshared` (boolean): Include code-share flight numbers. Default true, so one aircraft can appear under several numbers. Send false to count each operated flight once. Example: `false`
- `withCargo` (boolean): Include cargo flights. Default true. Example: `false`
- `withPrivate` (boolean): Include private flights. Default true. Example: `false`
- `withLocation` (boolean): Add the present position, altitude and speed of flights in the air, when known. Default false. Example: `false`

Response schema example:
```json
{
  "arrivals": [],
  "departures": [],
  "statusCounts": {}
}
```

### Airport delays now

- Capability: `airports/delays`
- Description: Delay figures for the two hours before now. Only airports with live coverage have them.
- Instructions: Read how one airport is doing right now as figures: the median delay, a delay index from 0 to 5, and how many flights were cancelled, for arrivals and for departures over the last two hours. It does not list flights or count diversions; use airports/flights for those. 5 Firecrawl credits per call.
- Cost: 5 credits per call
- Capability file: [Airport delays now](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/airports/delays)

Accepted options:
- `code` (string, required): Airport code: 3-character IATA (SFO) or 4-character ICAO (KSFO). Example: `<code>`
- `codeType` (string): Which kind of code is sent. Omit it: three characters is read as IATA and four as ICAO. Example: `iata`

Response schema example:
```json
{
  "airportIcao": "<airportIcao>",
  "from": {},
  "to": {},
  "arrivalsDelayInformation": {},
  "departuresDelayInformation": {}
}
```

### Flight status

- Capability: `flights/status`
- Description: The flights flown under that number on that date, usually one; a number with several legs returns one entry per leg. A flight nobody has on record returns an empty list. A diverted flight keeps the airport it was scheduled into as its arrival and the airport it landed at is not named; an onward leg from that airport can appear as a second entry, and the status turns to Arrived once the flight gets there. Check each movement's quality: without Live the times are the schedule only.
- Instructions: Get the status of one flight on one date from its flight number: scheduled, revised and runway times at both airports, terminal and gate, the aircraft, and whether it is delayed, cancelled or diverted. 2 Firecrawl credits per call.
- Cost: 2 credits per call
- Capability file: [Flight status](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/flights/status)

Accepted options:
- `searchParam` (string, required): The flight number, such as UA300 or UAL300. With another searchBy: the ATC call-sign, the tail number, or the Mode-S address. Example: `<searchParam>`
- `dateLocal` (string, required): Local date of departure or arrival, as YYYY-MM-DD. Example: `<dateLocal>`
- `searchBy` (string): What searchParam is: number (the default), callsign, reg (tail number), or icao24 (Mode-S address). Example: `number`
- `dateLocalRole` (string): Whether dateLocal is the departure date, the arrival date, or either (Both, the default). Example: `Both`
- `withLocation` (boolean): Add the present position, altitude and speed when the flight is in the air. Default false. Example: `false`
- `withAircraftImage` (boolean): Add a photo of the aircraft when one is found. Default false. Example: `false`

Response schema example:
```json
[
  {
    "number": "<number>",
    "callSign": "<callSign>",
    "status": "<status>",
    "codeshareStatus": "<codeshareStatus>",
    "isCargo": false,
    "departure": {},
    "arrival": {},
    "airline": {},
    "aircraft": {},
    "greatCircleDistance": {},
    "lastUpdatedUtc": "<lastUpdatedUtc>"
  }
]
```

### Flight number search

- Capability: `flights/search`
- Description: Known flight numbers that start with q. No match returns an empty list.
- Instructions: Find flight numbers that start with some characters, to confirm a number exists before asking for its status. It returns numbers only, with no status. 2 Firecrawl credits per call.
- Cost: 2 credits per call
- Capability file: [Flight number search](https://alexandria.firecrawl.dev/agents/providers/aerodatabox/flights/search)

Accepted options:
- `q` (string, required): Start of a flight number, at least 2 characters, such as UA3. Example: `<q>`
- `limit` (number): Most flight numbers to return, from 1 to 100. Default 10. Example: `10`

Response schema example:
```json
{
  "items": [
    {
      "number": "<number>"
    }
  ]
}
```
