Title: Error on API Access &#8230; !?
Last modified: January 10, 2023

---

# Error on API Access … !?

 *  [hebhansen](https://wordpress.org/support/users/hebhansen/)
 * (@hebhansen)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-on-api-access/)
 * I’m testing API and I get errors….
   Server IP is correct and checked with providerClient
   IP is set correct with *.mysite.com/* as proposed by Goggle. Will I need to add
   https to client side?What else is the prob?
 *     ```wp-block-code
       Array
       (
           [error] => REQUEST_DENIED - This IP, site or mobile application is not authorized to use this API key. Request received from IP address 2a01:4f8:241:1f86::2, with referer: https://maps.googleapis.com/maps/api/geocode/json?region=DK&address=manhattan%2Bnew%2Byork%2Bus&language=EN&key=XXXXXXXXXXXXXXXXXXXXXXXXXXX
           [data] => stdClass Object
               (
                   [error_message] => This IP, site or mobile application is not authorized to use this API key. Request received from IP address 2a01:4f8:241:1f86::2, with referer: https://maps.googleapis.com/maps/api/geocode/json?region=DK&address=manhattan%2Bnew%2Byork%2Bus&language=EN&key=XXXXXXXXXXXXXXXXXXXXXX
                   [results] => Array
                       (
                       )
   
                   [status] => REQUEST_DENIED
               )
   
       )
       ```
   

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

 *  Plugin Author [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * (@ninjew)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-on-api-access/#post-16418408)
 * Hello [@hebhansen](https://wordpress.org/support/users/hebhansen/)
 * Sorry for not replying sooner.
 * The issue is with the IP address that you restricted. You need to restrict the
   IP address from the error message.
 * I hope this helps.
 *  Thread Starter [hebhansen](https://wordpress.org/support/users/hebhansen/)
 * (@hebhansen)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-on-api-access/#post-16418567)
 * Hey [@ninjew](https://wordpress.org/support/users/ninjew/)
 * i do not understand. Where do I restrict and what should I Change?
 * api i key over on Gmap?
 * no restriktion on IP and not http either but None!
 * and then what do I restrict? Secret? Apis?
 * Can I add custom map to GMWP. Where Can I put map ID
 * thx

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

The topic ‘Error on API Access … !?’ is closed to new replies.

 * ![](https://ps.w.org/geo-my-wp/assets/icon-256x256.gif?rev=2803407)
 * [GEO my WP](https://wordpress.org/plugins/geo-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geo-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geo-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-my-wp/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 2 replies
 * 2 participants
 * Last reply from: [hebhansen](https://wordpress.org/support/users/hebhansen/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-on-api-access/#post-16418567)
 * Status: not resolved