I am tried to fetch data of current weather data it was successful but if I try to fetch data of forecast hourly it showing 401 error
fetch(`https://pro.openweathermap.org/data/2.5/forecast/hourly?q=${cityname}&appid=${API_KEY}`,)
.then(res => res.json().then(res => console.log(res)),);