Follow

Setting & Security for API Keys

So you have generated your key successfully. However, there are still a few other things you need to set up, like security to prevent anyone else misusing your key, as well as setting a budget so that you won't be charged more than you can afford.

Now the API key is generated. To avoid misuse, you need to set in Google APIs.

Once inside the site → Click Credentials.

Screenshot_1.png

 

Here you can see the new API key. → Click the pencil icon pencil_icon.png to edit it. 

Screenshot_2.png

 

Now in the API key settings site, there are some adjustments that need to be done.

Firstly, you need to change the key name  - as a general rule, it is named follow the site name or project name

In the Key restrictions you can see 2 tabs:

  • Application restrictions tab → Select the option HTTP referrers (web sites) and enter the website name in the field. Use the format *.example.com/. Any string can replace the asterisk, means that is even for subdomains.
  • API restrictions tab → Choose the services that are enabled for this API key

→ Click Save

Screenshot_3.png

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk