Developers
Put your airline's numbers, pilots, flights and live map on your own website, or build an app or EFB that pilots sign in to.
There are three ways in:
| Website API | Read-only data about one airline for its website. Uses a key from the airline's console. |
|---|---|
| Live map embed | The airline's live map in an iframe. No code and no key. |
| Pilot API | What the companion app uses: a pilot signs in and can book, fly and file. For apps and in-sim EFBs. |
Getting a key
- In your airline's console, open Airline, then Website API.
- Give the key a name, like Main website.
- If the key will sit in a web page's JavaScript, where anyone can read it, put your website's address under Only on these websites, like https://easywelsh.co.uk. The key then only works from that site. If only your server will use the key, leave it empty.
- Copy the key. It starts with taco_site_ and is only shown once.
Each airline can have up to 10 keys. A key belongs to one airline and only ever reads that airline's data. Revoke a key from the same page and it stops working straight away.
Making requests
Every address starts with:
https://tacoflight.com/api/v1/site Send the key in an X-Api-Key header. Where you can't set headers, add ?key= to the address instead. Every answer is JSON in the same wrapper, with what you asked for under data:
{
"status": "success",
"message": "Success",
"code": 200,
"data": { ... }
} - Times are UTC, written like 2026-11-20T14:51:44Z.
- Durations are in minutes, with hours alongside where it helps. Distances are nautical miles, landing rates feet per minute, altitudes feet, speeds knots.
- Airports are ICAO codes. Answers that mention airports include them with their names and coordinates.
- Pilots appear by first name and initial. Email addresses are never included.
Website API
GET /stats
The airline in numbers: pilots, flights, hours, distance, average landing, this month so far, and how many pilots are flying now. Refreshed every 5 minutes.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/stats"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"pilots": 7,
"flying_now": 1,
"flights": 191,
"minutes": 27791,
"hours": 463.2,
"distance_nm": 155260,
"average_landing": { "fpm": 251, "grade": "firm", "label": "Firm" },
"this_month": { "flights": 14, "minutes": 2289, "hours": 38.2 },
"routes": 47,
"airports": 23,
"aircraft": 7,
"last_flight_at": "2026-11-20T14:51:44Z"
}
}Landing grades are butter (100 fpm or less), smooth (200), firm (350), hard (600) and severe.
GET /pilots
Active pilots with their rank, hub, where they are now, hours, flights and average landing.
| Parameter | What it does |
|---|---|
| sort | hours (the default), flights, recent, name or joined. |
| limit | How many, up to 500. 100 if left out. |
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/pilots"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": [
{
"id": 38,
"pilot_id": "GWN002",
"name": "Rhian M.",
"country": "GB",
"rank": "Senior First Officer",
"hub": "EGFF",
"location": "LDDU",
"minutes": 9087,
"hours": 151.5,
"flights": 62,
"distance_nm": 51490,
"average_landing": { "fpm": 244, "grade": "firm", "label": "Firm" },
"last_flight_at": "2026-11-20T14:51:44Z",
"joined_at": "2026-03-02T19:04:11Z",
"profile_url": null
}
]
}profile_url is only filled in for pilots who made their T.A.C.O.Flight profile public.
GET /pilots/{id}
One pilot, by pilot number (GWN002) or by the id from the list. Adds their last 10 flights, the countries they have landed in, and their badges.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/pilots/GWN002"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"id": 38,
"pilot_id": "GWN002",
"name": "Rhian M.",
"rank": "Senior First Officer",
"hours": 151.5,
"flights": 62,
"average_landing": { "fpm": 244, "grade": "firm", "label": "Firm" },
"countries": ["AT", "CY", "ES", "GB", "HR"],
"recent_flights": [
{
"flight": "GWN140",
"from": "EGFF",
"to": "LDDU",
"aircraft": "AT76",
"minutes": 170,
"distance_nm": 960,
"landing": { "fpm": 240, "grade": "firm", "label": "Firm" },
"at": "2026-11-20T14:51:44Z"
}
],
"badges": [
{
"name": "10 flights",
"description": "Ten accepted flights.",
"icon": "star",
"colour": "#4CC9F0",
"awarded_at": "2026-04-11T20:15:02Z"
}
]
}
}GET /flights/recent
The latest accepted flights, newest first, with the airports they used.
| Parameter | What it does |
|---|---|
| limit | How many, up to 100. 20 if left out. |
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/flights/recent"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"flights": [
{
"flight": "GWN140",
"from": "EGFF",
"to": "LDDU",
"aircraft": "AT76",
"minutes": 170,
"distance_nm": 960,
"landing": { "fpm": 240, "grade": "firm", "label": "Firm" },
"at": "2026-11-20T14:51:44Z",
"pilot": "Rhian M.",
"pilot_ref": 38
}
],
"airports": [
{ "icao": "EGFF", "iata": "CWL", "name": "Cardiff International Airport", "city": "Cardiff", "country": "GB", "lat": 51.3967, "lon": -3.34333 },
{ "icao": "LDDU", "iata": "DBV", "name": "Dubrovnik Ruđer Bošković Airport", "city": "Dubrovnik", "country": "HR", "lat": 42.56225, "lon": 18.26554 }
]
}
}GET /flights/live
Pilots in the air right now. A flight drops off ten minutes after its last position report. Refreshed every 10 seconds.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/flights/live"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"flights": [
{
"flight": "GWN126",
"from": "EGFF",
"to": "GCTS",
"aircraft": "A20N",
"registration": "G-GWNA",
"pilot": "Anja L.",
"pilot_id": "GWN004",
"lat": 44.2,
"lon": -8.1,
"altitude_ft": 36000,
"groundspeed_kt": 452,
"heading": 205,
"vertical_speed_fpm": 0,
"on_ground": false,
"phase": "cruise",
"seconds_since_update": 4
}
],
"updated_at": "2026-11-24T18:48:07Z"
}
}GET /routes/flown
Every pair of airports flown and how often, with coordinates, ready to draw on a map. For the whole airline or one pilot.
| Parameter | What it does |
|---|---|
| days | How far back to look. 365 if left out; 0 for all time. |
| pilot | A pilot's id, for just their flights. |
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/routes/flown"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"legs": [
{ "from": "EGFF", "to": "LIRF", "flights": 2, "last_at": "2026-11-20T12:51:53Z" },
{ "from": "LPFR", "to": "EGFF", "flights": 1, "last_at": "2026-11-14T13:51:52Z" }
],
"airports": [
{ "icao": "EGFF", "iata": "CWL", "name": "Cardiff International Airport", "city": "Cardiff", "country": "GB", "lat": 51.3967, "lon": -3.34333 },
{ "icao": "LIRF", "iata": "FCO", "name": "Rome–Fiumicino Leonardo da Vinci International Airport", "city": "Rome", "country": "IT", "lat": 41.80028, "lon": 12.23889 },
{ "icao": "LPFR", "iata": "FAO", "name": "Faro - Gago Coutinho International Airport", "city": "Faro", "country": "PT", "lat": 37.01591, "lon": -7.97094 }
]
}
}GET /routes
The schedule, 200 routes a page. group is the route group it sits in, like Europe or Winter ops, or null.
| Parameter | What it does |
|---|---|
| from | Only routes leaving this airport. |
| to | Only routes arriving at this airport. |
| page | Which page. Totals are under meta. |
| per_page | Up to 1000. |
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/routes"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": [
{
"flight": "GWN106",
"from": "EGFF",
"to": "LGIR",
"departs": "06:45",
"arrives": "10:50",
"days": ["mon", "wed", "fri"],
"minutes": 245,
"distance_nm": 1520,
"aircraft": ["A20N"],
"group": "Summer sun"
}
],
"meta": { "total": 24, "page": 1, "per_page": 200, "total_pages": 1 }
}GET /airports
Every airport the airline flies to, with coordinates, whether it is a hub, and how many routes leave and arrive.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/airports"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": [
{
"icao": "EGFF",
"iata": "CWL",
"name": "Cardiff International Airport",
"city": "Cardiff",
"country": "GB",
"lat": 51.3967,
"lon": -3.34333,
"hub": true,
"routes_out": 24,
"routes_in": 23
}
]
}GET /fleet
Aircraft types and the airframes of each, with where each one is.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/fleet"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"types": [
{ "icao": "A20N", "name": "Airbus A320neo", "seats": 186, "airframes": 4 }
],
"aircraft": [
{ "registration": "G-GWNA", "type": "A20N", "name": null, "location": "EGFF", "status": "active", "hours": 1300.4 }
]
}
}GET /notices
News and NOTAMs that are still current, pinned ones first.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/notices"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": [
{
"kind": "notam",
"title": "Stand 4 closed",
"body": "Use stands 5 to 9 until further notice.",
"airport": "EGFF",
"pinned": false,
"published_at": "2026-11-24T18:02:10Z",
"until": null
}
]
}GET /airline
The airline's name, codes, colours, logo, and links to its crew portal and join page.
curl -H "X-Api-Key: taco_site_YOUR_KEY" "https://tacoflight.com/api/v1/site/airline"Example answer
{
"status": "success",
"message": "Success",
"code": 200,
"data": {
"code": "gwyntair",
"name": "Gwynt Air",
"icao": "GWN",
"iata": "GW",
"callsign": "GWYNT",
"colors": { "primary": "#0F5C63", "accent": "#F2B544" },
"images": { "logo": { "lg": "https://tacoflight.com/media/airlines/12/logo-lg.webp" }, "icon": {}, "banner": {} },
"portal_url": "https://gwyntair.tacoflight.com",
"join_url": "https://gwyntair.tacoflight.com/join"
}
}Examples
Each of these works pasted into a page as it is. Swap in your own key, and keep the key tied to your website's address.
Hours and flights on your home page
<p>Our pilots have flown <strong id="taco-hours">…</strong> hours over <strong id="taco-flights">…</strong> flights.</p>
<script>
fetch('https://tacoflight.com/api/v1/site/stats?key=taco_site_YOUR_KEY')
.then(function (r) { return r.json(); })
.then(function (res) {
document.getElementById('taco-hours').textContent = Math.round(res.data.hours).toLocaleString();
document.getElementById('taco-flights').textContent = res.data.flights.toLocaleString();
});
</script>
Top ten pilots
<table id="taco-pilots">
<thead><tr><th>Pilot</th><th>Rank</th><th>Hours</th><th>Average landing</th></tr></thead>
<tbody></tbody>
</table>
<script>
fetch('https://tacoflight.com/api/v1/site/pilots?sort=hours&limit=10&key=taco_site_YOUR_KEY')
.then(function (r) { return r.json(); })
.then(function (res) {
var body = document.querySelector('#taco-pilots tbody');
res.data.forEach(function (p) {
var row = body.insertRow();
[p.name, p.rank || '', p.hours.toFixed(1), p.average_landing ? p.average_landing.fpm + ' fpm' : ''].forEach(function (text) {
row.insertCell().textContent = text;
});
});
});
</script>
A map of every route flown
Uses Leaflet and OpenStreetMap. Thicker lines are flown more often. Add &pilot=38 for one pilot's map.
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css">
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<div id="taco-flown" style="height: 440px"></div>
<script>
var map = L.map('taco-flown').setView([50, 0], 4);
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors'
}).addTo(map);
fetch('https://tacoflight.com/api/v1/site/routes/flown?days=365&key=taco_site_YOUR_KEY')
.then(function (r) { return r.json(); })
.then(function (res) {
var at = {};
res.data.airports.forEach(function (a) { at[a.icao] = [a.lat, a.lon]; });
var most = Math.max.apply(null, res.data.legs.map(function (l) { return l.flights; }));
res.data.legs.forEach(function (l) {
if (!at[l.from] || !at[l.to]) return;
L.polyline([at[l.from], at[l.to]], { weight: 1 + 4 * l.flights / most, opacity: 0.7 }).addTo(map);
});
res.data.airports.forEach(function (a) {
L.circleMarker([a.lat, a.lon], { radius: 3 }).bindTooltip(a.icao + ' ' + a.name).addTo(map);
});
map.fitBounds(Object.values(at), { padding: [20, 20] });
});
</script>
Who is flying now
Checks every 30 seconds.
<p id="taco-flying">Checking who is in the air…</p>
<script>
function tacoFlying() {
fetch('https://tacoflight.com/api/v1/site/flights/live?key=taco_site_YOUR_KEY')
.then(function (r) { return r.json(); })
.then(function (res) {
var f = res.data.flights;
document.getElementById('taco-flying').textContent = f.length
? f.length + ' in the air: ' + f.map(function (x) { return x.flight + ' ' + x.from + ' to ' + x.to; }).join(', ')
: 'Nobody is flying right now.';
});
}
tacoFlying();
setInterval(tacoFlying, 30000);
</script>
From your server, in PHP
Keeps the key off the page and saves each answer for 5 minutes, so a busy website asks once, not once per visitor. Put the key in an environment variable called TACO_KEY.
<?php
function taco(string $path, int $keep = 300): ?array
{
$file = sys_get_temp_dir() . '/taco-' . md5($path) . '.json';
if (is_file($file) && filemtime($file) > time() - $keep) {
return json_decode(file_get_contents($file), true);
}
$context = stream_context_create(['http' => [
'header' => "X-Api-Key: " . getenv('TACO_KEY') . "\r\nAccept: application/json\r\n",
'timeout' => 5,
]]);
$body = @file_get_contents('https://tacoflight.com/api/v1/site' . $path, false, $context);
if ($body === false) {
return is_file($file) ? json_decode(file_get_contents($file), true) : null;
}
file_put_contents($file, $body);
return json_decode($body, true);
}
$stats = taco('/stats')['data'] ?? null;
if ($stats) {
echo number_format($stats['hours']) . ' hours flown by ' . $stats['pilots'] . ' pilots';
}
Live map embed
No key and no code. In the console, open Website API and tick Let other websites show the live map. Then paste this where the map should go, with your airline's code:
<iframe src="https://tacoflight.com/embed/gwyntair/map" title="Gwynt Air live map" width="100%" height="480" style="border:0" loading="lazy"></iframe> Add ?list=0 to the address for the map without the list of flights under it. The map follows the airline's colours and updates itself.
Pilot API
The companion app runs on this, and an in-sim EFB or your own app can too. A pilot signs in with their airline's code, email and password, and gets a token that lasts 90 days. Everything after that is as that pilot, so it can book flights and file PIREPs. Requests from coui:// pages in the simulator are allowed.
curl -X POST https://tacoflight.com/api/v1/auth/token \
-H "Content-Type: application/json" \
-d '{"airline": "gwyntair", "email": "pilot@example.com", "password": "…", "device_name": "Cockpit EFB"}' {
"status": "success",
"message": "Signed in",
"code": 201,
"data": {
"token": "4f1c…e09a",
"token_type": "Bearer",
"expires_at": "2027-02-22T18:51:04Z",
"airline": { "code": "gwyntair", "name": "Gwynt Air", "colors": { "primary": "#0F5C63" } },
"pilot": { "pilot_id": "GWN002", "first_name": "Rhian", "rank": "Senior First Officer", "location": "EGFF" }
}
} Then send the token with every request:
curl -H "Authorization: Bearer 4f1c…e09a" https://tacoflight.com/api/v1/airports/EGFF | Address | What it does |
|---|---|
| GET /config | The airline, its colours, which app features are on, flight rules and realism settings, and the pilot. Call it at start-up. |
| GET /pilots/me | The signed-in pilot: rank, hub, where they are now, hours. |
| GET /routes?dep=EGFF | The schedule, a page at a time. |
| GET /routes/{id}/aircraft | Which aircraft types or airframes this pilot can book on a route, and why any can't be. |
| GET /bookings, POST /bookings | The pilot's bookings, and booking a route: {route_id, aircraft_id?, aircraft_type_id?}. |
| POST /bookings/{id}/depart | Mark the booking as flying. |
| POST /positions | A position report while flying. The answer says when to send the next one. |
| POST /pireps | File the flight when it ends: times, fuel, landing rate and g, defects, and damage such as tail strikes. |
| GET /airports/{icao} | Weather with crosswind for each runway, runways, frequencies, the airline's notes and NOTAMs. |
| GET /airports/{icao}/layout | Taxiways, stands and holding points from OpenStreetMap, for an airport diagram. |
| GET /notices | Current news and NOTAMs. |
| POST /jumpseat, POST /ferry | Move the pilot to another airport, or book an empty aircraft to one, where the airline allows it. |
| DELETE /auth/token | Sign this device out. |
Errors and limits
Errors come in the same wrapper, with a message you can show to people:
{
"status": "error",
"message": "That API key is not valid. It may have been revoked.",
"code": 401
} | 401 | No key, a wrong key, or a revoked one. For the pilot API, the token has expired or the pilot signed out. |
| 402 | The airline is paused because its subscription has lapsed. |
| 403 | The key is tied to other websites than the one asking. |
| 404 | Nothing there, like a pilot number that doesn't exist. |
| 429 | Too many requests. Wait for the number of seconds in the Retry-After header. |
Each visitor can make 120 website API requests a minute with one key. The pilot API allows 240 a minute per signed-in device. Answers carry Cache-Control headers; honour them and you will never get near the limits.
Questions, or something you need that isn't here? Email support@tacoflight.com.