Flight Info API

פרמיום
על ידי OAG Aviation Worldwide Limited | מְעוּדכָּן 2 months ago | Travel
פּוֹפּוּלָרִיוּת

9.5 / 10

חֶבִיוֹן

544ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Empty data returned

Rapid account: Cespedes
cespedes
5 months ago

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 months ago

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.

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

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