# Copy a table from a website into Google Sheets

[Español](https://pushbuild.com/es/free/scripts/website-table-to-sheets/) · [Português](https://pushbuild.com/pt/free/scripts/website-table-to-sheets/) · [Deutsch](https://pushbuild.com/de/free/scripts/website-table-to-sheets/) · [Français](https://pushbuild.com/fr/free/scripts/website-table-to-sheets/)

**Short answer:** Use a Google Apps Script that copies a table from a web page into Google Sheets, and refreshes it whenever you run it again. It runs in your Google account and sends what it works on to our server, which does the work. Setup takes 4 steps: Set up the sheet; Add the script; Add your key; Run it.

## How to set it up

1. **Set up the sheet.** Open a Google Sheet. Put the page address in cell B1 and, if the table isn't the first one on the page, its number in B2 (0 is the first).
2. **Add the script.** Open Extensions, then Apps Script. Add two script files and paste in the two files from our email: `Pushbuild.gs` and `website-table-to-sheets.gs`. Save, then reload the sheet. A **Pushbuild** menu appears.
3. **Add your key.** Choose **Pushbuild**, then **Set key**, and paste the key from your signup email. The first time a script runs, Google asks for permission because it works in your own account. Review it and allow it.
4. **Run it.** Choose **Pushbuild**, then **Import web table**. The table lands from row 4 and replaces what was there.

Setup, step by step: 4 steps, done in your own Google account.

[Try it on any table in our data analysis posts](https://pushbuild.com/apis/analysis/).

[Want this set up for your business? Free written scope in 20 minutes](https://pushbuild.com/scope.html?topic=Set%20up%3A%20Copy%20a%20table%20from%20a%20website%20into%20Google%20Sheets)

## Get the script

### Download it free

We'll email you the script (`Pushbuild.gs` and `website-table-to-sheets.gs`) and your key. It runs in your Google account and sends what it works on to our server, which does the work.

Free for your first 10 runs. After that it's $9 a month for this snippet, or $19 a month for every Pushbuild snippet.

### Have us install it for you

We set it up in your own Google account for you and check that it runs.

$49 one-time.

[Have us install it](https://buy.stripe.com/aFacMScpN6a2gMxc6T7EQ0q)

## Questions

**What does this script do?**

It is a Google Apps Script that copies a table from a web page into Google Sheets, and refreshes it whenever you run it again.

**How do I set it up?**

In 4 steps: 1. Set up the sheet; 2. Add the script; 3. Add your key; 4. Run it. The full steps are on this page.

**Does it send my data anywhere?**

Yes. It runs in your Google account and sends what it works on to our server, which does the work. We email you the script (`Pushbuild.gs` and `website-table-to-sheets.gs`) and your key.

**Can you install it for me?**

Yes. We set it up in your own Google account for you and check that it runs.

Want this connected to the rest of your tools? [Send us a short brief](https://pushbuild.com/services/workflow-automation.html#contact).

**Pushbuild** · Automate your business with Pushbuild: [pushbuild.com/contact](https://pushbuild.com/contact)

---
As of 2026-11-23. Source: https://pushbuild.com/free/scripts/website-table-to-sheets/
