Problem with freecodecamp weather api

I am trying the Show the Local Weather challenge and decided to check what the API returns, so I opened a new tab in Firefox and entered
https://weather-proxy.freecodecamp.rocks/api/current?lat=51.6565489&lon=-0.2008189

I initially get the correct information (relating to High Barnet in GB) but if I refresh I get information relating to Shuzenji in JP and I cannot seem to get the correct information again.

Note that the Shuzenji data shows lat as 35 and lon as 139:


even though the address is using lat=51.6565489&lon=-0.2008189

This happens in Chrome and Edge as well as Firefox.

This also happens if I use:
https://weather-proxy.freecodecamp.rocks/api/current?lon=-0.2008189&lat=51.6565489

Please advise as I am unable to proceed if I get conflicting/incorrect data

The freeCodeCamp API is giving consistently Shuzenji…

The API itself looks fine

but also it relies on a different API, could it be that it is that one giving back the wrong value?

I wonder if it hit the daily limit

So how am I supposed to proceed if I don’t live in Shuzenji?

Why do you think wrong data is going to stop you from making a working app?

You need to use the location of whoever open the app anyway, so you are working with dinamic data.

Anyway now the data from https://weather-proxy.freecodecamp.rocks/api/current?lat=51.6565489&lon=-0.2008189 is again High Barnet, so there is probably a cool down or something on the API

{
  "coord": {
    "lon": -0.2008,
    "lat": 51.6565
  },
  "weather": [
    {
      "id": 500,
      "main": "Rain",
      "description": "light rain",
      "icon": "https://cdn.freecodecamp.org/weather-icons/10n.png"
    }
  ],
  "base": "stations",
  "main": {
    "temp": 12.24,
    "feels_like": 11.95,
    "temp_min": 11.42,
    "temp_max": 12.79,
    "pressure": 1000,
    "humidity": 93,
    "sea_level": 1000,
    "grnd_level": 992
  },
  "visibility": 10000,
  "wind": {
    "speed": 11.32,
    "deg": 230,
    "gust": 18.01
  },
  "rain": {
    "1h": 0.42
  },
  "clouds": {
    "all": 75
  },
  "dt": 1733425816,
  "sys": {
    "type": 2,
    "id": 2028218,
    "country": "GB",
    "sunrise": 1733385046,
    "sunset": 1733413962
  },
  "timezone": 0,
  "id": 6941037,
  "name": "High Barnet",
  "cod": 200
}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.