API KEY - 401 message

Hi,
I tried to integrate a weather API into the my plotly app, but it always says N/A and 401. Could it be that the free version is very busy and sometimes doesn’t work?

Maybe this page helps, it looks like despite the key, authorization doesn’t go flawlessly. Unless it already worked, than maybe your explanation is correct. : 401 Unauthorized - HTTP | MDN

1 Like

Thank you! I read similar, I only asked if anybody has experience with the free key.

Maybe it’s easier to respond if you mention which free key for which app.

You are right. I will send the code later.

I solved it. :rocket::tada: Maybe it’s useful for others too.

The code: URL = f'http://api.openweathermap.org/data/2.5/weather?q={CITY}&appid={API_KEY}&units=metric'

Above the code you have to write: Your API_KEY = ’ ’