Utile v1 / Aeroporturi
Airport detail
A whole airport: the codes, the position, the elevation, the country and the runways, each with its length and surface.
GET
https://oneapi.ro/api/utile/v1/aeroporturi/{cod}
Path parameters
NameTypeDescriptionExample
codrequired
string
Airport code — IATA (three letters) or ICAO (four letters).
Query parameters
This route accepts no query parameters.
How it behaves
- Any of the three codes is accepted. When the same string is IATA for one airport and ICAO for another, IATA wins: it is the code printed on the ticket, so the more likely intent.
- Runways come sorted by length, longest first, so the first is the main one. Length is given both in feet (as the source publishes it) and in metres.
capeteare the identifiers of the two runway ends (08/26), which encode the heading in tens of degrees.
What it is for
- Translate an IATA code from a ticket into a name, city and coordinates.
- Check whether an airport can take a given aircraft type, by looking at runway lengths.
- Get the exact coordinates, for a map or a distance calculation.
Response structure
All fields below live inside data.
FieldTypeDescription
aeroport.ident
string
aeroport.iata
string
aeroport.icao
string
aeroport.nume
string
The name, exactly as the source publishes it.
aeroport.tip
string
aeroport.municipiu
string
The municipality served.
aeroport.tara.cod
string
Code from the source code list — the key you filter on.
aeroport.tara.nume
string
The name, exactly as the source publishes it.
aeroport.regiune.cod
string
Code from the source code list — the key you filter on.
aeroport.regiune.nume
string
The name, exactly as the source publishes it.
aeroport.continent
string
The continent it is on.
aeroport.latitudine
number
Latitude, in decimal degrees (WGS 84).
aeroport.longitudine
number
Longitude, in decimal degrees (WGS 84).
aeroport.altitudine_ft
integer
aeroport.altitudine_m
integer
aeroport.curse_regulate
boolean
aeroport.wikipedia
string
Address of the Wikipedia article.
aeroport.site
string
Address of the official website.
aeroport.piste[]
array
The runways, longest first.
aeroport.piste[].lungime_ft
integer
aeroport.piste[].lungime_m
integer
Length in metres, converted from feet.
aeroport.piste[].latime_ft
integer
aeroport.piste[].suprafata
string
The runway material, as the source writes it (
ASP, CON, GRS).
aeroport.piste[].iluminata
boolean
Whether the runway has lighting.
aeroport.piste[].inchisa
boolean
Whether the runway is out of use even though the airport operates.
aeroport.piste[].capete
array
The runway end identifiers.
aeroport.numar_piste
integer
How many runways the airport has.
sursa.nume
string
Name of the official source.
sursa.url
string
Public address of the source.
sursa.licenta
string
The licence under which the source allows reuse.
Response examples
GEThttps://oneapi.ro/api/utile/v1/aeroporturi/OTP
{
"data": {
"aeroport": {
"ident": "LROP",
"iata": "OTP",
"icao": "LROP",
"nume": "Bucharest Henri Coandă International Airport",
"tip": "large_airport",
"municipiu": "Otopeni",
"tara": {
"cod": "RO",
"nume": "România"
},
"regiune": {
"cod": "RO-IF",
"nume": "Ilfov County"
},
"continent": "EU",
"latitudine": 44.571792,
"longitudine": 26.103285,
"altitudine_ft": 314,
"altitudine_m": 96,
"curse_regulate": true,
"wikipedia": "https://en.wikipedia.org/wiki/Henri_Coand%C4%83_International_Airport",
"site": "http://www.bucharestairports.ro/en/",
"piste": [
{
"lungime_ft": 11484,
"lungime_m": 3500,
"latime_ft": 148,
"suprafata": "ASP",
"iluminata": true,
"inchisa": false,
"capete": [
"08L",
"26R"
]
}
],
"numar_piste": 2
},
"sursa": {
"nume": "OurAirports — export public zilnic",
"url": "https://ourairports.com/data/",
"licenta": "Domeniu public („All data is released to the Public Domain\"), fără obligație de atribuire."
}
}
}
GEThttps://oneapi.ro/api/utile/v1/aeroporturi/LROP
{
"data": {
"aeroport": {
"ident": "LROP",
"iata": "OTP",
"icao": "LROP",
"nume": "Bucharest Henri Coandă International Airport",
"tip": "large_airport",
"municipiu": "Otopeni",
"tara": {
"cod": "RO",
"nume": "România"
},
"regiune": {
"cod": "RO-IF",
"nume": "Ilfov County"
},
"continent": "EU",
"latitudine": 44.571792,
"longitudine": 26.103285,
"altitudine_ft": 314,
"altitudine_m": 96,
"curse_regulate": true,
"wikipedia": "https://en.wikipedia.org/wiki/Henri_Coand%C4%83_International_Airport",
"site": "http://www.bucharestairports.ro/en/",
"piste": [
{
"lungime_ft": 11484,
"lungime_m": 3500,
"latime_ft": 148,
"suprafata": "ASP",
"iluminata": true,
"inchisa": false,
"capete": [
"08L",
"26R"
]
}
],
"numar_piste": 2
},
"sursa": {
"nume": "OurAirports — export public zilnic",
"url": "https://ourairports.com/data/",
"licenta": "Domeniu public („All data is released to the Public Domain\"), fără obligație de atribuire."
}
}
}
GEThttps://oneapi.ro/api/utile/v1/aeroporturi/LRCL
{
"data": {
"aeroport": {
"ident": "LRCL",
"iata": "CLJ",
"icao": "LRCL",
"nume": "Avram Iancu Cluj International Airport",
"tip": "large_airport",
"municipiu": "Cluj-Napoca",
"tara": {
"cod": "RO",
"nume": "România"
},
"regiune": {
"cod": "RO-CJ",
"nume": "Cluj County"
},
"continent": "EU",
"latitudine": 46.786042,
"longitudine": 23.685733,
"altitudine_ft": 1039,
"altitudine_m": 317,
"curse_regulate": true,
"wikipedia": "https://en.wikipedia.org/wiki/Cluj_International_Airport",
"site": "http://www.airportcluj.ro/",
"piste": [
{
"lungime_ft": 6693,
"lungime_m": 2040,
"latime_ft": 148,
"suprafata": "CON",
"iluminata": true,
"inchisa": false,
"capete": [
"07",
"25"
]
}
],
"numar_piste": 2
},
"sursa": {
"nume": "OurAirports — export public zilnic",
"url": "https://ourairports.com/data/",
"licenta": "Domeniu public („All data is released to the Public Domain\"), fără obligație de atribuire."
}
}
}
Error codes
| Code | Slug | When it occurs |
|---|---|---|
| 401 | neautentificat | Token missing, invalid, expired or revoked. |
| 403 | feature_indisponibil | The current plan does not include the feature the route depends on. |
| 404 | negasit | No airport exists with the given code. |
| 429 | cota_depasita | The plan's monthly quota has been exceeded (see Retry-After). |
All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.
{
"eroare": {
"cod": "negasit",
"mesaj": "No airport exists with the given code."
}
}