How to get Google Sheets API Key?

(1) Go to Google cloud console. If you haven’t used cloud console before then Google may ask you to identify your country and agree to its terms of service. Then click on “AGREE AND CONTINUE”. If you already used cloud console before then you won’t show the above screen.
Click on “Select Project” from the menu bar and then click on “NEW PROJECT”.

If you already used cloud console before then you won’t show the above screen.

Click on “Select Project” from the menu bar and then click on “NEW PROJECT”. (2) In the Project name field, enter the name of the new project, for example GS2JSON and click on “CREATE”.
It can take few seconds to create a new project. After that it will appear in the panel.
(3) Now click on menu icon (three dashes in the upper left corner) and click on “APIs & Services > Dashboard”.
(4) Now check that your project is selected and click on “ENABLE APIS AND SERVICES”.
(5) A page with all API services will open. Search Google Sheets API there and click on it.
(6) Click on “ENABLE” button.
(7) Now select “Credentials” from the left side menu.
(8) Now click on “Credentials in APIs & Services”.
Hint: You can also open this screen by visiting: https://console.cloud.google.com/apis/credentials
(9) Now click on “CREATE CREDENTIALS” and select “API Key” here.
(10) Now in few seconds your API Key will be displayed on your screen.
Copy API key and paste it in html file where it says: PUT_YOUR_API_KEY_HERE.
That’s it!
FYI: Google Sheets API is FREE but it has some usage limits.

 

Related Articles