API Documentation

Aviation Database REST API: v1

Docs › Overview

Getting Started

Access the live tracking index (aircraft, callsigns, operators, routes) plus airports, runways, waypoints, countries, aircraft types, and public /media/ artwork through a key-authenticated REST API.

Base URL https://aviationdb.uk/api/v1/

The API is built on REST principles, accepts query parameters for GET requests, and returns standard JSON. All requests require an active API key.

Current dataset

Counts from GET /api/v1/stats (refreshed every few minutes).

Live tracking index

-Operators
-Aircraft
-Callsigns

Reference & geography

-Airports
-Runways
-Waypoints
-Countries
-Aircraft types

Media-ready records

-Airlines w/ logos
-Airlines w/ liveries
-Airports w/ icons
-Airports w/ charts

Full airline and airport responses include media URLs and readiness flags where assets exist. See Airline Full and Airport Full in the sidebar.

Available Endpoints

GET
Airport Short
Compact airport summary: ident, country, GPS code, FIR, and name.
GET
Airport Full
Full airport metadata plus detailed runway specifications.
GET
Aircraft Short
Look up an aircraft by registration or ICAO24 for identity and operator details.
GET
Aircraft Full
Full details including serial, manufacturer, engines, and optional callsign history.
GET
Callsign Search
Look up an exact callsign and retrieve its master record, flights, and aircraft.
GET
Callsigns by Operator
List all known callsigns associated with a given airline operator.
NEW GET
Route Search
Find all callsigns and aircraft that have operated a specific route pair.
GET
Airline fleet & callsigns
Look up an airline for media paths plus tracking-derived callsigns and fleet.
Docs › Overview

Data Coverage

Two layers: a live tracking index that grows with ADS-B sightings, and a curated reference library (airports, countries, types, waypoints, and brand artwork) available immediately through the API.

How data is collected

Tracking index: aircraft, callsign, route, and operator rows are created when that registration or callsign is seen on the live feed. Counts in the first stat group above increase as new traffic is observed.

Reference library: airports, runways, countries, waypoints, and aircraft type metadata are loaded from maintained datasets. Airline, airport, and country browse pages share the same fields returned by airline_full, airport_full, and countries endpoints.

Media: logos, liveries, maps, airport charts, and flags live under /media/. API responses point to public paths and set has_logos, has_chart, and similar flags so clients can skip missing artwork.

Missing records are not errorsA 404 Not Found response for an aircraft, callsign, or operator does not necessarily mean the resource doesn't exist: it may simply not have been observed yet.

You may encounter

SituationExplanation
Aircraft not foundRegistration or ICAO24 hasn't been seen in the live feed yet.
Callsign not foundThat specific callsign variant hasn't been logged yet.
Incomplete operator fleetOnly aircraft observed operating under that name are listed.
Sparse route resultsThe route hasn't been operated many times since data collection began.
Docs › Overview

Authentication

All requests require an active API key via Bearer header or api_key query parameter.

Option 1: Authorization header (recommended)

GET curl -H "Authorization: Bearer asb_live_..." "https://aviationdb.uk/api/v1/aircraft.php?aircraft_short=G-EZUC"

Option 2: Query parameter

GET https://aviationdb.uk/api/v1/airports.php?airport_short=EGKK&api_key=asb_live_...
Docs › Overview

Rate Limits

All API requests are subject to rate limiting based on your current plan.

Daily limits by plan

PlanRequests per day
Free10
30 days of tracking history100
90 days of tracking history1000
180 days of tracking history5000
365 days of tracking history10000

Per-minute limits scale with your daily allowance (minimum 10/min).

Rate limit headersEvery response includes X-RateLimit-Limit and X-RateLimit-Remaining headers so you can track usage.
429 Too Many Requests
Response
{
  "error": {
    "code": 429,
    "message": "Rate limit exceeded. Maximum 10 requests per minute."
  }
}
Docs › Overview

Errors

All error responses follow the same shape: an error object with a numeric code and a human-readable message.

Error shape
{
  "error": {
    "code": 401,
    "message": "Invalid API key."
  }
}
404 doesn't always mean missingFor aircraft, callsigns, and operators a 404 means the resource hasn't been observed in the live feed yet. See Data Coverage.

Status Codes

200
OK: request successful.
400
Bad Request: missing or invalid parameter.
401
Unauthorized: missing or invalid api_key.
403
Forbidden, API key is disabled.
404
Not Found: resource doesn't exist or hasn't been observed yet.
429
Too Many Requests: rate limit exceeded.
500
Server Error: something went wrong on our end.
Docs › Waypoints

Waypoint Short

GET/api/v1/waypoints.php?waypoint_short={ident}&iso_country={iso}&api_key={key}

Compact waypoint record: ident, country, lat/lon, FIR, and a coordinates string. Pass iso_country when the ident appears in multiple countries.

Query Parameters

ParameterRequiredDescription
waypoint_shortstringRequiredWaypoint identifier (2–10 alphanumeric characters).
iso_countrystringOptionalDisambiguate when multiple countries share the same ident.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/waypoints.php?waypoint_short=KESEG&iso_country=UK&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/waypoints.php", params={
    "waypoint_short": "KESEG", "iso_country": "UK", "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ waypoint_short: "KESEG", iso_country: "UK", api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/waypoints.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/waypoints.php?" . http_build_query([
    "waypoint_short" => "KESEG", "iso_country" => "UK", "api_key" => "YOUR_KEY"
]);
200 OKapplication/json
Response
{
  "waypoint": {
    "ident": "KESEG",
    "iso_country": "UK",
    "lat": 60.016111,
    "lon": -6.015556,
    "fir": "EGPX",
    "coordinates": "60.016111, -6.015556"
  }
}
Docs › Waypoints

Waypoint Full

GET/api/v1/waypoints.php?waypoint_full={ident}&iso_country={iso}&api_key={key}

All columns from the waypoints table, including last_updated (from last_fetched). waypoint= is an alias for this endpoint.

Query Parameters

ParameterRequiredDescription
waypoint_fullstringRequired*Waypoint ident. *Or use waypoint= (same response).
iso_countrystringOptionalDisambiguate multi-country idents.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
cURL
curl -X GET "https://aviationdb.uk/api/v1/waypoints.php?waypoint_full=KESEG&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/waypoints.php", params={
    "waypoint_full": "KESEG", "api_key": "YOUR_KEY"
})
200 OKapplication/json
Response
{
  "waypoint": {
    "iso_country": "UK",
    "ident": "KESEG",
    "lat": 60.016111,
    "lon": -6.015556,
    "fir": "EGPX",
    "last_updated": "2026-03-12 14:22:01",
    "coordinates": "60.016111, -6.015556"
  }
}
Docs › Airports

Airport Short

GET /api/v1/airports.php?airport_short={icao}&api_key={key}

Compact airport summary: ident, name, country, IATA/GPS codes, FIR, municipality, coordinates, and elevation.

Query Parameters

ParameterRequiredDescription
airport_shortstringRequiredICAO identifier (e.g. EGKK). 2–5 alphanumeric characters.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/airports.php?airport_short=EGKK&api_key=YOUR_KEY"
Python
import requests
r = requests.get("https://aviationdb.uk/api/v1/airports.php", params={
    "airport_short": "EGKK", "api_key": "YOUR_KEY"
})
print(r.json()["airport"]["name"]) # London Gatwick Airport
JavaScript
const params = new URLSearchParams({ airport_short: "EGKK", api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/airports.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/airports.php?" . http_build_query([
    "airport_short" => "EGKK", "api_key" => "YOUR_KEY"
]);
$data = json_decode(file_get_contents($url), true);
200 OKapplication/json
Response
{
  "airport": {
    "ident": "EGKK",
    "name": "London Gatwick Airport",
    "iso_country": "GB",
    "gps_code": "EGKK",
    "iata": "LGW",
    "FIR": "EGTT",
    "municipality": "London",
    "coordinates": "51.148744, -0.185739",
    "elevation_ft": 202
  }
}
Docs › Airports

Airport Full

GET/api/v1/airports.php?airport_full={icao}&api_key={key}

Every column from the airports table plus all runways rows for that ICAO (full runway column set).

Query Parameters

ParameterRequiredDescription
airport_fullstringRequiredICAO identifier (e.g. EGKK).
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/airports.php?airport_full=EGKK&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/airports.php", params={
    "airport_full": "EGKK", "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ airport_full: "EGKK", api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/airports.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/airports.php?" . http_build_query([
    "airport_full" => "EGKK", "api_key" => "YOUR_KEY"
]);
200 OKapplication/json
Response
{
  "airport": {
    "ident": "EGKK", "type_left": "large_airport",
    "elevation_ft": 202, "iso_country": "GB",
    "iso_region": "GB-ENG", "municipality": "London",
    "gps_code": "EGKK", "local_code": null,
    "coordinates": "51.148744, -0.185739",
    "FIR": "EGTT", "name": "London Gatwick Airport"
  },
  "runways": [
    {
      "id": 239573, "airport_ident": "EGKK",
      "length_ft": 10883, "width_ft": 148,
      "surface": "ASP", "lighted": 1, "closed": 0,
      "le_ident": "08R", "le_heading_degT": 78,
      "he_ident": "26L", "he_heading_degT": 258
    }
  ]
}
Docs › Airports

Runways only

GET/api/v1/airports.php?airport_runways={icao}&api_key={key}

Runway rows only: designators, headings, dimensions, and threshold coordinates. No airport name, ICAO, or location fields in the response (same runway columns as airport_full, minus airport metadata).

Query Parameters

ParameterRequiredDescription
airport_runwaysstringRequiredICAO identifier (e.g. EGKK).
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/airports.php?airport_runways=EGKK&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/airports.php", params={
    "airport_runways": "EGKK", "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ airport_runways: "EGKK", api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/airports.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/airports.php?" . http_build_query([
    "airport_runways" => "EGKK", "api_key" => "YOUR_KEY"
]);
200 OKapplication/json
Response
{
  "runway_count": 2,
  "runways": [
    {
      "length_ft": 10883, "width_ft": 148,
      "surface": "ASP", "lighted": 1, "closed": 0,
      "le_ident": "08R", "le_latitude_deg": 51.1451,
      "le_longitude_deg": -0.212345, "le_heading_degT": 78,
      "he_ident": "26L", "he_heading_degT": 258
    }
  ]
}
Docs › Aircraft

Aircraft Short

GET/api/v1/aircraft.php?aircraft_short={reg_or_icao24}&api_key={key}

Returns a compact aircraft identity record. Accepts either a tail number or a 6-character ICAO24 hex address.

Most-recent recordReturns the most recent record from the history table. If an aircraft has changed operators the current name will be reflected.
Aircraft may not yet be in the databaseRecords are created the first time a registration or ICAO24 address is observed. A 404 means it hasn't been seen yet.

Query Parameters

ParameterRequiredDescription
aircraft_shortstringRequiredRegistration (e.g. G-EZUC) or 6-char ICAO24 hex (e.g. 40643D). Alias: aircraft_info=.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/aircraft.php?aircraft_short=G-EZUC&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/aircraft.php", params={
    "aircraft_short": "G-EZUC", "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ aircraft_short: "G-EZUC", api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/aircraft.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/aircraft.php?" . http_build_query([
    "aircraft_short" => "G-EZUC", "api_key" => "YOUR_KEY"
]);
200 OKapplication/json
Response
{
  "aircraft": {
    "registration": "G-EZUC",
    "icao24": "40643D",
    "icao_type": "A320",
    "aircraft_type": "A320",
    "aircraft_model": "A320-200",
    "operator": "easyJet",
    "airline_code": "EZY",
    "is_private_operator": false
  }
}
Docs › Aircraft

Aircraft Full

GET/api/v1/aircraft.php?aircraft_full={reg_or_icao24}&api_key={key}

Full aircraft row, linked aircraft_details when available, resolved media paths (white template and operator livery), and optional personal callsign history with callsigns=1.

Optional callsign historyAdd &callsigns=1 to include a known_routes array. Use &limit=N to cap results (default 20, max 100).

Query Parameters

ParameterRequiredDescription
aircraft_fullstringRequiredRegistration or 6-char ICAO24 hex address.
callsignsintegerOptionalSet to 1 to include known_routes.
limitintegerOptionalMax callsign records when callsigns=1. Default 20, max 100.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/aircraft.php?aircraft_full=G-EZUC&callsigns=1&limit=5&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/aircraft.php", params={
    "aircraft_full": "G-EZUC", "callsigns": 1, "limit": 5, "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ aircraft_full: "G-EZUC", callsigns: 1, limit: 5, api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/aircraft.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/aircraft.php?" . http_build_query([
    "aircraft_full" => "G-EZUC", "callsigns" => 1, "limit" => 5, "api_key" => "YOUR_KEY"
]);
200 OKapplication/json: without callsigns
Response
{
  "aircraft": {
    "id": 12345, "registration": "G-VIIL", "icao_hex": "4007C4",
    "icao24": "4007C4", "model_icao": "B772", "operator": "British Airways",
    "airline_code": "BAW", "aircraft_details": { "icao": "B772", "name": "Boeing 777-200" },
    "media": {
      "white_template_path": "/media/aircraft_types/B772-white.png",
      "livery_path": "/media/airline_assets/BAW/liveries/BAW-777.png"
    }
  }
}
200 OKapplication/json: with callsigns=1
Response
{
  "aircraft": { /* ...same as above... */ },
  "known_routes": [
    { "callsign": "EZY12AB", "route_from": "EGKK", "route_to": "LEMD" }
  ]
}
Docs › Callsigns

Callsigns by Operator

GET/api/v1/callsigns.php?callsign_operator={operator}&api_key={key}

Returns all known callsigns for a given operator name, ordered by most recent activity.

Case-sensitive operator namesNames are matched exactly as stored (e.g. easyJet, not Easyjet). Use Operator Search to confirm the exact stored name.

Query Parameters

ParameterRequiredDescription
callsign_operatorstringRequiredExact operator name (e.g. Ryanair, easyJet). Min 2 characters.
limitintegerOptionalMax records. Default 10, max 100.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/callsigns.php?callsign_operator=Ryanair&limit=2&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/callsigns.php", params={
    "callsign_operator": "Ryanair", "limit": 2, "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ callsign_operator: "Ryanair", limit: 2, api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/callsigns.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/callsigns.php?" . http_build_query([
    "callsign_operator" => "Ryanair", "limit" => 2, "api_key" => "YOUR_KEY"
]);
200 OKapplication/json
Response
{
  "count": 2,
  "results": [
    {
      "callsign": "RYR13YB", "operator": "Ryanair",
      "route_from": "LEMD", "route_to": "EGSS",
      "callsigns_total": 1, "last_seen_time": "2026-06-07 19:18:43"
    }
  ]
}
Docs › Airlines

Airline Short

GET/api/v1/airlines.php?airline_short={icao_or_name}&api_key={key}

Lookup by ICAO (e.g. BAW), IATA, or operator name. Returns identifying fields including region.

Query Parameters

ParameterRequiredDescription
airline_shortstringRequiredICAO, IATA, or airline name (partial name match supported).
api_keystringRequiredYour active API key.

Example Request

cURL
Python
JavaScript
PHP
cURL
curl -X GET "https://aviationdb.uk/api/v1/airlines.php?airline_short=BAW&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/airlines.php", params={
    "airline_short": "BAW", "api_key": "YOUR_KEY"
})
JavaScript
const params = new URLSearchParams({ airline_short: "BAW", api_key: "YOUR_KEY" });
const data = await fetch(`https://aviationdb.uk/api/v1/airlines.php?${params}`).then(r => r.json());
PHP
$url = "https://aviationdb.uk/api/v1/airlines.php?" . http_build_query([
    "airline_short" => "BAW", "api_key" => "YOUR_KEY"
]);
200 OKapplication/json
Response
{
  "airline": {
    "icao": "BAW",
    "iata": "BA",
    "name": "British Airways",
    "country": "United Kingdom",
    "region": "Europe",
    "status": "active"
  }
}
Docs › Airlines

Airline Full

GET/api/v1/airlines.php?airline_full={icao_or_name}&api_key={key}

Full airlines table row plus media (public /media/… paths for logos, maps, liveries) and media_ready flags for logo/tail assets.

Public imagesPaths under /media/ load in the browser without an API key. Prefix with https://aviationdb.uk when embedding in HTML.

Query Parameters

ParameterRequiredDescription
airline_fullstringRequiredICAO, IATA, or airline name.
api_keystringRequiredYour active API key.

Example Request

cURL
Python
cURL
curl -X GET "https://aviationdb.uk/api/v1/airlines.php?airline_full=BAW&api_key=YOUR_KEY"
Python
r = requests.get("https://aviationdb.uk/api/v1/airlines.php", params={
    "airline_full": "BAW", "api_key": "YOUR_KEY"
})
200 OKapplication/json
Response
{
  "airline": {
    "icao": "BAW", "iata": "BA", "name": "British Airways",
    "region": "Europe", "has_logos": 1, "has_maps": 1,
    "media": {
      "logos": {
        "icon_light": "/media/airline_assets/BAW/logos/icon_animated.svg",
        "tail_2d": "/media/airline_assets/BAW/logos/tail_2d.svg"
      },
      "maps": [ "/media/airline_assets/BAW/maps/europe.png" ],
      "liveries": [ "/media/airline_assets/BAW/liveries/BAW-777.png" ]
    },
    "media_ready": { "logo": true, "tail": true }
  }
}
Docs › Airlines

Airline list by region

GET/api/v1/airlines.php?airline_list={region}&api_key={key}

Paginated airlines in a region with resolved logo/tail URLs and media_ready per row.

Query Parameters

ParameterRequiredDescription
airline_liststringRequiredRegion name (e.g. Europe). See regions=1.
include_neighboursintegerOptionalSet to 1 to include neighbouring regions.
require_logointegerOptionalSet to 1 to omit airlines without a resolvable logo URL.
require_tailintegerOptionalSet to 1 to omit airlines without a resolvable tail icon URL.
limitintegerOptionalMax rows (default 50, max 500).
offsetintegerOptionalPagination offset (default 0).
api_keystringRequiredYour active API key.

Example Request

cURL
curl -X GET "https://aviationdb.uk/api/v1/airlines.php?airline_list=Europe&include_neighbours=1&require_tail=1&limit=10&api_key=YOUR_KEY"
200 OKapplication/json
Response
{
  "region": "Europe",
  "include_neighbours": true,
  "regions_matched": [ "Europe", "Middle East", "Africa" ],
  "limit": 10, "offset": 0, "count": 10,
  "airlines": [
    {
      "icao": "BAW", "name": "British Airways", "region": "Europe",
      "media": { "logo_url": "/media/...", "tail_url": "/media/..." },
      "media_ready": { "logo": true, "tail": true }
    }
  ]
}
Docs › Airlines

Region reference

GET/api/v1/airlines.php?regions=1&api_key={key}

Canonical region names for airline_list and country_list, plus the neighbour map used when include_neighbours=1.

Query Parameters

ParameterRequiredDescription
regionsflagRequiredSet to 1.
api_keystringRequiredYour active API key.

Example Request

cURL
curl -X GET "https://aviationdb.uk/api/v1/airlines.php?regions=1&api_key=YOUR_KEY"
200 OKapplication/json
Response
{
  "airline_regions": [ "Africa", "Asia", "Europe", "Middle East", "North America", "Oceania", "South America" ],
  "country_regions": [ "Africa", "Americas", "Asia", "Europe", "Oceania" ],
  "neighbours": {
    "Europe": [ "Middle East", "Africa", "Asia" ]
  }
}
Docs › Airlines

Fleet & callsigns

GET/api/v1/airlines.php?airline_tracking={icao_or_name}&api_key={key}

Airline directory (short + full with media) plus live-tracking-derived callsigns and aircraft seen on the network for that ICAO code.

Legacyoperator.php?operator_search= still works (deprecated) with the older operator summary shape.

Query Parameters

ParameterRequiredDescription
airline_trackingstringRequiredICAO, IATA, or airline name.
limitintegerOptionalMax callsign rows (default 20, max 100). Does not limit aircraft list.
api_keystringRequiredYour active API key.

Example Request

cURL
curl -X GET "https://aviationdb.uk/api/v1/airlines.php?airline_tracking=easyJet&limit=5&api_key=YOUR_KEY"
200 OKapplication/json
Response
{
  "airline": { "icao": "EZY", "name": "easyJet", "region": "Europe" },
  "airline_full": { "media": { "logos": { ... } }, "media_ready": { "logo": true, "tail": true } },
  "tracking": { "total_callsigns": 842, "total_aircraft": 156, "last_seen_time": "2026-06-08 01:12:04" },
  "callsigns": [
    { "callsign": "EZY65CG", "route_from": "LPPT", "route_to": "EGGW", "callsigns_total": 1 }
  ],
  "aircraft": [
    { "registration": "G-EZUC", "icao24": "40643D", "aircraft_type": "A320" }
  ]
}
Docs › Countries

Country Short

GET/api/v1/countries.php?country_short={iso_or_name}&api_key={key}

ISO code, name, regions, aircraft registration_prefix, and public flag_url.

Query Parameters

ParameterRequiredDescription
country_shortstringRequiredISO 2/3 letter code or country name.
api_keystringRequiredYour active API key.

Example Request

cURL
curl -X GET "https://aviationdb.uk/api/v1/countries.php?country_short=GB&api_key=YOUR_KEY"
200 OKapplication/json
Response
{
  "country": {
    "iso": "GB",
    "name": "United Kingdom",
    "region": "Europe",
    "airline_region": "Europe",
    "registration_prefix": "G-",
    "flag_url": "/media/countries/gb.svg",
    "has_flag": true
  }
}
Docs › Countries

Country Full

GET/api/v1/countries.php?country_full={iso_or_name}&api_key={key}

Every column from the countries table plus registration_prefix, flag_url, and airline_region.

Query Parameters

ParameterRequiredDescription
country_fullstringRequiredISO 2/3 letter code or country name.
api_keystringRequiredYour active API key.

Example Request

cURL
curl -X GET "https://aviationdb.uk/api/v1/countries.php?country_full=United Kingdom&api_key=YOUR_KEY"
200 OKapplication/json
Response
{
  "country": {
    "iso": "GB", "name": "United Kingdom", "capital": "London",
    "region": "Europe", "subregion": "Northern Europe",
    "airline_region": "Europe",
    "registration_prefix": "G-",
    "flag_url": "/media/countries/gb.svg"
  }
}
Docs › Countries

Country list by region

GET/api/v1/countries.php?country_list={region}&api_key={key}

Countries filtered by airline-style region names (same as airline_list), with optional prefix/flag filters.

Query Parameters

ParameterRequiredDescription
country_liststringRequiredRegion (e.g. Europe).
include_neighboursintegerOptional1 to include neighbouring regions.
require_prefixintegerOptional1 to omit countries without a known registration prefix.
require_flagintegerOptional1 to require has_flag.
limit / offsetintegerOptionalPagination (default limit 50, max 500).
api_keystringRequiredYour active API key.

Example Request

cURL
curl -X GET "https://aviationdb.uk/api/v1/countries.php?country_list=Europe&require_prefix=1&limit=20&api_key=YOUR_KEY"
200 OKapplication/json
Response
{
  "region": "Europe",
  "total_matched": 42,
  "count": 20,
  "countries": [
    {
      "iso": "GB", "name": "United Kingdom",
      "registration_prefix": "G-", "airline_region": "Europe"
    }
  ]
}
Docs › Personal API

Active Flights

GET/api/v1/me/active

Returns aircraft currently tracked in your reception area. Data is scoped exclusively to the API key owner and requires an active tracking subscription.

Subscriber only. Free or verified-only accounts receive 403. Authenticate with Authorization: Bearer YOUR_KEY or ?api_key=.

Query Parameters

ParameterRequiredDescription
api_keystringOptionalYour active API key (if not using Bearer header).

Example Request

cURL
Python
JavaScript
cURL
curl -H "Authorization: Bearer YOUR_KEY" "https://aviationdb.uk/api/v1/me/active"
Python
r = requests.get("https://aviationdb.uk/api/v1/me/active", headers={"Authorization": "Bearer YOUR_KEY"})
JavaScript
const data = await fetch("https://aviationdb.uk/api/v1/me/active", {
  headers: { Authorization: "Bearer YOUR_KEY" }
}).then(r => r.json());
200 OKapplication/json
Response
{
  "active_now": 2,
  "flights": [
    {
      "callsign": "EZY12AB",
      "icao24": "40643D",
      "registration": "G-EZUC",
      "lat": 51.15, "lon": -0.19,
      "airline": "easyJet",
      "origin_icao": "EGKK", "dest_icao": "LEMD",
      "aircraft_type": "A320",
      "altitude": 35000, "speed": 420, "heading": 120,
      "last_updated": "2026-06-07 22:14:09",
      "aircraft_seen_total": 12, "callsign_seen_total": 4
    }
  ]
}
Docs › Personal API

Sightings History

GET/api/v1/me/sightings

Paginated personal sighting log, clamped to your plan history window. Optional filters for registration, callsign, and since timestamp.

Query Parameters

ParameterRequiredDescription
limitintegerOptionalMax records. Default 50, max 100.
offsetintegerOptionalPagination offset. Default 0.
registrationstringOptionalFilter by tail number (e.g. G-EZUC).
callsignstringOptionalFilter by callsign.
sincestringOptionalOnly sightings on or after this timestamp (ISO 8601 or YYYY-MM-DD HH:MM:SS).
api_keystringOptionalYour active API key (if not using Bearer header).

Example Request

cURL
Python
cURL
curl -H "Authorization: Bearer YOUR_KEY" "https://aviationdb.uk/api/v1/me/sightings?registration=G-EZUC&limit=20&offset=0"
Python
r = requests.get("https://aviationdb.uk/api/v1/me/sightings",
    headers={"Authorization": "Bearer YOUR_KEY"},
    params={"registration": "G-EZUC", "limit": 20})
200 OKapplication/json
Response
{
  "history_days": 30, "total": 142, "limit": 20, "offset": 0,
  "sightings": [
    {
      "callsign": "EZY12AB", "registration": "G-EZUC",
      "operator": "easyJet",
      "route_from": "EGKK", "route_to": "LEMD",
      "aircraft_type": "A320",
      "region_label": "London",
      "show_in_community": 1,
      "seen_at": "2026-06-07 22:14:09"
    }
  ]
}
Docs › Personal API

Tracking Summary

GET/api/v1/me/summary

Aggregate counts for your account within the current plan window: total sightings, unique registrations, and active aircraft now.

Example Request

cURL
curl -H "Authorization: Bearer YOUR_KEY" "https://aviationdb.uk/api/v1/me/summary"
200 OKapplication/json
Response
{
  "plan": { "name": "30 days of tracking history", "history_days": 30 },
  "total_sightings": 142,
  "unique_registrations": 87,
  "active_now": 1
}
Docs › Personal API

Aircraft Lookup NEW

GET/api/v1/me/aircraft?registration={reg}

Global aircraft short/full records (including type details, media paths, and linked airline full when applicable), plus your sightings, route history, and stats within your plan window.

Query Parameters

ParameterRequiredDescription
registrationstringRequiredAircraft tail number (e.g. G-EZUC).
limitintegerOptionalMax recent sightings returned. Default 20, max 100.
api_keystringOptionalYour active API key (if not using Bearer header).

Example Request

cURL
Python
cURL
curl -H "Authorization: Bearer YOUR_KEY" "https://aviationdb.uk/api/v1/me/aircraft?registration=G-EZUC&limit=10"
Python
r = requests.get("https://aviationdb.uk/api/v1/me/aircraft",
    headers={"Authorization": "Bearer YOUR_KEY"},
    params={"registration": "G-EZUC", "limit": 10})
200 OKapplication/json
Response
{
  "registration": "G-EZUC", "history_days": 30,
  "aircraft": { /* short tier */ },
  "aircraft_full": { "media": { "livery_path": "/media/..." }, "aircraft_details": { ... } },
  "airline_full": { "media": { "logos": { ... } } },
  "your_stats": {
    "total_sightings": 12, "unique_callsigns": 4,
    "first_seen": "2026-05-01 08:12:00", "last_seen": "2026-06-07 22:14:09"
  },
  "routes": [{ "route_from": "EGKK", "route_to": "LEMD", "times_seen": 5 }],
  "sightings": [ ... ]
}
Docs › Personal API

Callsign Lookup NEW

GET/api/v1/me/callsign?callsign={callsign}

Returns global route metadata for a callsign plus your personal sightings, aircraft operated, and stats within your plan window.

Query Parameters

ParameterRequiredDescription
callsignstringRequiredFlight callsign (e.g. EZY12AB).
limitintegerOptionalMax recent sightings. Default 20, max 100.
api_keystringOptionalYour active API key (if not using Bearer header).

Example Request

cURL
curl -H "Authorization: Bearer YOUR_KEY" "https://aviationdb.uk/api/v1/me/callsign?callsign=EZY12AB"
200 OKapplication/json
Response
{
  "callsign": "EZY12AB",
  "route": { "callsign": "EZY12AB", "route_from": "EGKK", "route_to": "LEMD", "operator": "easyJet" },
  "your_stats": { "total_sightings": 8, "unique_aircraft": 2 },
  "aircraft": [{ "registration": "G-EZUC", "times_seen": 5 }],
  "sightings": [ ... ]
}
Docs › Personal API

Route History NEW

GET/api/v1/me/route?route_search={ICAO-ICAO}

Returns your personal sightings on a specific route pair, including distinct callsigns and aircraft you have logged on that leg.

Route formatSupply route_search=EGKK-LEMD or separate route_from and route_to ICAO codes.

Query Parameters

ParameterRequiredDescription
route_searchstringRequired*Route pair in ICAO-ICAO format (e.g. EGKK-LEMD). *Or use route_from + route_to.
route_fromstringOptionalDeparture ICAO when not using route_search.
route_tostringOptionalArrival ICAO when not using route_search.
limitintegerOptionalMax recent sightings. Default 20, max 100.
api_keystringOptionalYour active API key (if not using Bearer header).

Example Request

cURL
Python
cURL
curl -H "Authorization: Bearer YOUR_KEY" "https://aviationdb.uk/api/v1/me/route?route_search=EGKK-LEMD&limit=10"
Python
r = requests.get("https://aviationdb.uk/api/v1/me/route",
    headers={"Authorization": "Bearer YOUR_KEY"},
    params={"route_search": "EGKK-LEMD"})
200 OKapplication/json
Response
{
  "route": { "from": "EGKK", "to": "LEMD" },
  "your_stats": { "total_sightings": 15, "unique_aircraft": 6, "unique_callsigns": 8 },
  "callsigns": [{ "callsign": "EZY12AB", "times_seen": 4 }],
  "aircraft": [{ "registration": "G-EZUC", "times_seen": 3 }],
  "sightings": [ ... ]
}
Docs › Reference

Response Objects

Field-level reference for every object returned by the API.

Airport (Short)

{
"ident"string- ICAO identifier (e.g. EGKK)
"iso_country"string- 2-letter ISO country code
"gps_code"string- GPS code (usually matches ident)
"FIR"string- Flight Information Region code
"name"string- Full airport name
}

Airport (Full)

The airport object includes every column from the airports table (passengers, website, wikipedia_url, has_chart, has_icon, etc.). runways is an array of full runway rows.

{
"type_left"string- Classification (e.g. large_airport, small_airport)
"elevation_ft"integer- Field elevation in feet
"iso_region"string- Region code (e.g. GB-ENG)
"municipality"string- Associated city or municipality
"local_code"string | null- Local aviation code if applicable
"coordinates"string- Decimal lat/lon (e.g. "51.148744, -0.185739")
"runways"array- Array of runway objects (see below)
}

Runway

{
"length_ft"integer
"width_ft"integer
"surface"string- Surface material code (e.g. ASP, CON, GRS)
"lighted"integer- 1 if lighted
"closed"integer- 1 if closed
"le_ident"string- Low-end threshold designator (e.g. 08R)
"le_heading_degT"float- Low-end true heading
"he_ident"string- High-end threshold designator (e.g. 26L)
"he_heading_degT"float
}

Aircraft (Short)

{
"registration"string- Aircraft tail number (e.g. G-EZUC)
"icao24"string- 24-bit Mode-S transponder address (e.g. 40643D)
"aircraft_type"string- ICAO type code (e.g. A320)
"aircraft_model"string- Common model name (e.g. A320-200)
"operator"string- Current operator name
}

Aircraft (Full)

{
…aircraft table columns…object- id, icao_hex, registration, model_icao, operator, airline_code, serial_number, year_built, etc.
"icao24"string- Alias of icao_hex
"aircraft_details"object | null- Linked type record from aircraft_details when model_icao matches
"media"object- white_template_path, livery_path (public paths under /media/…)
"known_routes"array | undefined- Top-level key when callsigns=1 on aircraft_full
}

Waypoint (Full)

{
"iso_country"string
"ident"string
"lat"float
"lon"float
"fir"string
"last_updated"string- UTC timestamp from last_fetched
}

Airline (Full)

{
…airlines table columns…object
"media"object- logos (icon/banner/tail paths), maps[], liveries[]
"media_ready"object- logo, tail booleans
}

Country (Short)

{
"iso"string
"name"string
"region"string- UN macro region from countries table
"airline_region"string- Mapped to airlines.region vocabulary
"registration_prefix"string | null- ICAO nationality mark (e.g. G-)
"flag_url"string | null- Public /media/countries/… path
}

Callsign (Master)

{
"callsign"string
"operator"string
"route_from"string- Most common departure airport ICAO
"route_to"string- Most common arrival airport ICAO
"callsigns_total"integer- Times this callsign was logged
"last_seen_time"string- UTC timestamp of most recent sighting
}

Operator

{
"operator"string
"total_callsigns"integer- Total distinct callsigns observed
"total_aircraft"integer- Total distinct aircraft observed
"last_seen_time"string- UTC timestamp of most recent activity
}