The API seems to be working fine in the rapid api playground, however upon copying the code snippet I keep getting 404 error. I am using the JS code for XMLHTTPRequest
Hello! It may be that RapidAPI generates a faulty code snipped for you. Could you please specify which endpoint is causing the issue?
I confirm that I have the same problem.
The API call “Departures and arrivals (FIDS) by airport ICAO code” works here:
but it does not work in my web application.
Please always double-check snippets, that RapidAPI is generating for you. They are not always correct. In particular, they encode colon symbols in the URL, although this should not happen in fragment part of the URL. E.g.: https://aerodatabox.p.rapidapi.com/flights/airports/icao/KSFO/2019-09-16T06%3A00/2019-09-16T12%3A00 should be https://aerodatabox.p.rapidapi.com/flights/airports/icao/KSFO/2019-09-16T06:00/2019-09-16T12:00 You also should not follow wrong snippet example: don’t encode time in the request.
Join in the discussion - add comment below: