Free · No API key · Database updated 14/11/26

Simple Mode-S Hex API

A simple API for avgeeks: use the 24-bit ICAO hex code or callsign from your ADS-B receiver to get the aircraft, its route and the airports it flies between. See it in action on the live map.

Try it live
Press Send to call the API.
Aircraft photo
3.1M+
Requests served daily
14/11/26
Database last updated
99.95%
Uptime
Documentation

API reference

  Overview

Base URL https://hexdb.io/api/v2. Every lookup is a GET on a resource, every response is JSON (errors too), lookups are case-insensitive, and missing values are null rather than empty strings.

GET Index of endpoints https://hexdb.io/api/v2

  Aircraft

Look up an aircraft by its 24-bit ICAO address (Mode-S hex, 6 characters), or search by registration. images is null when there's no photo.

GET By hex https://hexdb.io/api/v2/aircraft/{hex}
GET By registration https://hexdb.io/api/v2/aircraft?registration={registration}
GET https://hexdb.io/api/v2/aircraft/4010ee 200
{"hex":"4010EE","registration":"G-EZBZ","manufacturer":"Airbus","type":"A319 111","icao_type_code":"A319","registered_owner":"easyJet Airline","operator_flag_code":"EZY","images":{"full":"https://hexdb.io/static/aircraft-images/G-EZBZ.jpg","thumbnail":"https://hexdb.io/static/aircraft-images/G-EZBZ-thumb.jpg"},"links":{"self":"/api/v2/aircraft/4010EE"}}
GET https://hexdb.io/api/v2/aircraft/000000 404
{"error":{"status":404,"code":"aircraft_not_found","message":"No aircraft with hex code 000000."}}
GET https://hexdb.io/api/v2/aircraft?registration=G-EZBZ 200
{"count":1,"results":[{"hex":"4010EE","registration":"G-EZBZ","...":"..."}]}

A registration search always returns a list (empty if nothing matches), because a registration can be reused by more than one airframe.

  Aircraft images

Redirects (302) straight to the photo, so you can use the URL as an image source. Returns a JSON 404 when there's no photo.

GET Full size https://hexdb.io/api/v2/aircraft/{hex}/image
GET Thumbnail https://hexdb.io/api/v2/aircraft/{hex}/image/thumbnail
HTML
<img src="https://hexdb.io/api/v2/aircraft/4010EE/image/thumbnail">

  Airports

Look up an airport by its 4-letter ICAO code or 3-letter IATA code. The code type is worked out from its length.

GET https://hexdb.io/api/v2/airports/{icao_or_iata}
GET https://hexdb.io/api/v2/airports/EGLL 200
{"icao":"EGLL","iata":"LHR","name":"Heathrow Airport","country_code":"GB","region":"England","latitude":51.4706,"longitude":-0.461941}
GET https://hexdb.io/api/v2/airports/AAAA 404
{"error":{"status":404,"code":"airport_not_found","message":"No airport with ICAO code AAAA."}}

  Routes

Look up the route flown under an ICAO callsign (as broadcast over ADS-B, e.g. EIN17A). Each airport comes with both its ICAO and IATA codes. airports lists every stop in order, for multi-leg routes.

GET https://hexdb.io/api/v2/routes/{callsign}
GET https://hexdb.io/api/v2/routes/EIN17A 200
{"callsign":"EIN17A","origin":{"icao":"EIDW","iata":"DUB","name":"Dublin Airport","country_code":"IE","region":"Dublin","latitude":53.4213,"longitude":-6.27007},"destination":{"icao":"EGLL","iata":"LHR","name":"Heathrow Airport","country_code":"GB","region":"England","latitude":51.4706,"longitude":-0.461941},"airports":[{"icao":"EIDW","iata":"DUB","...":"..."},{"icao":"EGLL","iata":"LHR","...":"..."}],"updated_at":"2014-04-20T11:02:19Z"}
GET https://hexdb.io/api/v2/routes/ABC123 404
{"error":{"status":404,"code":"route_not_found","message":"No route for callsign ABC123."}}

  Errors

Errors use the HTTP status code and the same JSON shape. code is stable and safe to match on; message is for humans.

StatusWhen
400The value isn't valid, e.g. a hex code that isn't 6 hex characters
404Nothing found, or the path doesn't exist
405Anything other than GET
GET https://hexdb.io/api/v2/aircraft/XYZ 400
{"error":{"status":400,"code":"invalid_hex_code","message":"'XYZ' is not a valid hex code."}}

  Upgrading from v1 & legacy

v1 and the legacy endpoints keep working. Here's where each one lives in v2.

Oldv2
/api/v1/aircraft/{hex}/api/v2/aircraft/{hex}
/hex-reg, /hex-type, /hex-airlineregistration, type, registered_owner in /api/v2/aircraft/{hex}
/reg-hex/api/v2/aircraft?registration={reg}
/hex-image, /hex-image-thumb/api/v2/aircraft/{hex}/image[/thumbnail]
/api/v1/airport/icao|iata/{code}/api/v2/airports/{code}
/icao-iata, /iata-icao, /icao-airport, /iata-airporticao, iata, name in /api/v2/airports/{code}
/api/v1/route/icao|iata/{callsign}/api/v2/routes/{callsign}
/callsign-route, /callsign-origin_*, /callsign-des_*origin, destination in /api/v2/routes/{callsign}