---
title: "Flight data"
description: "Reports whether high-resolution, trajectory-specific flight data can be obtained for the given day."
---

> Documentation Index
> Fetch the complete documentation index at: https://aerostats.ch/llms.txt
> Use this file to discover all available pages before exploring further.

Path: AeroStats › Coverage

`GET /v1/coverage/flights`

Reports whether high-resolution, trajectory-specific flight data can be obtained for the given day.

## Authentication

- `CF-Access-Client-Id`, apiKey, in header, header `CF-Access-Client-Id`
- `CF-Access-Client-Secret`, apiKey, in header, header `CF-Access-Client-Secret`

## Query parameters

- `date` (`getFlightCoverage.query.date`; string, required) — Day to check, as YYYY-MM-DD.
  - format `date`; example `"2026-09-18"`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.aerostats.ch/v1/coverage/flights?date=2026-09-18' \
  --header 'CF-Access-Client-Id: <CF-Access-Client-Id>' \
  --header 'CF-Access-Client-Secret: <CF-Access-Client-Secret>'
```

### TypeScript

```typescript
const url = 'https://api.aerostats.ch/v1/coverage/flights?date=2026-09-18';
const options = {
  method: 'GET',
  headers: {'CF-Access-Client-Id': '<CF-Access-Client-Id>', 'CF-Access-Client-Secret': '<CF-Access-Client-Secret>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.aerostats.ch/v1/coverage/flights?date=2026-09-18"

headers = {
    "CF-Access-Client-Id": "<CF-Access-Client-Id>",
    "CF-Access-Client-Secret": "<CF-Access-Client-Secret>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The check completed.

#### Example

```json
{
  "date": "2026-09-18",
  "available": true
}
```

- `date` (`getFlightCoverage.response.200.date`; string, required) — The day that was checked.
  - format `date`; example `"2026-09-18"`
- `available` (`getFlightCoverage.response.200.available`; boolean, required) — True when flight data for that day can be obtained.
  - example `true`

### 400

The date is missing.

#### Example

```json
{
  "error": "date is required."
}
```

- `error` (`getFlightCoverage.response.400.error`; string, required) — What went wrong.

### 401

The credentials are missing or invalid. This answer comes from the
gateway in front of the API, and its body is an HTML page.

### 422

The date is not a day.

#### Example

```json
{
  "error": "date is not a day."
}
```

- `error` (`getFlightCoverage.response.422.error`; string, required) — What went wrong.


Source: https://aerostats.ch/api/get-flight-coverage/index.md
