---
title: "Get flight counts for an airport"
method: GET
path: "/airports/{id}/flights/counts"
tags: ["airports"]
---

# Get flight counts for an airport

`GET /airports/{id}/flights/counts`

## Request

- Base URL: `https://aeroapi.flightaware.com/aeroapi`
- URL: `https://aeroapi.flightaware.com/aeroapi/airports/{id}/flights/counts`
- Auth: API key in header `x-apikey`
- TypeScript: <https://skmtc.dev/flightaware/apis/aeroapi/docs/airports/:id/flights/counts/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns counts of flights for an airport broken down by flight status.
The returned categories are subtly different from what is returned from
the `/airports/{id}/flights` endpoints. Specifically, this operation
does not include completed flights in its counts, and it does not count
cancelled/diverted flights. It also does not strictly bound the time
for which scheduled flights are counted, so all future flights that
FlightAware knows about are included in the counts. See the response
schema and documentation for the airport flights endpoints for more
information.

## Path parameters

- `id` string, required

## Response `200`

OK

- object: None of the counts include cancellations.
  - `departed` integer, required: Number of flights that have departed the airport and are currently airborne.
  - `enroute` integer, required: Number of flights that are currently bound for the airport.
  - `scheduled_arrivals` integer, required: Number of flights that have not yet departed but are scheduled to arrive at the airport.
  - `scheduled_departures` integer, required: Number of flights that are scheduled to depart from the airport.

## Other responses

- `400`: Incorrect parameter (id). Id must be a valid airport code and cannot be empty.

---

[API](https://skmtc.dev/flightaware/apis/aeroapi.md) - [All operations](https://skmtc.dev/flightaware/apis/aeroapi/llms.txt) - [OpenAPI document](https://skmtc.dev/flightaware/apis/aeroapi/revisions/3023e7a0c54c?raw)
