---
title: "Get an image of a flight's track on a map"
method: GET
path: "/flights/{id}/map"
tags: ["flights"]
---

# Get an image of a flight's track on a map

`GET /flights/{id}/map`

## Request

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

Returns a flight's track as a base64-encoded image. Image can contain a
variety of additional data layers beyond just the track. Data from up to 10 days
ago can be obtained. If looking for older data, please use the corresponding
historical endpoint.

## Path parameters

- `id` string, required

## Query parameters

- `height` integer
- `width` integer
- `layer_on` string[]
- `layer_off` string[]
- `show_data_block` boolean
- `airports_expand_view` boolean
- `show_airports` boolean
- `bounding_box` number[]

## Response `200`

OK

- object
  - `map` string, byte, required

## Other responses

- `400`: Incorrect parameter (id). Id may be missing or may not be fa_flight_id format. Bounding box corners may be incorrectly defined.

---

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