Google Sheets Export & Import: Append, Upsert, Dedupe avatar

Google Sheets Export & Import: Append, Upsert, Dedupe

Pricing

from $0.10 / 1,000 rowscraps

Go to Apify Store
Google Sheets Export & Import: Append, Upsert, Dedupe

Google Sheets Export & Import: Append, Upsert, Dedupe

Send any Apify dataset, JSON or CSV to Google Sheets and read sheets back as JSON. True append that never moves your columns, upsert by key column (no duplicates), replace, automatic retries on Google limits. Just share your sheet with our robot; no login that expires.

Pricing

from $0.10 / 1,000 rowscraps

Rating

0.0

(0)

Developer

Roman Golovko

Roman Golovko

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Categories

Features

Limited permissions

Share

Send any data to Google Sheets, and read sheets back as JSON, without a Google login that keeps expiring. Export an Apify dataset (for example the results of any scraper), a JSON array or a CSV file into a sheet with true append, upsert by key (update existing rows, add new ones, no duplicates) or replace. Or import a sheet into JSON.

Setup in 20 seconds

  1. Open your Google Sheet and click Share.
  2. Add the robot's e-mail sheets-robot@calm-scarab-515602-k6.iam.gserviceaccount.com as an Editor (Viewer is enough for import).
  3. Paste the sheet's link into the Actor and run.

That's it. No "Connect Google account", no tokens that expire. You can remove the robot from the sheet any time.

Why this one

  • ➕ True append. New rows go to the end. Your existing columns never move; new fields from your data become new columns on the right.
  • 🔁 Upsert by key (no duplicates). Choose a key column like url, id or email: rows with the same key are updated in place, new keys are added. Perfect for daily scrapers feeding one sheet. Composite keys work too.
  • 🧹 Replace clears the sheet and writes fresh data when you want a clean snapshot.
  • 📥 Import reads a sheet into JSON (header row = field names), ready for other Actors and automations.
  • 🛡️ Doesn't fail on Google limits. Google allows ~60 sheet operations per minute. When that's hit, the Actor waits and retries instead of failing and losing your data. Large exports are sent in efficient batches.
  • 🧯 Safe by default. Text is written exactly as is, so scraped text starting with = can't turn into a formula in your sheet (no formula injection). Turn on Let Google parse values if you want dates and formulas interpreted.
  • 🧩 Nested data handled. { "address": { "city": "Berlin" } } becomes an address.city column; lists become readable text.
  • ✍️ Clear errors. If the sheet isn't shared, the run tells you exactly which e-mail to share it with.

Typical uses

  • Scraper → Sheet every day: add this Actor as an integration to any Actor run ("on run succeeded"), pass the run's dataset, and use upsert on url, so your sheet always has the latest data without duplicates.
  • Lead lists: append new leads, update existing ones by e-mail.
  • Price monitoring: upsert products by URL to keep current prices.
  • Sheet as input: import a list of URLs/keywords you maintain in Sheets and feed it to another Actor.

Input

FieldWhat it does
SpreadsheetLink to the sheet (or its ID). A #gid= in the link selects that tab.
Modeappend, upsert, replace or import
Sheet (tab) nameOptional; created automatically for export if missing
DataPick one: an Apify dataset, pasted JSON, or a JSON/CSV URL
Key column(s)For upsert, e.g. url
Column orderOptional fields to put first; Only the columns listed writes just those
Let Google parse valuesOff by default (safe); on = dates/formulas interpreted

Output

Export writes a summary to the dataset and to OUTPUT:

{
"mode": "upsert",
"spreadsheet": "Competitor prices",
"sheet": "Products",
"sheetUrl": "https://docs.google.com/spreadsheets/d/.../edit#gid=0",
"rowsAppended": 42,
"rowsUpdated": 958,
"rowsSkippedWithoutKey": 0,
"newColumns": ["discount"]
}

Import returns one item per row, keyed by the header row.

FAQ

Is my data safe? The robot can only open spreadsheets you explicitly share with it, and only while they're shared. Data passes through your own Apify run and isn't stored anywhere else.

Can I use my own Google service account? Yes: paste its JSON key under Advanced, and share the sheet with that account's e-mail instead.

What are the limits? Google Sheets allows up to 10 million cells per spreadsheet and ~60 operations per minute per account; the Actor batches and retries to stay within them.

Why is a column called Column 3? On import, empty header cells get a generic name so no data is lost.

Need another mode or found a bug? Open an issue on the Issues tab.