Back

Create an API key

API key

Stamps

YOUR_API_KEY,

Initial conditions

Categories:

Google Cloud


To create an API key, in your Console, click Navigation menu > APIs & services > Credentials.

Prog

Then click + CREATE CREDENTIALS.

Prog

In the drop down menu, select API key:

Prog

Next, copy the key you just generated. Then click CLOSE. Now that you have an API key, save it to an environment variable to avoid having to insert the value of your API key in each request.

Prog

In Cloud Shell run the following. Be sure to replace  with the key you just copied:

CODE...
Prog

Final conditions:

;

Organize your work