---
title: "FlightStats API: airport departure, arrival boards as JSON"
description: "FlightStats API for airport departure and arrival boards, flight status by number and date, and airline or airport search. From 1 credit per successful call."
url: https://perceptlayer.com/apis/flightstats
---

[APIs](https://perceptlayer.com/apis) / [Travel](https://perceptlayer.com/verticals/travel) / FlightStats

1 credit per call 3 endpoints 3 datapoints 

# FlightStats API

FlightStats API for airport departure and arrival boards, flight status by number and date, and airline or airport search. From 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

FlightStats

GET /v1/flightstats/search?query=lufthansa&type=airline 

```
{
  "success": true,
  "data": {
    "query": "lufthansa",
    "type": "airline",
    "count": 4,
    "results": [
      {
        "code": "LH",
        "iata": "LH",
        "name": "Lufthansa"
      },
      {
        "code": "CL",
        "iata": "CL",
        "name": "Lufthansa CityLine"
      },
      {
        "code": "GEC",
        "iata": "GEC",
        "name": "Lufthansa Cargo"
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_9bb228ec01cd4a8bb2b1aa93f6f43aa9",
    "credits_charged": 1,
    "credits_remaining": 974
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | code string | iata string | name string |
| --- | --- | --- | --- |
| 1 | LH | LH | Lufthansa |
| 2 | CL | CL | Lufthansa CityLine |
| 3 | GEC | GEC | Lufthansa Cargo |

Recorded from our API · 3 items shown · 3 datapoints per item GET /v1/flightstats/search?query=lufthansa&type=airline

3 datapoints

### Identity

-   name string

### Other

-   code string
-   iata string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/flightstats/search?query=lufthansa&type=airline" \
  -H "X-API-Key: $API_KEY"
```

FlightStats · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/flightstats/airport`](https://perceptlayer.com/apis/flightstats/airport) | `iata` +7 optional | `mode` `date` `hour` `hours` `airport` `rows` | 2–12 credits |
| [GET `/v1/flightstats/flight`](https://perceptlayer.com/apis/flightstats/flight) | `carrier` `flight_number` `date` +1 optional | `date` `flight` | 1 credit |
| [GET `/v1/flightstats/search`](https://perceptlayer.com/apis/flightstats/search) | `query` `type` | `code` `iata` `name` | 1 credit |

Overview

## About the FlightStats API

## What you can get

The FlightStats API returns FlightStats airport boards, flight status and code lookups as JSON through 3 endpoints.

-   **Airport boards:** `airport` takes an `iata` code, with `mode` ( `departures` or `arrivals`), `date`, `hour`, `hours`, `carrier`, `limit` and `detail`.
-   **One flight:** `flight` takes a `carrier`, a `flight_number` and a `date`, with an optional `include`.
-   **Search:** `search` takes a `query` and a `type` ( `airline` or `airport`).

The recorded `airport` call for `FRA` departures on 2026-11-17, starting at `hour` 6 for 3 `hours`, returns a `total` of 53 flights. The `airport` object carries `iata`, `icao`, `name`, `city`, `country`, `timezone`, `latitude`, `longitude`, a `delay_index` (score 0, "Very Low" in that recording) and `weather`. Each of the `rows` has `flight_id`, `flight_date`, `carrier`, `flight_number`, `other_airport`, `scheduled_utc`, `scheduled_local` and `local_date`.

## How a call works

Find the airline code, then read the flight: `GET /v1/flightstats/search?query=lufthansa&type=airline`, with your key in the `X-API-Key` header, returns 4 `results`, each with `code`, `iata` and `name`; the first is `LH`. Pass that to `flight`, for example `GET /v1/flightstats/flight?carrier=LH&flight_number=400&date=2026-11-17`, which returns the flight's `status`, `departure`, `arrival`, `aircraft`, `duration` and `codeshares`. A board row gives you the same `carrier` and `flight_number` to look up. `search` and `flight` cost 1 credit each. An `airport` board with flights costs 2 credits, plus 1 for each row completed with `detail=true`, at most 10; an empty board costs nothing. Failed calls cost nothing.

Travel JSON REST MCP

### More travel APIs

[ADS-B History](https://perceptlayer.com/apis/adsb-history) [Agoda](https://perceptlayer.com/apis/agoda) [Airbnb](https://perceptlayer.com/apis/airbnb) [Airportia](https://perceptlayer.com/apis/airportia) [Bandsintown](https://perceptlayer.com/apis/bandsintown) [Booking.com](https://perceptlayer.com/apis/booking) [Economy Car Rentals](https://perceptlayer.com/apis/economy-car-rentals) [Eventbrite](https://perceptlayer.com/apis/eventbrite) [Eventim](https://perceptlayer.com/apis/eventim) [Expedia](https://perceptlayer.com/apis/expedia) [FlightAware](https://perceptlayer.com/apis/flightaware) [Flightradar24](https://perceptlayer.com/apis/flightradar24)

Use cases

### Watch departures or arrivals at an airport in a set time window

`Use the FlightStats API to watch departures or arrivals at an airport in a set time window` 

### Check whether a flight is delayed, cancelled or diverted

`Use the FlightStats API to check whether a flight is delayed, cancelled or diverted` 

### Follow airport delays and weather with \`delay\_index\` and \`weather\`

`` Use the FlightStats API to follow airport delays and weather with `delay_index` and `weather` `` 

### Filter a board to one airline with \`carrier\`

`` Use the FlightStats API to filter a board to one airline with `carrier` `` 

FAQ

## Questions

**How much does the FlightStats API cost?**

\`search\` and \`flight\` cost 1 credit per successful call. An \`airport\` board costs 2 credits when it has flights, plus 1 for each row completed with \`detail=true\`, up to 12 in total. An empty board costs nothing. New accounts get free credits to start, and credit packs bring the price down as you scale.

**What does a flight lookup return?**

The recorded lookup for \`LH\` 400 on 2026-11-17 returns its \`status\` (cancelled in that recording, with flags such as \`canceled\`, \`diverted\` and \`landed\`), \`departure\` and \`arrival\` with terminals, the departure gate and scheduled and estimated times, the \`aircraft\` type and tail number, and \`codeshares\`.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Do I need a FlightStats account?**

No. You call this FlightStats API with your Perceptlayer key in the \`X-API-Key\` header, with no FlightStats login.

**Is this the official FlightStats API?**

No. Perceptlayer is an independent service and is not affiliated with FlightStats. It returns FlightStats data as JSON with a Perceptlayer key, so there is no FlightStats developer account, app review or partner approval to get first. It only reads data: if FlightStats has an official API and you need to act on your own FlightStats account, such as posting, managing orders or reading private data, use that one.

**Should I build a FlightStats scraper instead?**

You can, but a FlightStats scraper is code you maintain: page changes break it, requests get blocked, and FlightStats's terms govern how you collect data. The FlightStats API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the FlightStats API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
