Flight Info API

FREEMIUM
(Ким) OAG Aviation Worldwide Limited | Оновлено 2 mesi fa | Travel
Популярність

9.5 / 10

Затримки

548ms

Рівень обслуговування

100%

Health Check

N/A

Повернутися до всіх обговорень

Empty data returned

Rapid account: Cespedes
cespedes
5 mesi fa

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 mesi fa

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.

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення