Title: API key
Last modified: November 27, 2018

---

# API key

 *  Resolved [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/)
 * Hi,
 * I hace created my API key that i put in API browser field but what is the other
   API server key ?
    thanks

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

 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920294)
 * Hi,
 * Thank you for interesting to use this plugin. This plugin need 2 different API
   Keys because it will be used in 2 different purpose. The Browser API is used 
   when you setting the Admin Area to get your store location info. And the Server
   API is used to calculate the distance for customer address and your store location.
   As Google does not allow you to specify both an HTTP referrer restriction (for
   the admin map usage) and an IP address restriction (for the server-side distance
   matrix calculation) so need to split it in 2 different API keys. The version 
   1.4 and earlier is just using 1 API Key, which mean that the API Key cannot be
   restricted at any type. And many users complaining about security as the API 
   Key cannot be restricted.
 * I hope this the answer of your question.
 * Sofyan
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920354)
 * Thnanks for your answer.
    So i have created 2 differenet API key with HTTP referrer.
   But it seems it does not accept the second as my server key.
 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920358)
 * Yeah, you use wrong restriction type. Please read again my message above.
    -  This reply was modified 7 years, 6 months ago by [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/).
    -  This reply was modified 7 years, 6 months ago by [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/).
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920419)
 * sorry i don’t understand how to “split in 2 different keys”
 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920424)
 * Create 2 API Key with different restriction type each. HTTP referrer restriction
   and IP address restriction
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920451)
 * ok that’s what i have done but i get this:
    Server API Key Error: API Response
   Error: REQUEST_DENIED – API keys with referer restrictions cannot be used with
   this API.
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920453)
 * wait please i try something
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920472)
 * i get this :
    Server API Key Error: API Response Error: REQUEST_DENIED – This
   IP, site or mobile application is not authorized to use this API key
 *  Plugin Author [Sofyan Sitorus](https://wordpress.org/support/users/sofyansitorus/)
 * (@sofyansitorus)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920480)
 * Okay that mean that your site IP is not whitelisted in the Google API console.
   Please contact your hosting provider to get the correct server IP address and
   then add it to Google API console.
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10920487)
 * ok thanks
 *  Thread Starter [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * (@pipoulito)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10921461)
 * It is ok if put no refere for server key !thanks
    -  This reply was modified 7 years, 6 months ago by [pipoulito](https://wordpress.org/support/users/pipoulito/).

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

The topic ‘API key’ is closed to new replies.

 * ![](https://ps.w.org/wcsdm/assets/icon-256x256.png?rev=3405790)
 * [WooReer](https://wordpress.org/plugins/wcsdm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wcsdm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wcsdm/)
 * [Active Topics](https://wordpress.org/support/plugin/wcsdm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wcsdm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wcsdm/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [pipoulito](https://wordpress.org/support/users/pipoulito/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/api-key-134/#post-10921461)
 * Status: resolved