---
type: "firecrawl-provider"
description: "How many flights are in each live state at the airport. Completed, cancelled and diverted flights are not counted."
use_when: "Count the flights airborne to and from an airport and those still scheduled, right now. The dearest line, at 42 Firecrawl credits per call: use airports/disruptions (9 credits) for cancelled and delayed totals, or airports/delays (5 credits) for how the airport is doing."
credits_per_call: 42
options: 1
---
# FlightAware: Live flight counts

How many flights are in each live state at the airport. Completed, cancelled and diverted flights are not counted.

## Agent instructions

Count the flights airborne to and from an airport and those still scheduled, right now. The dearest line, at 42 Firecrawl credits per call: use airports/disruptions (9 credits) for cancelled and delayed totals, or airports/delays (5 credits) for how the airport is doing.

- Category file: [Travel category](https://alexandria.firecrawl.dev/agents/categories/travel)
- Provider file: [Provider guide](https://alexandria.firecrawl.dev/agents/providers/flightaware)
- Provider key: `flightaware`
- Capability: `airports/flight-counts`
- Cost: 42 credits per call

## Request options

- `id` (string, required): Airport code. ICAO is preferred (KSFO, EGLL); IATA (SFO) and FAA LID codes also work but can be ambiguous. Example: `<id>`

## Request shape

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: <request> }` and your Firecrawl API key.

```json
{
  "provider": "flightaware",
  "capability": "airports/flight-counts",
  "options": {
    "id": "<id>"
  }
}
```

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "flightaware",
    capability: "airports/flight-counts",
    options: {
      id: "<id>",
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "flightaware",
  "capability": "airports/flight-counts",
  "options": {
    "id": "<id>"
  }
})
```

### cURL

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

### CLI

```sh
firecrawl scrape 'flightaware/airports/flight-counts' \
  --options '{"id":"<id>"}'
```


## Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. These fields and the example below describe the provider payload in `data`.

```json
{
  "departed": 0,
  "enroute": 0,
  "scheduled_arrivals": 0,
  "scheduled_departures": 0
}
```

## Explore other popular capabilities

If this capability is not the best match, fetch only the relevant capability file:

- [Recent arrivals](https://alexandria.firecrawl.dev/agents/providers/flightaware/airports/arrivals): Flights that landed at the airport, newest landing first, under arrivals, with num_pages and next_cursor.
- [Recent departures](https://alexandria.firecrawl.dev/agents/providers/flightaware/airports/departures): Flights that departed the airport, newest takeoff first, under departures, with num_pages and next_cursor.
- [Expected arrivals](https://alexandria.firecrawl.dev/agents/providers/flightaware/airports/scheduled-arrivals): Flights expected at the airport, soonest estimated landing first, under scheduled_arrivals, with num_pages and next_cursor.
- [Upcoming departures](https://alexandria.firecrawl.dev/agents/providers/flightaware/airports/scheduled-departures): Flights due to depart the airport, soonest first, under scheduled_departures, with num_pages and next_cursor.
- [Airport board](https://alexandria.firecrawl.dev/agents/providers/flightaware/airports/board): Four lists, scheduled_arrivals, scheduled_departures, arrivals and departures, with num_pages and next_cursor.