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
아래에 의견을 추가하고 토론에 참여하세요.
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