Flightera Flight Data

免费增值
通过 flightera | 已更新 2달 전 | Travel
人气

9.8 / 10

延迟

104ms

服务等级

100%

Health Check

N/A

返回所有讨论

Use API to get infos on more than one flight?

Is there a way to make sth like that work?

import http.client

conn = http.client.HTTPSConnection(“flightera-flight-data.p.rapidapi.com”)

headers = {
‘X-RapidAPI-Key’: “f1bb21bf9dmsh0047c34238787b8p158863jsn2823db3d7075”,
‘X-RapidAPI-Host’: “flightera-flight-data.p.rapidapi.com
}

conn.request(“GET”, “/flight/info?flnr=LH2054&nrFlights=3”, headers=headers)
res = conn.getresponse()
data = res.read()

print(data.decode(“utf-8”))

It currently yields only the latest flight infos.

Thanks
Anna

Rapid account: Flightera
flightera Commented 9달 전

Dear Anna,

Thanks for your request. You can use the flightSearch endpoint for that. It also allows you to specify a date range. Please reply here or contact us at info@flightera.net in case you need any further support!

Kind regards,
Felix, Flightera.net

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论