Weather App has broken - any guidance?

Hello there,

I finished my weather app a few months back, however I wanted to return to add a new feature. However, since my return, my API call to the OpenWeatherMap seems to be throwing a 404. I can’t seem to find anything on the API that may have changed… Not sure where the problem may lie.

You can view and pull my code down at

Any advice would be greatly appreciated.


I’m not expert, but when I plug your api url (with the key) into my browser:

I get the following response:

  "cod": 401,
  "message": "Invalid API key. Please see for more info."

Are you sure that key is good? Do they expire?


Thanks for the reply.

I just tried a new API key and still receiving the error… Very strange. I’m under the assumption that the params are fine as nothing has changed on the API.

Maybe something that the support centre can help with…


I don’t understand because when I do this string from my app with my id:

I get a good response:

  "coord": {
    "lon": 50,
    "lat": 50
  "weather": [
      "id": 803,
      "main": "Clouds",
      "description": "broken clouds",
      "icon": "04n"
  "base": "stations",
  "main": {
    "temp": 294.368,
    "pressure": 1021.32,
    "humidity": 38,
    "temp_min": 294.368,
    "temp_max": 294.368,
    "sea_level": 1022.32,
    "grnd_level": 1021.32
  "wind": {
    "speed": 3.41,
    "deg": 264.5
  "clouds": {
    "all": 64
  "dt": 1498252834,
  "sys": {
    "message": 0.0042,
    "country": "KZ",
    "sunrise": 1498177888,
    "sunset": 1498236798
  "id": 607847,
  "name": "Batys Qazaqstan Oblysy",
  "cod": 200

When I sub in your appid:

I still get a bad response:

  "cod": 401,
  "message": "Invalid API key. Please see for more info."

I think the problem is your appid.