Title: 401 error with API Key
Last modified: October 10, 2022

---

# 401 error with API Key

 *  Resolved [macyven](https://wordpress.org/support/users/macyven/)
 * (@macyven)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/401-error-with-api-key/)
 * Hi
 * I have a 401 error when I use my API Key.
    The key was made yesterday an should
   work by now?
 * Is there an issue with Open Weather?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/401-error-with-api-key/#post-16086195)
 * Hi
 * The 401 error that OWM Weather reports comes from openweathermap.com. Either 
   the API key is not yet active or is misspelled in the options. I assume it’s 
   not activated though.
    You could try without the key (which uses a built-in key
   from a dummy account) for a day or two and then try your newly generated key 
   again.
 *  Plugin Author [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/401-error-with-api-key/#post-16129778)
 * Come to find out that OpenWeatherMap now requires new users to sign up for the
   OneCall API after creating the API key. Unfortunately, this requires a credit
   card but they still provide 1,000 free API calls. Users who created their API
   key before this change are still able to use the OneCall API without this additional
   signup.
 * Here’s how to get the 1,000 free calls without overrunning:
 * – Go to [https://home.openweathermap.org/subscriptions/billing_info/onecall_30/base?key=base&service=onecall_30](https://home.openweathermap.org/subscriptions/billing_info/onecall_30/base?key=base&service=onecall_30)
   –
   Follow the instructions to complete the subscription. – Go to [https://home.openweathermap.org/subscriptions](https://home.openweathermap.org/subscriptions)
   and set the “Calls per day (no more than)” to 1,000. This ensures you will never
   overrun the free calls.
 * Hope this helps.
 *  Thread Starter [macyven](https://wordpress.org/support/users/macyven/)
 * (@macyven)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/401-error-with-api-key/#post-16133625)
 * Hi
 * That did the trick. Thanks.
 *  Plugin Author [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/401-error-with-api-key/#post-16133709)
 * Thanks for your confirmation. I am going to update the installation documentation
   next.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘401 error with API Key’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/owm-weather_3a88fe.svg)
 * [OWM Weather](https://wordpress.org/plugins/owm-weather/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/owm-weather/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/owm-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/owm-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/owm-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/owm-weather/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/401-error-with-api-key/#post-16133709)
 * Status: resolved