LuftFly Data API
Airports, weather and forecasts, delays, climate, holidays, time zones, currencies, travel advisories and flight CO2 in one JSON API. Version 1.13.0.
Operated by NaNXOR Enterprise (www.nanxor.com, [email protected]). Subscribe on RapidAPI or api.market (free plan available).
Quick start
Every endpoint is a GET request that returns JSON. Authenticate with your marketplace key. On RapidAPI the base URL is https://luftfly-data-api.p.rapidapi.com; on api.market it is https://prod.api.market/v1/nanxor/luftfly with the x-api-market-key header.
curl --request GET \ --url 'https://luftfly-data-api.p.rapidapi.com/v1/airports/YUL' \ --header 'X-RapidAPI-Host: luftfly-data-api.p.rapidapi.com' \ --header 'X-RapidAPI-Key: YOUR_KEY'
import requests
HOST = "luftfly-data-api.p.rapidapi.com"
H = {"X-RapidAPI-Host": HOST, "X-RapidAPI-Key": "YOUR_KEY"}
trip = requests.get(f"https://{HOST}/v1/route", params={"from": "YUL", "to": "IST"}, headers=H, timeout=15).json()["data"]
print(trip["distance_km"], trip["estimated_flight_time"]["hours_minutes"], trip["emissions"]["economy"])const HOST = "luftfly-data-api.p.rapidapi.com";
const H = { "X-RapidAPI-Host": HOST, "X-RapidAPI-Key": "YOUR_KEY" };
const res = await fetch(`https://${HOST}/v1/countries/JP/holidays?upcoming=true&days=100`, { headers: H });
console.log((await res.json()).data);
Every response has a meta block with the attribution for the data it contains and a disclaimer. Keep the attribution visible where you show the data. Add include=advisory to airport calls to get the country's travel advisory level in the same response, and lang=tr (or fr, de, es, it, pt, ru, ja, zh, ar, ko, nl) to many endpoints for localized names.
Endpoint reference
Parameters marked * are required. Paths are appended to the base URL. The full machine-readable definition is in openapi.json.
Airports
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airport-countries | Countries with airport counts | q | /v1/airport-countries |
GET /v1/airport-meta | Airports data version and counts | – | /v1/airport-meta |
GET /v1/airports | Search and filter airports | q, country, region, continent, type, scheduled, has_iata, include, limit, offset, lang | /v1/airports |
GET /v1/airports/nearby | Nearest airports to a coordinate | lat*, lon*, radius_km, type, scheduled, has_iata, include, limit, lang | /v1/airports/nearby?lat=45.5&lon=-73.57 |
GET /v1/airports/{code} | Get an airport by code | include, lang | /v1/airports/JFK |
GET /v1/airports/{code}/attractions | UNESCO World Heritage Sites near an airport | radius_km, limit, lang | /v1/airports/JFK/attractions |
GET /v1/airports/{code}/delays | Current FAA delays, ground stops and closures | – | /v1/airports/JFK/delays |
GET /v1/airports/{code}/frequencies | Radio frequencies of an airport | – | /v1/airports/JFK/frequencies |
GET /v1/airports/{code}/navaids | Navaids associated with an airport | – | /v1/airports/JFK/navaids |
GET /v1/airports/{code}/passengers | Annual passengers (Eurostat, EU/EEA airports) | – | /v1/airports/FRA/passengers |
GET /v1/airports/{code}/runways | Runways of an airport | – | /v1/airports/JFK/runways |
GET /v1/airports/{code}/stats | Passenger numbers, opening year, operator, runways | – | /v1/airports/JFK/stats |
GET /v1/airports/{code}/sun | Sunrise, sunset and twilight times | date | /v1/airports/JFK/sun |
GET /v1/geo/lookup | Nearest places, country and time zone for a coordinate | lat*, lon* | /v1/geo/lookup?lat=48.85&lon=2.35 |
GET /v1/rankings/airports | Busiest airports by passengers | country, limit | /v1/rankings/airports |
Route
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/emissions | CO2 of a trip by plane, train, coach, car, taxi or ferry | distance_km*, passengers, round_trip, flight_category, modes | /v1/emissions?distance_km=470 |
GET /v1/route | Distance and CO2 estimate between two airports | from*, to*, class, passengers, round_trip | /v1/route?from=YUL&to=IST |
Aerodromes
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/aerodromes | Heliports, seaplane bases, balloonports and airstrips | q, country, region, type, limit, offset | /v1/aerodromes |
GET /v1/aerodromes/nearby | Proximity check: every airport, heliport, seaplane base, balloonport and airstrip near a point | lat*, lon*, radius_km, type, limit | /v1/aerodromes/nearby?lat=45.5017&lon=-73.5673 |
GET /v1/airports/{code}/aerodromes | Heliports, seaplane bases and airstrips around an airport | radius_km, type, limit | /v1/airports/JFK/aerodromes |
Travel advisories
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/travel/changes | Recent advisory level changes | since, country, limit | /v1/travel/changes |
GET /v1/travel/countries | List countries and their current advisory level | q, level_min, level_max, regional, updated_since, sort, limit, offset | /v1/travel/countries |
GET /v1/travel/countries/{country} | Advisory for one country | – | /v1/travel/countries/FR |
GET /v1/travel/countries/{country}/emergency | Emergency numbers and consular help | – | /v1/travel/countries/FR/emergency |
GET /v1/travel/countries/{country}/entry | Entry requirements | – | /v1/travel/countries/FR/entry |
GET /v1/travel/countries/{country}/hazards | Climate and natural hazards | – | /v1/travel/countries/FR/hazards |
GET /v1/travel/countries/{country}/health | Health information | – | /v1/travel/countries/FR/health |
GET /v1/travel/countries/{country}/laws | Laws and cultural differences | – | /v1/travel/countries/FR/laws |
GET /v1/travel/countries/{country}/sources/{source} | Full text from one government | – | /v1/travel/countries/FR/sources/uk |
GET /v1/travel/meta | Sources, licences and data freshness | – | /v1/travel/meta |
Health
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /ping | Health check | – | /ping |
Countries
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/countries | Country facts | q, continent, currency, lang, limit, offset | /v1/countries |
GET /v1/countries/{country} | One country's facts | lang | /v1/countries/CA |
GET /v1/countries/{country}/health-notices | Travel health notices (CDC) | – | /v1/countries/CA/health-notices |
GET /v1/countries/{country}/indicators | Economic and social indicators | – | /v1/countries/CA/indicators |
Holidays
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/countries/{country}/holidays | Public holidays | year, upcoming, days, region | /v1/countries/CA/holidays |
GET /v1/countries/{country}/long-weekends | Long weekends and bridge days | year, region | /v1/countries/CA/long-weekends |
Currency
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/fx/convert | Convert an amount | from*, to*, amount | /v1/fx/convert?from=USD&to=CAD |
GET /v1/fx/history | Exchange rate history (ECB, 10 years) | quote*, base, from, to, limit | /v1/fx/history?quote=USD |
GET /v1/fx/latest | Latest exchange rates | base, symbols | /v1/fx/latest |
Cities
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/cities | Search cities | q, country, lang, limit, offset | /v1/cities |
GET /v1/cities/airports | Airports near a city | q*, country, radius_km, lang, scheduled, limit | /v1/cities/airports?q=paris |
Time zones
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/time | Local time at an airport | – | /v1/airports/JFK/time |
GET /v1/time/convert | Convert a time between airports or time zones | from*, to*, time | /v1/time/convert?from=YUL&to=IST |
GET /v1/timezones | Time zone details and upcoming daylight-saving changes | zone* | /v1/timezones?zone=Europe/Istanbul |
Flights (US)
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airlines/{code}/performance | Airline on-time performance (US) | – | /v1/airlines/DL/performance |
GET /v1/airports/{code}/fares | Average fares from or to an airport (US routes) | direction, sort, market, limit | /v1/airports/JFK/fares |
GET /v1/airports/{code}/performance | Airport on-time performance (US) | – | /v1/airports/JFK/performance |
GET /v1/airports/{code}/routes | Routes from or to an airport with a US connection | direction, scope, limit | /v1/airports/JFK/routes |
GET /v1/routes | Carriers on a route touching the US | from*, to* | /v1/routes?from=JFK&to=LAX |
GET /v1/routes/fares | Average airfare between two airports (US routes) | from*, to* | /v1/routes/fares?from=JFK&to=LAX |
Fuel prices
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/fuel | Fuel stations near an airport | radius_km, fuel, sort, max_age_days, limit | /v1/airports/NCE/fuel |
GET /v1/countries/{country}/fuel | Fuel prices for one country | max_age_days | /v1/countries/CA/fuel |
GET /v1/fuel/cheapest | Cheapest stations in a country, city or postcode area | country*, fuel*, city, postcode, max_age_days, limit | /v1/fuel/cheapest?country=FR&fuel=diesel |
GET /v1/fuel/countries | Fuel price coverage, sources and licences | – | /v1/fuel/countries |
GET /v1/fuel/national | National average pump prices (30 countries) | country, fuel, sort | /v1/fuel/national |
GET /v1/fuel/national/history | Weekly price history of an EU country | country*, fuel*, from, to, limit | /v1/fuel/national/history?country=DE&fuel=diesel |
GET /v1/fuel/nearby | Fuel stations and prices near a point | lat*, lon*, radius_km, fuel, sort, max_age_days, limit | /v1/fuel/nearby?lat=43.66&lon=7.2 |
GET /v1/fuel/stations/{id} | One station with all its prices | – | /v1/fuel/stations/FR:6000005 |
GET /v1/fuel/stats | Price statistics for a country or area | country*, fuel*, city, postcode, max_age_days | /v1/fuel/stats?country=FR&fuel=diesel |
Travel conditions
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/earthquakes | Recent earthquakes near an airport (USGS) | radius_km, days, min_magnitude, limit | /v1/airports/SFO/earthquakes |
GET /v1/airports/{code}/fires | Satellite wildfire detections near an airport | radius_km, hours, min_confidence, limit | /v1/airports/SFO/fires |
GET /v1/borders/wait-times | Land border crossing wait times (US and Canada) | entering, q, border, limit | /v1/borders/wait-times |
GET /v1/fires/nearby | Satellite wildfire detections near a point | lat*, lon*, radius_km, hours, min_confidence, limit | /v1/fires/nearby?lat=37.8&lon=-122.4 |
GET /v1/hazards/earthquakes | Recent earthquakes near a point (USGS) | lat*, lon*, radius_km, days, min_magnitude, limit | /v1/hazards/earthquakes?lat=35.7&lon=139.7 |
GET /v1/hazards/space-weather | Space weather now and 3-day outlook (NOAA SWPC) | alerts | /v1/hazards/space-weather |
GET /v1/hazards/tropical-cyclones | Active tropical cyclones (NHC: Atlantic, Eastern and Central Pacific) | lat, lon | /v1/hazards/tropical-cyclones |
Health weather
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/pollen | Pollen forecast for the region of a German airport (DWD) | pollen | /v1/airports/MUC/pollen |
GET /v1/health/pollen | Pollen forecast for Germany (DWD): 8 pollen types, 27 regions, 3 days | region, pollen | /v1/health/pollen |
GET /v1/health/uv-index | UV index forecast for 38 places in Germany (DWD), 3 days | place | /v1/health/uv-index |
Aviation weather
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/aviation-hazards | SIGMETs, G-AIRMETs and pilot reports around an airport in one call | radius_km, pirep_radius_km, pirep_hours, geometry, limit | /v1/airports/JFK/aviation-hazards |
GET /v1/aviation/gairmets | G-AIRMETs for the contiguous United States (turbulence, icing, IFR, mountain obscuration) | lat, lon, hazard, radius_km, geometry, limit | /v1/aviation/gairmets |
GET /v1/aviation/pireps | Recent pilot reports of turbulence or icing near a point | lat*, lon*, radius_km, hours, type, limit | /v1/aviation/pireps?lat=40.64&lon=-73.78 |
GET /v1/aviation/sigmets | Active SIGMETs worldwide (volcanic ash, thunderstorms, turbulence, icing, tropical cyclones) | lat, lon, hazard, fir, radius_km, geometry, limit | /v1/aviation/sigmets |
GET /v1/hazards/volcanic-ash | Active volcanic ash SIGMETs (worldwide) | lat, lon, radius_km, geometry, limit | /v1/hazards/volcanic-ash |
Aviation safety
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/safety | NTSB accidents and incidents at or near an airport | years, limit | /v1/airports/JFK/safety |
GET /v1/safety/accidents | Search NTSB aviation accidents and incidents | lat, lon, radius_km, from, to, min_fatalities, category, type, state, limit | /v1/safety/accidents |
GET /v1/safety/accidents/{ntsb_no} | One NTSB case with findings | – | /v1/safety/accidents/DCA25MA108 |
Energy and mobility
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/ev | EV charging stations near an airport | radius_km, min_power_kw, connector, free, limit | /v1/airports/CDG/ev |
GET /v1/countries/{country}/electricity | Household electricity prices | kwh_per_100km, limit | /v1/countries/CA/electricity |
GET /v1/electricity/carbon-intensity | Great Britain grid carbon intensity | – | /v1/electricity/carbon-intensity |
GET /v1/ev/coverage | EV charging data coverage and licences | – | /v1/ev/coverage |
GET /v1/ev/nearby | EV charging stations near a point | lat*, lon*, radius_km, min_power_kw, connector, free, limit | /v1/ev/nearby?lat=48.85&lon=2.35 |
Meta
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/meta | Data sources, licences and freshness | – | /v1/meta |
Events
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/events | Natural events near an airport | radius_km, days, type, min_magnitude, limit | /v1/airports/IST/events |
GET /v1/events | Natural events near a point | lat*, lon*, radius_km, days, type, min_magnitude, limit | /v1/events?lat=41.0&lon=29.0 |
Weather
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airports/{code}/metar | Latest METAR (observed weather) | – | /v1/airports/JFK/metar |
GET /v1/airports/{code}/taf | Latest TAF (forecast) | – | /v1/airports/JFK/taf |
GET /v1/airports/{code}/weather | Latest METAR and TAF together | – | /v1/airports/JFK/weather |
GET /v1/airports/{code}/forecast | Weather forecast for an airport | view | /v1/airports/YUL/forecast |
GET /v1/airports/{code}/climate | Monthly climate normals | – | /v1/airports/IST/climate |
GET /v1/airports/{code}/best-time | Best time to visit | activity | /v1/airports/JFK/best-time |
GET /v1/air-quality | Latest air quality readings near a point | lat*, lon*, radius_km, limit | /v1/air-quality?lat=48.85&lon=2.35 |
GET /v1/airports/{code}/air-quality | Latest air quality readings near an airport | radius_km, limit | /v1/airports/CDG/air-quality |
GET /v1/marine/nearby | Buoy and coastal observations near a point | lat*, lon*, radius_km, limit | /v1/marine/nearby?lat=25.8&lon=-80.1 |
GET /v1/airports/{code}/marine | Buoy and coastal observations near an airport | radius_km, limit | /v1/airports/MIA/marine |
GET /v1/alerts/weather | Active official weather alerts at a point (US, Canada and Germany) | lat*, lon* | /v1/alerts/weather?lat=40.7&lon=-74.0 |
GET /v1/airports/{code}/weather-alerts | Active official weather alerts at an airport (US, Canada and Germany) | – | /v1/airports/JFK/weather-alerts |
GET /v1/tides | Tide predictions near a point (US) | lat*, lon*, radius_km, date, days | /v1/tides?lat=40.7&lon=-74.0 |
GET /v1/airports/{code}/tides | Tide predictions near an airport (US) | radius_km, date, days | /v1/airports/JFK/tides |
Navaids
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/navaids | Search navaids | q, country, type, limit, offset | /v1/navaids |
Airlines
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/airlines | Search airlines | q, iata, icao, country, limit, offset, lang | /v1/airlines |
GET /v1/airlines/{code} | One airline by IATA or ICAO code | lang | /v1/airlines/AC |
Safety
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/countries/{country}/crime | Intentional homicide rate of a country (UNODC) | limit | /v1/countries/CA/crime |
GET /v1/crime/homicide-rates | Countries ranked by intentional homicide rate | year, sort, limit | /v1/crime/homicide-rates |
Country indicators
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/countries/{country}/travel-indicators | Road deaths, political stability and tourism figures of a country | limit | /v1/countries/CA/travel-indicators |
GET /v1/indicators | Catalogue of country indicators (World Bank, CC BY 4.0) | group, q | /v1/indicators |
GET /v1/countries/{country}/statistics | Many World Bank indicators of one country in one call | group, keys, years, rank | /v1/countries/CA/statistics |
GET /v1/indicators/ranking | Countries ranked by any indicator of the catalogue | indicator*, year, sort, limit | /v1/indicators/ranking?indicator=road_deaths |
Maritime
| Endpoint | What it does | Query parameters | Example |
|---|---|---|---|
GET /v1/ports | Search ports (UN/LOCODE) by country, name or distance | country, q, lat, lon, radius_km, limit | /v1/ports |
GET /v1/ports/{locode} | One port by UN/LOCODE | – | /v1/ports/GRPIR |
Data sources and licences
All data comes from open or official sources whose licences allow this use. Attributions are repeated in the meta block of every response, and GET /v1/meta returns the freshness of each dataset.
| Data | Source | Licence | Refresh |
|---|---|---|---|
| Airports, runways, frequencies, navaids, heliports, seaplane bases and airstrips (`/v1/aerodromes`) | OurAirports | Public domain | weekly |
| Airline codes, alliances, hubs; country, city, airport and UNESCO facts; multilingual names; passenger counts | Wikidata | CC0 | a few times a year |
| Airport time zones | timezone-boundary-builder (OpenStreetMap boundaries), GeoNames | ODbL, CC BY 4.0 (credited in every response) | static |
| Time zone rules and daylight saving | IANA Time Zone Database | Public domain | with the server's tz data |
| METAR and TAF weather reports | NOAA/NWS Aviation Weather Center | Public domain (not endorsed by NOAA/NWS) | about every 10 minutes |
| Airport forecasts | MET Norway | CC BY 4.0 (not endorsed by MET Norway) | each airport about every 3 hours |
| Climate normals and best time to visit | NASA POWER | NASA data (not endorsed by NASA) | static (2001-2025) |
| Airport delays (US) | U.S. FAA NAS Status | Public domain | about every 10 minutes |
| Flight performance and routes (US), international routes touching the US | U.S. Bureau of Transportation Statistics (On-Time Performance, T-100 International) | Public domain | monthly |
| Earthquakes | USGS | Public domain | about every 10 minutes |
| Earthquake feed, magnitude 2.5+ last 30 days (`/v1/hazards/earthquakes`) | USGS Earthquake Hazards Program | Public domain (not endorsed by USGS) | about every 15 minutes |
| SIGMETs worldwide incl. volcanic ash, G-AIRMETs (US), turbulence and icing pilot reports (`/v1/aviation/*`, `/v1/hazards/volcanic-ash`, `/v1/airports/{code}/aviation-hazards`) | NOAA Aviation Weather Center | Public domain (not endorsed by NOAA) | about every 10 to 15 minutes |
| Space weather scales, Kp index and alerts (`/v1/hazards/space-weather`) | NOAA Space Weather Prediction Center | Public domain (not endorsed by NOAA) | about every 15 minutes |
| Active tropical cyclones, Atlantic and Pacific (`/v1/hazards/tropical-cyclones`) | NOAA National Hurricane Center | Public domain (not endorsed by NOAA) | about every 30 minutes |
| Weather alerts, United States | NOAA National Weather Service | Public domain (not endorsed by NOAA) | live (cached 5 minutes) |
| Weather alerts, Canada | Environment and Climate Change Canada (MSC GeoMet) | ECCC data end-use licence: unaltered, with attribution | live (cached 5 minutes) |
| Weather warnings, Germany (English edition; warning areas GeoBasis-DE / BKG) | Deutscher Wetterdienst (DWD Open Data) | Free use incl. commercial, source acknowledgement (confirmed by DWD) | about every 10 minutes |
| Pollen and UV index forecasts, Germany (`/v1/health/*`) | Deutscher Wetterdienst (DWD Open Data) | Free use incl. commercial, source acknowledgement (confirmed by DWD) | issued daily, checked every 3 hours |
| Germany outline for alert coverage | Natural Earth 1:10m | Public domain | static |
| About 65 country indicators: tourism, road deaths, governance, health, connectivity, economy, environment | World Bank (World Development Indicators and Worldwide Governance Indicators; underlying data from WHO, UN Tourism, ITU, ICAO, UNESCO and national statistics offices) | CC BY 4.0, checked per series before publication | checked every 3 days, annual data |
| Ports with UN/LOCODE | Wikidata | CC0 | rebuilt a few times a year |
| Natural events (wildfires, storms, volcanoes, floods) | NASA EONET | Public domain | about every 30 minutes |
| Travel health notices | U.S. CDC | Public domain (not endorsed by CDC) | about every 3 hours |
| Travel advisories, entry, health, laws, hazards, emergency numbers | UK FCDO, Government of Canada, U.S. State Department | Open Government Licence v3.0, OGL-Canada, US government work | several times a day |
| Exchange rates | European Central Bank euro reference rates | Free reuse with source (indicative, not for trading) | once per working day |
| Public holidays | python-holidays | MIT | yearly |
| Country indicators | World Bank Open Data; The Economist Big Mac Index | CC BY 4.0; MIT | yearly |
| CO2 estimates for flights, trains, coaches, cars and ferries | UK Government GHG Conversion Factors (DESNZ/DEFRA) | Open Government Licence v3.0 | yearly |
| Household electricity prices | Eurostat nrg_pc_204 | Reuse with acknowledgement | half-yearly |
| Aviation accidents and incidents | U.S. National Transportation Safety Board (aviation accident database) | U.S. government work (public domain; not endorsed by the NTSB) | monthly |
| Average airfares per airport pair (US routes) | U.S. Bureau of Transportation Statistics, DB1B Market (ticket sample) | Public domain | quarterly, about five months behind |
| Airport passengers (EU/EEA) | Eurostat avia_paoa | Reuse with acknowledgement | annual |
| Great Britain grid carbon intensity | Carbon Intensity API (NESO, University of Oxford, EDF Europe, Met Office) | CC BY 4.0 | live (cached 5 minutes) |
| Border wait times, United States ports of entry | U.S. Customs and Border Protection | Public domain | about every 15 minutes |
| Border wait times, Canada-US crossings | Canada Border Services Agency | Open Government Licence - Canada | about every 15 minutes |
| Wildfire detections | NASA FIRMS (VIIRS active fire) | NASA open data | about every 3 hours |
| Buoy and coastal observations | NOAA National Data Buoy Center | Public domain (not for navigation) | about every 30 minutes |
| Air quality readings | OpenAQ and its data providers | Per record; only commercial-use, redistributable, non-share-alike licences are shown | on request (cached 30 minutes) |
| National average fuel prices, United States | U.S. Energy Information Administration (EIA) | Public domain | weekly |
| EV charging stations (France) | Etalab, Base nationale des IRVE (data.gouv.fr) | Licence Ouverte 2.0 | weekly |
| Exchange rate history (10 years) | European Central Bank | Free reuse with source (indicative, not for trading) | once per working day |
| Tide predictions (US) | NOAA CO-OPS | Public domain (not for navigation) | stations weekly, predictions on request |
| National average fuel prices, 27 EU countries | European Commission, Weekly Oil Bulletin | CC BY 4.0 | weekly |
| National average fuel prices, United Kingdom | UK DESNZ, Weekly road fuel prices | Open Government Licence v3.0 | weekly |
| National average fuel prices, Norway | Statistics Norway (SSB) | CC BY 4.0 | monthly |
| Fuel prices, France (station level) | Ministere de l'Economie, prix-carburants.gouv.fr | Licence Ouverte 2.0 (Etalab) | about every 30 minutes |
| Fuel prices, Spain (station level) | Ministerio para la Transicion Ecologica, Geoportal Gasolineras | CC BY 4.0 | about every hour |
Use it from AI assistants (MCP)
The LuftFly MCP server gives Claude, Cursor and other MCP clients 39 ready-made tools, structured results (output schemas), reference resources and prompt templates on top of this API (airport overview, weather and forecast, best time to visit, flight info with CO2, CO2 by transport mode, fuel prices near an airport, country briefing, travel advisory, holidays, time and currency conversion, US flight performance, natural events). It has no dependencies, is read-only and uses your own key.
Hosted, nothing to install (clients that connect to a URL and let you set a header; you send your own key and calls run on your plan):
claude mcp add --transport http luftfly https://mcp.luftfly.com/mcp --header "X-RapidAPI-Key: your_key"
Use x-api-market-key for an api.market key. initialize and tools/list need no key; nothing is logged or stored.
One-click connectors (Claude and other clients that sign in with OAuth instead of a header): add the URL https://mcp.luftfly.com/mcp-oauth, sign in on the LuftFly page that opens and paste your own LuftFly API key once. The key is checked once and then lives only inside an encrypted access token that your assistant sends back; it is not stored or logged. Requests are billed to your plan.
Desktop bundle: luftfly-mcp.mcpb installs the server in Claude Desktop with a double click; it asks for your key once and keeps it as a sensitive setting.
Or run it locally (works with every MCP client):
claude mcp add luftfly -e LUFTFLY_API_KEY=your_key -- uvx luftfly-mcp
Package name: luftfly-mcp on PyPI (Python 3.9+), listed in the official MCP registry as com.nanxor/luftfly-mcp. Set LUFTFLY_PROVIDER=apimarket if your key comes from api.market. The data is informational and keeps its attribution in every result.
What this API does not do
- No live flight status, tracking or schedules, and no aircraft registrations or NOTAM. These need licensed commercial data.
- US flight performance covers domestic flights of the large US reporting carriers only (BTS). Routes also include international segments with a US end (US and foreign carriers); flights between two non-US airports are not covered. Data runs about two months behind.
- FAA delays cover US airports only. METAR/TAF only exist for airports with a weather station; forecasts cover about 1,150 large airports.
- Everything is informational. It is not an official source and must not be used for navigation, flight planning or other safety-critical purposes.
- CO2 figures are indicative estimates (not airline- or aircraft-specific). Best-time scores are a heuristic. Exchange rates are not for trading.
- Travel advice and country data can be incomplete or change quickly; always check the issuing authority before you travel.
Changelog
- 1.13.0: Germany: official DWD weather warnings in `/v1/alerts/weather` and `/v1/airports/{code}/weather-alerts` (English edition, matched to the warning areas), pollen forecast for 8 pollen types and 27 regions (`/v1/health/pollen`, `/v1/airports/{code}/pollen`) and UV index forecast for 38 places (`/v1/health/uv-index`), from the Deutscher Wetterdienst. MCP server now has 39 tools.
- 1.12: Aerodromes: heliports, seaplane bases, balloonports and small airstrips as their own dataset (`/v1/aerodromes`) and a proximity check that lists every landing site near a point or airport with distance, bearing and direction (`/v1/aerodromes/nearby`, `/v1/airports/{code}/aerodromes`).
- 1.11: Aviation weather: active SIGMETs worldwide with volcanic ash (`/v1/aviation/sigmets`, `/v1/hazards/volcanic-ash`), US G-AIRMETs (`/v1/aviation/gairmets`), turbulence and icing pilot reports (`/v1/aviation/pireps`) and everything around an airport in one call (`/v1/airports/{code}/aviation-hazards`), plus space weather (`/v1/hazards/space-weather`) and active tropical cyclones of the Atlantic and Pacific (`/v1/hazards/tropical-cyclones`), all from NOAA.
- 1.10: Country indicator catalogue: about 65 licence-checked World Bank series for every country (`/v1/indicators`, `/v1/countries/{country}/statistics`, `/v1/indicators/ranking`) covering tourism, road deaths, governance, health, connectivity, economy and environment.
- 1.9: Road traffic deaths, political stability, tourist arrivals and tourism receipts per country with rankings (`/v1/countries/{country}/travel-indicators`), recent earthquakes near a point or airport (USGS), official weather alerts for the US and Canada (NWS, Environment and Climate Change Canada), and ports with UN/LOCODE (Wikidata, CC0).
- 1.8: NTSB aviation accidents and incidents, average airfares for US routes, airport passenger series (EU), Great Britain grid carbon intensity, coordinate lookup, land border wait times, satellite wildfire detections and buoy observations, weekly fuel price history and tax share (27 EU countries), household electricity prices, EV charging stations (France), 10-year exchange rate history, US tide predictions; national average fuel prices for 30 countries (EU, UK, Norway, US) and station-level prices (France, Spain; more as their official feeds are verified), CO2 comparison across plane, train, coach, car and ferry (`/v1/emissions`, `ground_alternatives` on `/v1/route`).
- 1.6: Flight performance and routes (US), UNESCO sites near airports, multilingual names (`lang`), extra safety and price indicators, `/v1/meta` data freshness.
- 1.5: Time zones and time conversion, FAA delays, airport statistics and rankings, best time to visit, long weekends, regional holidays, country indicators, airline alliances.
- 1.4: Weather forecasts (MET Norway) and climate normals (NASA POWER).
- 1.3: Country facts, public holidays, exchange rates, cities, natural events, CDC health notices; route flight time.
- 1.2: METAR/TAF airport weather.
- 1.1: Navaids, airlines, sunrise and sunset.
- 1.0: Airports, travel advisories and flight CO2 estimates behind one key.
Downloads
- OpenAPI 3 definition
- Postman collection
- llms.txt (summary for AI assistants)
Informational data. Not an official source; not for navigation, flight planning or other safety-critical use. Questions: [email protected].