Flightera Flight Data

FREEMIUM
By flightera | Updated एक महीने पहले | Travel
Popularity

9.8 / 10

Latency

109ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Use API to get infos on more than one flight?

Rapid account: Annaandrovitsanea
annaandrovitsanea
8 महीने पहले

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 8 महीने पहले

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

Join in the discussion - add comment below:

Login / Signup to post new comments