Flight Info API

FREEMIUM
Durch OAG Aviation Worldwide Limited | Aktualisiert 2ヶ月前 | Travel
Popularität

9.5 / 10

Latenz

707ms

Service Level

100%

Health Check

N/A

Zurück zu allen Diskussionen

Empty data returned

Rapid account: Cespedes
cespedes
5ヶ月前

Hi,

I’m sending the required data: const url =
'https://flight-info-api.p.rapidapi.com/status?DepartureAirport=LAX&DepartureDateTime=2024-01-12T01%3A00%3A00&CodeType=IATA&version=v2&ArrivalDateTime=2024-01-15T01%3A00%3A00&ArrivalAirport=CDG
but am getting empty data returned:
{
“data”: [],
“paging”: {
“limit”: 100,
“totalCount”: 0,
“totalPages”: 0,
“next”: “”
}
}

“data” is an empty array. Am I missing something?

Rapid account: Donatas Mazeika OAG
DonatasMazeikaOAG Commented 4ヶ月前

Hi, thank you for your question. Please make sure that you are specifying either DepartureDateTime or ArrivalDateTime. The API query you have constructed is searching for flights departing on 2024-01-12, and the same flight should arrive three days later, which is unlikely.
If you would like to retrieve all flights departing from 2024-01-12 to 2024-01-15, please use the following format for the DepartureDateTime parameter: 2024-01-12/2024-01-15.
Please let us know if you have more questions.

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen