Title: API Key not restricted
Last modified: November 21, 2023

---

# API Key not restricted

 *  Resolved [TheRealCookie](https://wordpress.org/support/users/therealcookie/)
 * (@therealcookie)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/api-key-not-restricted/)
 * I really tired man things! But I still the error that the key is not valid:
 * **Google API Error:** Your Google API Key is not valid for this request and permission
   is denied. Please check your Google [API Key](https://developers.google.com/maps/documentation/javascript/get-api-key).
 * I checked all the settings. But I’m stock…
 * I even tried the key without any restriction. Pls help! 🙂
 * { “error_message”: “This IP, site or mobile application is not authorized to 
   use this API key. Request received from IP address 2a01:4f9:3b:3ac3::2, with 
   empty referer”, “html_attributions”: [], “status”: “REQUEST_DENIED” }

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

 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/api-key-not-restricted/#post-17217921)
 * [@therealcookie](https://wordpress.org/support/users/therealcookie/). There is
   a clue in the error message. Please try the following IP as your IP restriction:
 *     ```wp-block-code
       2a01:4f9:3b:3ac3::2
       ```
   
 * Sometimes the IP type will vary between IPv4 and IPv6. Google has suggested it
   is looking for the IPv6.
 * If that doesn’t work, please ensure the Places API is enabled and set as the 
   restriction.
 *  Thread Starter [TheRealCookie](https://wordpress.org/support/users/therealcookie/)
 * (@therealcookie)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/api-key-not-restricted/#post-17223777)
 * Thx for your reply.
   I tried both already before asking: I used the IP6 address
   and also I removed any API restriction. I’m still stock…. 🙁
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/api-key-not-restricted/#post-17224149)
 * [@therealcookie](https://wordpress.org/support/users/therealcookie/) The IP address
   seemed like the most obvious cause of the API error.
 * Please try setting the option: 
   **Clean Retrieved Data** [x] Additional sanitization
   of retrieved data — emoticons are removed from text
 * You can also try clearing the cache in the Advanced tab.
 * Please let me know if either of these changes work for you?
 *  Thread Starter [TheRealCookie](https://wordpress.org/support/users/therealcookie/)
 * (@therealcookie)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/api-key-not-restricted/#post-17224176)
 * Thx! Clearing the Cache was the solution. How easy… Thx. 🙂

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

The topic ‘API Key not restricted’ is closed to new replies.

 * ![](https://ps.w.org/opening-hours/assets/icon.svg?rev=2706372)
 * [We’re Open!](https://wordpress.org/plugins/opening-hours/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opening-hours/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opening-hours/)
 * [Active Topics](https://wordpress.org/support/plugin/opening-hours/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opening-hours/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opening-hours/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [TheRealCookie](https://wordpress.org/support/users/therealcookie/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/api-key-not-restricted/#post-17224176)
 * Status: resolved