Flightera Flight Data

부분 유료
분류별 flightera | 업데이트됨 il y a un mois | Travel
인기

9.8 / 10

지연 시간

109ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Use API to get infos on more than one flight?

Rapid account: Annaandrovitsanea
annaandrovitsanea
il y a 8 mois

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 il y a 8 mois

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입