---
type: "firecrawl-provider"
description: "Flights that landed at the airport, newest landing first, under arrivals, with num_pages and next_cursor."
use_when: "List flights that have landed at an airport, newest first, with scheduled and actual times, delay and gate. Covers the last 24 hours unless start and end say otherwise. Only flights that landed here are listed: one diverted to another airport is absent, and so is a cancelled one, so this list cannot count the flights diverted away from an airport. A diversion shows only on the flight itself: look the flight number up with flights/status. Flights still on their way are in airports/scheduled-arrivals. 3 Firecrawl credits per result set of up to 15 flights; a query that matches nothing is still one result set."
pricing: "3 credits per result set"
options: 7
---
# FlightAware: Recent arrivals

Flights that landed at the airport, newest landing first, under arrivals, with num_pages and next_cursor.

## Agent instructions

List flights that have landed at an airport, newest first, with scheduled and actual times, delay and gate. Covers the last 24 hours unless start and end say otherwise. Only flights that landed here are listed: one diverted to another airport is absent, and so is a cancelled one, so this list cannot count the flights diverted away from an airport. A diversion shows only on the flight itself: look the flight number up with flights/status. Flights still on their way are in airports/scheduled-arrivals. 3 Firecrawl credits per result set of up to 15 flights; a query that matches nothing is still one result set.

Pricing: 3 Firecrawl credits per result set returned. A result set is a page of up to 15 flights; max_pages bounds how many one call fetches. An error costs nothing.

- 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/arrivals`
- Cost: 3 credits per result set

## 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>`
- `start` (string): Start of the window, inclusive. ISO 8601 date or date and time, no more than 10 days back or 2 days ahead. A bare date means 00:00 UTC. Example: `<start>`
- `end` (string): End of the window, exclusive. ISO 8601 date or date and time, no more than 10 days back or 2 days ahead. A bare date means 00:00 UTC. Example: `<end>`
- `airline` (string): Only this airline's flights, by ICAO or IATA code such as UAL. Not with type. Example: `<airline>`
- `type` (string): Only airline flights or only general aviation. Not with airline. Example: `Airline`
- `max_pages` (number): Result sets to fetch in this call, from 1 to 10. One result set is up to 15 flights and is billed on its own. Defaults to 1. Example: `1`
- `cursor` (string): next_cursor from the previous answer, to continue the same list. Omit it for the first page. Example: `<cursor>`

## Request shape

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

```json
{
  "provider": "flightaware",
  "capability": "airports/arrivals",
  "options": {
    "id": "<id>",
    "max_pages": 1
  }
}
```

### JavaScript

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

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "flightaware",
  "capability": "airports/arrivals",
  "options": {
    "id": "<id>",
    "max_pages": 1
  }
})
```

### 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/arrivals",
    "options": {
      "id": "<id>",
      "max_pages": 1
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'flightaware/airports/arrivals' \
  --options '{"id":"<id>","max_pages":1}'
```


## Response data

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

```json
{
  "arrivals": [
    {
      "ident": "<ident>",
      "ident_icao": "<ident_icao>",
      "ident_iata": "<ident_iata>",
      "fa_flight_id": "<fa_flight_id>",
      "operator": "<operator>",
      "flight_number": "<flight_number>",
      "registration": "<registration>",
      "status": "<status>",
      "cancelled": false,
      "diverted": false,
      "origin": {},
      "destination": {},
      "departure_delay": 0,
      "arrival_delay": 0,
      "scheduled_out": "<scheduled_out>",
      "scheduled_in": "<scheduled_in>",
      "actual_on": "<actual_on>",
      "progress_percent": 0,
      "aircraft_type": "<aircraft_type>",
      "gate_origin": "<gate_origin>",
      "gate_destination": "<gate_destination>",
      "terminal_origin": "<terminal_origin>",
      "terminal_destination": "<terminal_destination>",
      "baggage_claim": "<baggage_claim>",
      "type": "<type>"
    }
  ]
}
```

## Explore other popular capabilities

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

- [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.
- [Airport delays](https://alexandria.firecrawl.dev/agents/providers/flightaware/airports/delays): The airport-wide delay in effect, if any. An airport with no delay program answers with an empty reasons list. Single flights can still be late without one.