I don’t understand because when I do this string from my app with my id:
http://api.openweathermap.org/data/2.5/weather?lat=50.0&lon=50.0&appid=3864f48bfe6a511e20e809ee8857fe16
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:
http://api.openweathermap.org/data/2.5/weather?lat=50.0&lon=50.0&appid=d408a4f66848e2c8e5747679380bf72
I still get a bad response:
{
"cod": 401,
"message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."
}
I think the problem is your appid.