Google Sheets

Google Sheets

In this video, I’ll show you how I connected the Google Sheets API to Typebot in the Angi HomeAdvisor Clone use case example.

Step 1: Create a new project and enable Google Sheets API

Use Google Cloud Console to create a new project and enable Google Sheets API.

Step 2: Create new credentials

Create new credentials, which include a service account and API key.

Step 3 (Optional): Share the new Google Sheet with the service account email

Share the new Google Sheet you created with the service account email you got.

ℹ️
This might actually be an optional step. Try without it and see if it works.

Step 4: Replace placeholders in the URL of the Google Sheet with the spreadsheet ID, sheet name, and your API key.

https://sheets.googleapis.com/v4/spreadsheets/{SPREADSHEET_ID}/values/{SHEET_NAME}?alt=json&key={API_KEY}

Step 5: Test your connection

Test your connection by adding dummy data to the spreadsheet and checking if it reflects in Typebot in real time.

Step 6: Extract the contents of your Google Sheet as a JSON object

The connection is now setup and you can proceed to extract the contents of your Google Sheet as a JSON object!

💡
Retrieving data from a JSON object vs. the Typebot Google Sheets block is much faster when you’re dealing with a larger data set.
Last updated on