Single aircraft (by tail-number, Mode-S or ID) / TIER 1
Returns: Single aircraft, best matching specified search criteria, if found. Please note that all found aircraft will be impersonated with registration information matching the requested tail number or Mode-S even though an aircraft might be flying under a different registration right now.
Request
- Base URL: https://api.aerodatabox.com
- URL: https://api.aerodatabox.com/aircrafts/{searchBy}/{searchParam}
- Auth: API key in header X-Api-Key
Path parameters
Criteria to search aircraft by<p>Possible values:</p>
<ul> <li><b>0 - Id</b>: ID of the aircraft (as stored in this API)</li> <li><b>1 - Reg</b>: Search by aircraft tail-number</li> <li><b>2 - Icao24</b>: Search by 24-bit ICAO Mode-S Transponder code</li> </ul>Criteria to search aircraft by
Value of the search criteria. If searchBy is:
- id: then this field should be an ID of an aircraft (as specified in the database of this API);
- reg: then this field should be a tail-number of an aircraft (with or without spaces or dashes, any case formats are acceptable, e.g.PH-BXO, DeMhJ), multiple matches are possible - see below;
- icao24, then this field should be a ICAO 24-bit Mode-S address of an aircraft specified in hexadecimal format (e.g. 484161, 483EFD), multiple matches are possible - see below.
If multiple matches are possible:
There cannot be more than one aircraft actively flying with the same tail-number or ICAO 24-bit Mode-S address at any moment of time. However, historically aircraft tail-numbers or addresses may be used multiple times by different aircraft. This endpoint is supposed to return a single aircraft data. In case if multiple aircraft satisfy the search criteria, the best match will be chosen as follows:
- If an active aircraft is found according to the requested critera, it is returned.
- Otherwise, an aircraft that used requested tail-number/address the most recently is returned.
- If usage time may not be determined, the aircraft stored in the database the most recently is returned.
Query parameters
Should include aircraft image (default: false).
Should include the history of aircraft registrations (default: false).
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.