DEV Community

public apis
public apis

Posted on Originally published at publicapis.lol on

Is There a Google Flights API? No. Here Are 8 Flight APIs You Can Call Instead

Cover illustration: Is There a Google Flights API? No. Here Are 8 Flight APIs You Can Call Instead

There is no public Google Flights API. Google used to sell one called QPX Express and shut it down in April 2018. We checked what's left on November 16, 2026: developers.google.com/qpx-express, its trips/search reference page and the old googleapis.com/qpxExpress/v1/trips/search endpoint all return 404.

So the real question is what you wanted Google Flights for. "Flight data" covers at least five different things, and no single API does all of them.

Here are eight we looked at. We called the first four ourselves. For the rest, we report what the public-apis list records and what our daily uptime check has seen over the last 13 days.

API Best for Key needed Called by us
aviationstack Flight status, routes, schedules Yes Yes
OpenSky Network Live aircraft positions No Yes
adsb.lol Live positions around a point No Yes
AviationWeather Airport weather (METAR, TAF) No Yes
Schiphol Airport One airport's own flight data Yes No
Travel Risk Aviation Status plus airline safety data Yes No
AirportMiles Airport codes and distances No No
Compare Flight Prices Fares Yes No

1. aviationstack: Flight Status, Routes and Schedules

This is the closest thing to the "what's happening with this flight" half of Google Flights. You query by flight number or by route:

curl "https://api.aviationstack.com/v1/flights?access_key=YOUR_KEY&dep_iata=JFK&arr_iata=LHR&limit=100"
Enter fullscreen mode Exit fullscreen mode

That came back in 2.1 seconds with 100 records out of 10,288 for the route. Each record has the status, both airports, terminal, gate, scheduled and actual times, and the delay in minutes. 17 of the 100 flights were in the air and carried a live position.

One thing to plan for: 88 of those 100 records were codeshares. The same aircraft appears once for every airline that sells seats on it. Only 12 were the operating flight (AA104, BA178, VS4 and so on). Filter on flight.codeshared being null if you want one row per aircraft.

The routes, timetable, airports and flightsFuture endpoints all answered 200 on our key. There are no prices anywhere in the data. Get a key at aviationstack.com, and see it on its Public APIs page.

2. OpenSky Network: Live Positions With No Key

OpenSky is a research network of ADS-B receivers. You give it a bounding box and it returns every aircraft inside it:

curl "https://opensky-network.org/api/states/all?lamin=51.2&lomin=-0.7&lamax=51.7&lomax=0.3"
Enter fullscreen mode Exit fullscreen mode

That box covers London. It answered in 0.5 seconds with no key, and it sent an access-control-allow-origin header, so it works from a browser. Each aircraft is an array, not an object: transponder code, callsign, country, longitude, latitude, altitude, speed and heading, in a fixed order.

It knows where a plane is. It doesn't know where the plane is going, what gate it's at or whether it's late. Use it for a live map.

3. adsb.lol: Aircraft Near a Point

Another community ADS-B feed, with a simpler query. You ask for everything within a radius:

curl "https://api.adsb.lol/v2/point/51.47/-0.45/20"
Enter fullscreen mode Exit fullscreen mode

That's 20 nautical miles around Heathrow. It needs no key and returns objects with named fields, including the aircraft type and registration, which OpenSky's free endpoint doesn't give you. It took 8.4 seconds for us, so cache it and don't call it on every map pan.

4. AviationWeather: METAR and TAF From NOAA

If your app tells people whether to expect delays, weather at the airport is half the answer:

curl "https://aviationweather.gov/api/data/metar?ids=KJFK&format=json"
Enter fullscreen mode Exit fullscreen mode

No key, 0.9 seconds, and the response has the temperature, wind, visibility and pressure as numbers alongside the raw METAR string. It uses ICAO codes (KJFK), not IATA codes (JFK). It didn't send a CORS header in our test, so call it from your server.

5. Schiphol Airport: One Airport, From the Source

Amsterdam Schiphol publishes its own developer API with a free key. It only covers one airport, but it's the airport's own data. It's been up in all 13 of our daily checks. If your app serves one city, check whether its airport has an API before you reach for a global one.

6. Travel Risk Aviation: Status Plus Safety Data

This one is listed with flight status, airports, airlines, airline safety ratings and in-flight Wi-Fi data. It needs a key and is marked as CORS-enabled. It's been up in every check. We haven't called it with a key, so treat the feature list as the provider's own.

7. AirportMiles: Airport Codes and Distances

AirportMiles serves airport codes, distances between airports, routes and passenger numbers as static JSON files, with no key. It's useful as a lookup table next to a live API, for turning "LHR" into "Heathrow" or working out how far a route is.

8. Compare Flight Prices: The Only Fare Entry

Out of 13 aviation entries in the list, exactly one is about prices: Compare Flight Prices, which is sold through RapidAPI and needs a RapidAPI key.

That ratio tells you something. Fares are the commercial part of flight data. Airlines and booking systems sell access to them, usually with an account and an agreement. A free, keyless fare search API isn't something we've found, and we maintain the list.

Can You Scrape Google Flights Instead?

You can try, and it will break. The page is built in JavaScript, the markup changes without notice and Google's terms don't allow automated access. If a product depends on it, you'll spend more time repairing the scraper than building the product.

Which One to Pick

For "is my flight on time", use aviationstack. For a live map, use OpenSky or adsb.lol. For delay risk, add AviationWeather. For a single airport, look for that airport's own API. For fares, expect to pay.

Most apps end up combining two: a status API for the schedule and a position feed for the map. Whatever you pick, cache each response for a few minutes. Nobody needs a gate number that's ten seconds fresher.

Happy building.

Top comments (0)