# Turn Google Sheets into Dynamic Dashboards

**URL:** <https://community.squaredup.com/t/turn-google-sheets-into-dynamic-dashboards/2370>\
**Category:** Gists\
**Tags:** web-api, google-sheets, dashboards, squaredup\
**Created:** [May 12, 2025, 8:17am UTC](https://community.squaredup.com/t/turn-google-sheets-into-dynamic-dashboards/2370 "2025-05-12T08:17:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afn](https://community.squaredup.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@Afn](https://community.squaredup.com/u/Afn)\
**Post date:** [May 12, 2025, 8:17am UTC](https://community.squaredup.com/t/turn-google-sheets-into-dynamic-dashboards/2370/1 "2025-05-12T08:17:58Z")

</div>

While working on a custom dashboard, I needed to import data from a Google Sheet. The CSV Data source in SquaredUp is great for reading structured data in .csv format, but in this case, I wanted a live connection to a Google Sheet that wasn’t published as a CSV. Rather than manually exporting and updating the file or publishing it, I used the Web API Data Source to fetch the data.

Here’s a quick guide on how to do it.

**Step 1:**  **Set Up Google Sheets API**

1. Enable API & Create API Key  
o Go to: Google Cloud Console  
o Create a new project (if needed).  
o Navigate to _APIs & Services \> Credentials and click + Create  
Credentials \> API key_.  
o Copy the _API key_ for later use.
2. Enable Google Sheets API  
o In the same project, go to _APIs & Services \> Library_.  
o Search for Google Sheets API and enable it.

 ![Picture1](https://community-cdn.squaredup.com/original/2X/5/51c5560b8f51a369f8902667741134060dd6abee.png)

1. Make the Sheet Public  
o Open your Google Sheet.  
o Click _Share_ and change access to _Anyone with the link_.

 ![Picture2](https://community-cdn.squaredup.com/original/2X/4/4d60d994b71718f8e6161493ee9335740d0f8bbe.png)

o Copy the _Spreadsheet ID_ from the URL.

 ![Picture3](https://community-cdn.squaredup.com/original/2X/3/320961c67faeb98b39ab946e5b64799b7e017575.png)

* * *

**Step 2:**  **Configure SquaredUp Web API Data Source**

1. In SquaredUp, create a _Web API_ data source.
2. Use the following as the _Base URL_ (replace spreadsheetId with your actual ID):  
` https://sheets.googleapis.com/v4/spreadsheets/spreadsheetId`
3. In the Query parameters, add:  
`Key: your_api_key`

 ![Picture4](https://community-cdn.squaredup.com/original/2X/1/1368b11763c71bc9e67c402277615925339b7dd4.png)

* * *

**Step 3:**  **Create a Tile and Query the Sheet**

1. Create a new dashboard and open the tile editor.
2. Select your new WebAPI data source, then the _HTTP Request_ data stream.
3. On the _Parameters_ panel, set the _endpoint_ to `/values/Sheet1?`  
Or, if you want to specify a range of columns: `/values/Sheet1!A:C?`  
(Replace Sheet1 with your actual sheet name and the column values as needed.)

 ![Picture5-1](https://community-cdn.squaredup.com/original/2X/7/7fff2ff2af84150537b90c689727e6932e8bacfd.png)  
4. Expand Inner objects.  
5. In the _Options_ panel, set _Path to data_ as _values_

**Final Output**  
You can also add shaping if required. Once configured the tile will display the data from your Google Sheet.

 ![Picture7-1](https://community-cdn.squaredup.com/original/2X/0/009a91e8467262763ac7f180a9829cc33c153ab7.png)
