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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות