1 credit per call3 endpoints3 datapointsChecked working 6 Dec 2026
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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | codestring | iatastring | namestring |
|---|---|---|---|
| 1 | LH | LH | Lufthansa |
| 2 | CL | CL | Lufthansa CityLine |
| 3 | GEC | GEC | Lufthansa Cargo |
[
{
"code": "LH",
"iata": "LH",
"name": "Lufthansa"
},
{
"code": "CL",
"iata": "CL",
"name": "Lufthansa CityLine"
},
{
"code": "GEC",
"iata": "GEC",
"name": "Lufthansa Cargo"
}
]code,iata,name LH,LH,Lufthansa CL,CL,Lufthansa CityLine GEC,GEC,Lufthansa Cargo
Recorded from our API · 3 items shown · 3 datapoints per itemGET /v1/flightstats/search?query=lufthansa&type=airline
3 datapoints
Identity
- namestring
Other
- codestring
- iatastring
Playground
Run this API
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 | iata+7 optional | modedatehourhoursairportrows | 2–12 credits |
GET/v1/flightstats/flight | carrierflight_numberdate+1 optional | dateflight | 1 credit |
GET/v1/flightstats/search | querytype | codeiataname | 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:
airporttakes aniatacode, withmode(departuresorarrivals),date,hour,hours,carrier,limitanddetail. - One flight:
flighttakes acarrier, aflight_numberand adate, with an optionalinclude. - Search:
searchtakes aqueryand atype(airlineorairport).
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.
More travel APIs
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 windowCheck whether a flight is delayed, cancelled or diverted
Use the FlightStats API to check whether a flight is delayed, cancelled or divertedFollow 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.