{
"count": 3,
"items": [
{
"route": "JFK-LHR",
"from": {
"iata": "JFK",
"icao": "KJFK",
"name": "John F. Kennedy International Airport",
"city": "New York",
"countryCode": "US",
"latitude": 40.639447,
"longitude": -73.779317
},
"to": {
"iata": "LHR",
"icao": "EGLL",
"name": "London Heathrow Airport",
"city": "London",
"countryCode": "GB",
"latitude": 51.470748,
"longitude": -0.459909
},
"greatCircleKm": 5539.8,
"miles": 3442.3,
"nauticalMiles": 2991.3,
"initialBearingDeg": 51.4,
"initialBearingCompass": "NE",
"estimatedFlightMinutes": 430,
"estimatedFlightTime": "7h 10m",
"estimateAssumptions": "Estimate only: block time = distance / 830 km/h + 30 min taxi/climb/descent overhead. Not a schedule.",
"fromTimezone": "America/New_York",
"toTimezone": "Europe/London",
"timezoneDifferenceHours": 5,
"co2": {
"defraCategory": "long-haul",
"kgPerPassenger": 846.6,
"kgPerPassengerWithoutRF": 501,
"kgPerPassengerByClass": {
"economy": 648.4,
"premiumEconomy": 1037.4,
"business": 1880.2,
"first": 2593.4
},
"factorKgPerPassengerKm": 0.15282,
"includesRadiativeForcing": true,
"source": "UK DESNZ/DEFRA GHG conversion factors 2025, Business travel- air (direct flights, 8% distance uplift included)"
},
"scrapedAt": "2026-11-09T14:39:10Z"
},
{
"route": "SOF-VAR",
"from": {
"iata": "SOF",
"icao": "LBSF",
"name": "Sofia Airport",
"city": "Sofia",
"countryCode": "BG",
"latitude": 42.696357,
"longitude": 23.417671
},
"to": {
"iata": "VAR",
"icao": "LBWN",
"name": "Varna Airport",
"city": "Varna",
"countryCode": "BG",
"latitude": 43.232101,
"longitude": 27.8251
},
"greatCircleKm": 363.5,
"miles": 225.9,
"nauticalMiles": 196.3,
"initialBearingDeg": 79.1,
"initialBearingCompass": "E",
"estimatedFlightMinutes": 56,
"estimatedFlightTime": "0h 56m",
"estimateAssumptions": "Estimate only: block time = distance / 830 km/h + 30 min taxi/climb/descent overhead. Not a schedule.",
"fromTimezone": "Europe/Sofia",
"toTimezone": "Europe/Sofia",
"timezoneDifferenceHours": 0,
"co2": {
"defraCategory": "international",
"kgPerPassenger": 51.8,
"kgPerPassengerWithoutRF": 30.6,
"kgPerPassengerByClass": {
"economy": 39.7,
"premiumEconomy": 63.5,
"business": 115.1,
"first": 158.7
},
"factorKgPerPassengerKm": 0.14253,
"includesRadiativeForcing": true,
"source": "UK DESNZ/DEFRA GHG conversion factors 2025, Business travel- air (direct flights, 8% distance uplift included)"
},
"scrapedAt": "2026-11-09T14:39:10Z"
},
{
"route": "LAX-NRT",
"from": {
"iata": "LAX",
"icao": "KLAX",
"name": "Los Angeles International Airport",
"city": "Los Angeles",
"countryCode": "US",
"latitude": 33.942501,
"longitude": -118.407997
},
"to": {
"iata": "NRT",
"icao": "RJAA",
"name": "Narita International Airport",
"city": "Narita",
"countryCode": "JP",
"latitude": 35.76858,
"longitude": 140.388714
},
"greatCircleKm": 8753.4,
"miles": 5439.1,
"nauticalMiles": 4726.4,
"initialBearingDeg": 305.7,
"initialBearingCompass": "NW",
"estimatedFlightMinutes": 663,
"estimatedFlightTime": "11h 03m",
"estimateAssumptions": "Estimate only: block time = distance / 830 km/h + 30 min taxi/climb/descent overhead. Not a schedule.",
"fromTimezone": "America/Los_Angeles",
"toTimezone": "Asia/Tokyo",
"timezoneDifferenceHours": 17,
"co2": {
"defraCategory": "international",
"kgPerPassenger": 1247.6,
"kgPerPassengerWithoutRF": 737,
"kgPerPassengerByClass": {
"economy": 955.5,
"premiumEconomy": 1528.8,
"business": 2771,
"first": 3822
},
"factorKgPerPassengerKm": 0.14253,
"includesRadiativeForcing": true,
"source": "UK DESNZ/DEFRA GHG conversion factors 2025, Business travel- air (direct flights, 8% distance uplift included)"
},
"scrapedAt": "2026-11-09T14:39:10Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14790/airport+database+api/38334/airport+database+api?mode=distance&routes=JFK-LHR,SOF-VAR,LAX-NRT&codes=JFK,LHR,SOF&latitude=43.2321&longitude=27.8251&radiusKm=150&scheduledServiceOnly=true&includeTaf=false&includeFaaDelays=true&activeAirlinesOnly=true&maxItems=100' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 机场数据库 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
机场数据库和航班距离API 开放数据(我们的机场)通过IATA或ICAO代码、名称或国家查找机场 查找附近的机场 获取距离和飞行时间 以及实时METAR/TAF
每个请求最多100个结果。使用maxItems参数进行设置
每个请求从公共源收集实时数据 相同的请求可以从缓存中服务最长6小时
列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎
该端点接受以下查询参数,均为可选:模式、航线、代码、查询、国家、类型、纬度、经度、半径公里、仅限定期服务、包括TAF、包括FAA延误、仅限活跃航空公司、最大项目数。模式:距离 = 大圆距离、航向和预计飞行时间,例如JFK-LHR。查询 = 按IATA/ICAO代码查找完整机场详细信息。搜索 = 按文本、国家或类型查找机场。附近 = 根据纬度/经度查找周围的机场。天气 = 最新METAR(可选TAF)的机场天气。航线:机场对通过IATA或ICAO代码,例如JFK-LHR、SOF-VAR、LAX-NRT。接受的分隔符:破折号、'到'、'>'或空格。多个值:逗号分隔。