# Get airport departures or arrivals (v1)

One page of 100 flights from an airport's departures or arrivals board, with status, times, gates, aircraft and the other airport. `data` is null for an unknown code.

- Platform: Flightradar24
- Request: `GET https://api.toolzerhub.com/v1/flightradar24/airport/schedule`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/flightradar24/airports/get-flightradar24-airport-schedule

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `airport` | query | yes | string | IATA or ICAO airport code such as LHR or EGLL, or the airport's flightradar24.com link. Find a code by name with the Search endpoint. |
| `direction` | query | no | enum: departures, arrivals | departures or arrivals board. Default: departures. |
| `page` | query | no | integer | Page of 100 flights. 1, 2, … run forward from now; -1, -2, … run back through earlier flights. max_page counts pages in the direction you asked for; past it, flights is empty and stop_reason is past_last_page. Default: 1. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/flightradar24/airport/schedule?airport=<airport>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
