Flight Info API

FREEMIUM
От OAG Aviation Worldwide Limited | Обновлено 2 महीने पहले | Travel
Популярность

9.5 / 10

Задержка

548ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

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.

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии