---
title: "Get routes between 2 airports"
method: GET
path: "/airports/{id}/routes/{dest_id}"
tags: ["airports"]
---

# Get routes between 2 airports

`GET /airports/{id}/routes/{dest_id}`

## Request

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

Returns information about assigned IFR routings between two airports.

## Path parameters

- `id` string, required
- `dest_id` string, required

## Query parameters

- `sort_by` 'count' | 'last_departure_time'
- `max_file_age` string
- `max_pages` integer
- `cursor` string

## Response `200`

OK

- object
  - `links` object, nullable, required: Object containing links to related resources.
    - `next` string, uri-reference, required: A link to the next set of records in a collection.
  - `num_pages` integer, required: Number of pages returned
  - `routes` object[], required
    - `aircraft_types` string[], required: List of aircraft types that have filed this route
    - `count` integer, required: The number of flights with this filed route
    - `filed_altitude_max` integer, required: The highest altitude filed for the route (hundreds of feet)
    - `filed_altitude_min` integer, required: The lowest altitude filed for the route (hundreds of feet)
    - `last_departure_time` string, date-time, required: The latest departure time for a flight operating on this route
    - `route` string, required: The IFR route assigned
    - `route_distance` string, required: The distance as filed for the route. May vary from the actual distance flown. Includes units in string.

## Other responses

- `400`: Incorrect parameter(s). Id and dest_id must be valid airport codes and cannot be empty. Max_file_age must be one of the specified values.

---

[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)
