I'm using the free API to get data to test it for an App that uses the paid version. For a couple of hours it worked fine but later I started getting 404 and the reason due to CORS.
Using Postman I get data but not from the app which is using axios to handle http requests. Also putting the url in the browser also returns 404 if I'm signed out even though I'm passing the correct username as a query parameter. However if I'm logged in I see the results as expected.
Also, it is worth noting that the ssl certificate seems to be outdated.
Regarding my request I'm using this format.
Code:
<a href="https://api.geonames.org/search?type=json&name=<cityName>&username=<userName>" target="_blank" rel="nofollow">https://api.geonames.org/search?type=json&name=<cityName>&username=<userName></a>