Sweekly Apps

Airtable to Google Sheets with a free Apps Script

If you only need Airtable data in a sheet (for a report, a chart, a pivot table, a colleague without an Airtable seat), you don't need an app. This free script copies a table or a view into a tab and can refresh it every hour. At the end: why the same trick breaks when you try to sync both ways.

Set it up in five minutes

  1. In Airtable, create a personal access token at airtable.com/create/tokens: scope data.records:read, access to this one base only. Read-only is enough for an import.
  2. In your spreadsheet: Extensions → Apps Script. Delete what is there and paste airtable-to-sheets.gs (MIT licence).
  3. Fill in CONFIG: the base ID and table ID from the table's address (airtable.com/appXXXX/tblYYYY/viwZZZZ), a view if you want its filters and sort, and the tab name.
  4. Project Settings → Script properties → add AIRTABLE_TOKEN with your token. Keeping it there rather than in the code means it isn't shared when you share the script.
  5. Select importAirtable and click Run. Allow access when asked. To refresh every hour, run installHourlyTrigger once.

What the script does

Limits to know (Google's Apps Script quotas, checked 12 November 2026): one Apps Script run stops after 6 minutes, and free Google accounts get 90 minutes of trigger time a day (Workspace accounts 6 hours). An import of a few thousand records takes seconds; tens of thousands may need a view that filters them.

Why a home-made two-way sync loops

The obvious next step is a second script that sends edits from the sheet back to Airtable. That is where home-made syncs commonly break, in one of three ways:

  1. The echo. Script A copies Airtable to the sheet. The sheet's on-edit or on-change trigger sees new values and sends them to Airtable. Airtable's records now have a new modified time, so the next run of A copies them again. Every run rewrites everything, burns your quotas, and the "last modified" field is useless.
  2. The silent overwrite. Someone edits a cell in the sheet while someone else edits the same record in Airtable. Whichever script runs last wins, and the other edit disappears without a trace.
  3. The type trap. Formula, lookup, rollup and count fields are read-only in Airtable, and linked records and attachments need their own value shapes, not text. Write their text back from the sheet and the API refuses the whole request, or a linked record becomes a plain string.

A sync that works keeps a snapshot of what each field looked like after the last sync, and compares each side against it, field by field:

You can build that in Apps Script; budget a few days for it, and for the edge cases (new rows on each side, deleted rows, renamed fields).

If you need both ways

Two-Way Sync for Airtable is a Google Sheets add-on that does exactly the above: each changed field is copied across, conflicts are settled by the rule you choose per sync, read-only fields flow one way only, and the panel shows what each run changed.

Two-Way Sync for Airtable, by Sweekly Apps LLC