All APIs

Airports API

Search, retrieve, and locate airports worldwide. Query by name, ICAO/IATA codes, country, or geographic coordinates using the geo-indexed location field.

Endpoints

Reference

GEThttps://api.liteapps.co.uk/airports/get

Get

Fetch a single airport by ICAO/IATA code or Elasticsearch document ID. Codes are normalised to uppercase before lookup.

Parameters

NameTypeReq.Description
codestringNoICAO or IATA code (case-insensitive).
idstringNoElasticsearch document ID.
Response
{
  "result": {
    "name": "London Heathrow Airport",
    "city": "London",
    "icao": "EGLL",
    "iata": "LHR",
    "country": "United Kingdom",
    "state": "England",
    "location": {
      "lat": 51.4706,
      "lon": -0.4619
    },
    "_id": "egll-001"
  }
}
GEThttps://api.liteapps.co.uk/airports/nearby

Nearby

Find airports within a radius of a latitude/longitude using the geo-indexed location field ({ lat, lon }). Results are sorted by distance ascending and include distance_km on each result.

Parameters

NameTypeReq.Description
latnumberYesCentre latitude (-90 to 90).
lonnumberYesCentre longitude (-180 to 180).
radius_kmnumberNoSearch radius in km (default 50, max 500).
limitnumberNoMax results (1–100, default 20).
Response
{
  "query": {
    "lat": 51.47,
    "lon": -0.45,
    "radius_km": 50
  },
  "results": [
    {
      "name": "London Heathrow Airport",
      "city": "London",
      "icao": "EGLL",
      "iata": "LHR",
      "country": "United Kingdom",
      "location": {
        "lat": 51.4706,
        "lon": -0.4619
      },
      "distance_km": 1.24,
      "_id": "egll-001"
    },
    {
      "name": "London Gatwick Airport",
      "city": "London",
      "icao": "EGKK",
      "iata": "LGW",
      "country": "United Kingdom",
      "location": {
        "lat": 51.1537,
        "lon": -0.1821
      },
      "distance_km": 38.71,
      "_id": "egkk-001"
    }
  ]
}
GEThttps://api.liteapps.co.uk/airports/countries

Countries

List distinct countries from the airports index. Useful for populating country filter dropdowns.

Parameters

NameTypeReq.Description
sizenumberNoMax countries to return (1–500, default 100).
Response
{
  "results": [
    "France",
    "Germany",
    "United Kingdom",
    "United States"
  ]
}
Try It Live

API Explorer

Enter your API key and test airports api endpoints directly from this page.

Fuzzy search across name, city, ICAO, IATA, country, and state fields. Returns up to 20 matches by default with optional country and state filters.

GET https://api.liteapps.co.uk/airports/search

Error Responses

StatusMeaning
401Missing API key
403Invalid or disabled API key, or key not authorised for this endpoint
400Invalid query parameter (e.g. query too short, missing lat/lon)
404Record not found, or unknown endpoint
429Monthly quota exceeded
500Server error