Google Sheets Export & Live Dataset Sync
Pricing
from $0.20 / 1,000 synced rows
Google Sheets Export & Live Dataset Sync
Automatically export Apify dataset results to Google Sheets in real-time. Append rows, deduplicate data, and automate scraping workflows with Google Drive.
Pricing
from $0.20 / 1,000 synced rows
Rating
0.0
(0)
Developer
Abdul Basit
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a day ago
Last modified
Categories
Features
Share
Google Sheets Export & Sync
🚀 Run this Actor on Apify Store — Instant cloud execution with zero setup, zero proxies needed, and free monthly credits.
Send any Apify dataset to a Google Sheet, and keep it up to date. Add new rows, update existing rows by a key such as url, or replace the whole tab. Duplicates are skipped, Google rate limits are retried automatically, and you only pay for rows that were actually added or changed.
What you get
- ✅ Three write modes: append, upsert (update by key, add the rest) and replace.
- ✅ No duplicates: set a key column like
urland rows that already exist are never added twice. - ✅ Handles Google rate limits: waits and retries up to 7 times before giving up with a clear message.
- ✅ Works as an integration: runs automatically after any scraper finishes and picks up its dataset.
- ✅ Nested data becomes columns:
address.citybecomes anaddress/citycolumn, the same as Apify's CSV export. - ✅ Safe by default: values are written as plain text, so a scraped value like
=IMPORTXML(...)never runs as a formula.
What does it cost?
This Actor uses pay-per-event pricing. You're charged a small fee per run start and per row written (added or changed). Rows that already match the sheet, and duplicates skipped by your key columns, are free. See the Pricing tab for current prices. You can set a maximum cost per run, and the Actor stops writing when it reaches it.
Quick start
- Connect Google (one time, about 3 minutes): create a service account key. Steps below.
- Share your sheet with the service account's email address as Editor.
- Run the Actor: paste the sheet URL and your key, pick a dataset, and choose a mode.
Set up a Google service account (one time)
- Open Google Cloud Console and create a project, or pick an existing one.
- Go to APIs & Services → Library, search for Google Sheets API and click Enable.
- Go to IAM & Admin → Service Accounts → Create service account. Give it any name. You can skip the optional role steps.
- Open the new service account, go to Keys → Add key → Create new key → JSON. A
.jsonfile downloads. - Open that file in a text editor, copy everything, and paste it into Service account key (JSON). Apify stores it encrypted.
- In the
.jsonfile, findclient_email(it ends withiam.gserviceaccount.com). In Google Sheets, click Share and add that email as Editor.
Your key belongs to your own Google Cloud project, so your quota is never shared with other users, and only sheets you explicitly share can be written to.
If your company's Google Workspace blocks service account keys, ask your admin, or use a personal Google account.
This Actor is independent. It isn't affiliated with, sponsored by or endorsed by Google. Google Sheets and Google Cloud are trademarks of Google LLC.
Write modes
| Mode | What happens | Typical use |
|---|---|---|
| Append | Adds rows below the existing data. With Key columns set, rows whose key already exists are skipped. | Daily scrapes where you want a growing list without duplicates |
| Upsert | Rows whose key matches are updated (only the columns in the new data), the rest are added. Needs Key columns. | Price or stock tracking, where the same product should stay on one row |
| Replace | Clears the tab and writes the dataset fresh. | Always showing the latest full snapshot |
New fields that appear later are added as new columns at the end. Columns you added yourself are kept in append and upsert mode.
Use it as an integration (automatic after every scrape)
- Open the scraper you want to export, for example Google Maps Scraper, and go to its Integrations tab.
- Choose Connect Actor or Task and pick Google Sheets Export & Sync.
- Fill in the sheet URL, your key, the mode and key columns. Open the JSON tab of the integration and add
"datasetId": "{{resource.defaultDatasetId}}". The Dataset drop-down can't take this text, and without this line the run isn't allowed to read the results.
Every successful run of your scraper now updates your sheet.
Input example
{"spreadsheet": "https://docs.google.com/spreadsheets/d/1AbC.../edit","serviceAccountKey": "{ \"type\": \"service_account\", ... }","sheetName": "Leads","mode": "upsert","keyFields": ["url"],"datasetId": "your-dataset-id","columns": ["url", "title", "phone", "address/city"],"addSyncedAtColumn": true}
You can also send rows directly in Rows (items) instead of a dataset, which is handy from the API or from AI agents.
Output
The Actor writes your data to the sheet, and saves a short summary in its dataset and in the OUTPUT record:
{"status": "SUCCEEDED","spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1AbC.../edit#gid=0","sheetName": "Leads","mode": "upsert","itemsRead": 250,"rowsAdded": 12,"rowsUpdated": 30,"rowsUnchanged": 208,"rowsSkippedDuplicate": 0,"rowsSkippedLimit": 0,"totalRows": 1042,"totalColumns": 9}
Limits
- Restarted or resurrected runs: a run that had already finished writing writes and charges nothing more. One that stopped partway through adding rows writes them again in the same places, so they aren't added twice. If other rows were added to the tab in the meantime, they are left as they are and the log asks you to check for duplicates. To sync new data, start a new run.
- Google Sheets allows up to 10 million cells per spreadsheet. The Actor checks this before writing and stops with a clear message instead of half-writing your data.
- Text longer than 50,000 characters is shortened to fit in one cell, which is Google's limit.
- Row 1 of the tab is treated as the header row.
FAQ
I get "Google Sheets refused access (HTTP 403)".
Share the sheet with the service account email from your key (client_email) as Editor, and make sure the Google Sheets API is enabled in that Google Cloud project.
Why a service account instead of "Sign in with Google"? Your key lives in your own Google Cloud project. Your rate limits aren't shared with anyone, and the Actor can only touch sheets you share with that account.
Will formulas or formatting in my sheet be lost? No, in append and upsert mode. Upsert writes only the individual cells whose values changed, and append only writes new rows below your data, so formulas and notes in your own columns are left alone. Replace clears the tab's values (formatting stays).
Can I export only some columns, in my own order?
Yes. List them in Columns to include. Nested fields use /, for example address/city.
Privacy
Your service account key is stored encrypted by Apify and used only for this run. The Actor runs with limited permissions: it can read only the dataset you pick or the one from the run that triggered it.
Support
Found a bug or need a feature? Open an issue on the Issues tab, and include the run link.
🔗 Related Developer Tools & Ecosystem
Extend your automation workflows with our companion tools on the Apify Store:
- 📄 YouTube Transcript & Subtitle Extractor — Extract clean video transcripts in Markdown & JSON for AI and LLMs.
- 📊 Google Sheets Sync & Importer — Automatically export and append Apify dataset rows directly to Google Sheets.
- 📑 Dataset to Excel Report Generator — Convert raw scraping datasets into styled, formatted Excel (.xlsx) reports with auto-filters.
- 📸 Website Screenshot & PDF Capture API — Capture full-page screenshots and PDFs with mobile/retina presets and ad-blocking.
- 🖼️ AI Image Upscaler & Enhancer — Upscale low-resolution photos and images to 4K Ultra HD.
- 🎥 Video Compressor & Audio Extractor — Fast video compression, format conversion, and clean MP3 audio extraction.