---
type: "firecrawl-provider"
description: "Cancelled, delayed and total scheduled flights for the airport in the period. Diversions are not counted."
use_when: "Count how many of an airport's flights were cancelled or delayed today, yesterday, tomorrow or this week, out of how many were scheduled, in one call. Diversions are not in these counts: look up each flight by number with flights/status. 9 Firecrawl credits per call."
credits_per_call: 9
options: 3
---
# FlightAware: Cancellation and delay counts

Cancelled, delayed and total scheduled flights for the airport in the period. Diversions are not counted.

## Agent instructions

Count how many of an airport's flights were cancelled or delayed today, yesterday, tomorrow or this week, out of how many were scheduled, in one call. Diversions are not in these counts: look up each flight by number with flights/status. 9 Firecrawl credits per call.

- 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/disruptions`
- Cost: 9 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>`
- `entity_type` (string, required): origin counts flights leaving the airport; destination counts flights arriving at it. Example: `origin`
- `time_period` (string): Period to count over. Defaults to today. Example: `today`

## Request shape

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

```json
{
  "provider": "flightaware",
  "capability": "airports/disruptions",
  "options": {
    "id": "<id>",
    "entity_type": "origin",
    "time_period": "today"
  }
}
```

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "flightaware",
    capability: "airports/disruptions",
    options: {
      id: "<id>",
      entity_type: "origin",
      time_period: "today",
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "flightaware",
  "capability": "airports/disruptions",
  "options": {
    "id": "<id>",
    "entity_type": "origin",
    "time_period": "today"
  }
})
```

### 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/disruptions",
    "options": {
      "id": "<id>",
      "entity_type": "origin",
      "time_period": "today"
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'flightaware/airports/disruptions' \
  --options '{"id":"<id>","entity_type":"origin","time_period":"today"}'
```


## Response data

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

```json
{
  "cancellations": 0,
  "delays": 0,
  "total": 0,
  "entity_name": "<entity_name>",
  "entity_id": "<entity_id>"
}
```

## 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.