Google Sheets Import & Export: Sync Datasets, Update Rows avatar

Google Sheets Import & Export: Sync Datasets, Update Rows

Pricing

Pay per event

Go to Apify Store
Google Sheets Import & Export: Sync Datasets, Update Rows

Google Sheets Import & Export: Sync Datasets, Update Rows

Send any Apify dataset or JSON to Google Sheets: append, replace, or update rows by a unique key (price and stock monitoring). No OAuth: share the sheet once. Auto-retries on Google limits, one tab per day, dedupe, column picking. Also reads sheets back to JSON.

Pricing

Pay per event

Rating

5.0

(1)

Developer

Superior Actors

Superior Actors

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Share

Google Sheets Import & Export

Send any Apify dataset or JSON to Google Sheets, and read sheets back to JSON. Append new rows, update existing rows by a unique key, or replace the whole tab. Made for scrapers that run on a schedule: connect it once as an integration and every run lands in your sheet.

No Google login, no OAuth tokens that expire. Share your sheet once with the Actor's e-mail and it keeps working.

Setup (1 minute, once per sheet)

  1. Open your Google Sheet โ†’ Share
  2. Add this e-mail as Editor:
import@sheets-sync-509808.iam.gserviceaccount.com
  1. Paste the sheet link into Google Sheet and pick a dataset. Done.

If Google says the address has no Google account, share anyway: it is a service account, that's normal. If you forget to share, the run tells you exactly that.

Why this Actor

๐Ÿ” Update rows by keyupdate mode changes rows in place (same url or id) and adds new ones. Your own columns (notes, formulas) stay untouched
๐Ÿ” Nothing expiresAccess is a normal share, not an OAuth token. Scheduled runs don't die after a few weeks
๐Ÿ›ก Retries Google limitsRate limits (429) and Google outages are retried with backoff instead of failing the run
๐Ÿงฎ Values stay correctNumbers stay numbers, IDs keep leading zeros, big IDs don't get rounded, text starting with = is never run as a formula
๐Ÿ“… Tab per dayTab name Prices {date} creates a new tab every day
๐Ÿงน Duplicates skippedRows whose key is already in the sheet are not added again (and not charged)
๐Ÿงฉ Clean columnsColumns in the scraper's order, your column order kept, lists as wifi, pool in one cell, pick or drop columns
๐Ÿ“ Big dataWritten in chunks; the sheet is never half-empty during replace; clear error before writing if Google's 10M-cell limit would be hit

Modes

ModeWhat it doesTypical use
appendAdds rows at the end. New fields become new columns at the rightLeads, new listings, a log of every run
updateRows with the same unique key are overwritten, new keys added at the endPrice and stock monitoring, CRM-style lists
replaceOverwrites the tab with the new data"Current state" dashboards
readSheet rows โ†’ dataset items (header row = field names)Feed a sheet into another Actor or an AI agent

Use it after a scraper (integration)

  1. Open your scraper or task โ†’ Integrations โ†’ Connect Actor or Task โ†’ choose this Actor
  2. Set the input:
{
"spreadsheetId": "https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit",
"sheetName": "Results",
"mode": "append",
"deduplicateByField": "url",
"datasetId": "{{resource.defaultDatasetId}}"
}

Every successful scraper run now adds only new rows to the sheet.

Examples

GoalInput
Daily price monitor, one row per product, always up to date"mode": "update", "deduplicateByField": "url"
Price history, one tab per day"mode": "append", "sheetName": "Prices {date}"
Price history in one tab"mode": "append", "addTimestamp": true
Hotel rates by date"mode": "update", "deduplicateByField": "entityId,checkInDate"
Only some columns, in your order"columnsOrder": ["name", "price", "url"], "onlyListedColumns": true
Drop nested noise"excludeColumns": ["images", "reviews"]
Send rows from code or an AI agent"rawData": [{"name": "A", "price": 10}]

Ready-made tasks

Open one, change the inputs, and run or schedule it:

Input

FieldDescription
spreadsheetIdSheet link or ID. A link with #gid= selects that tab
modeappend, update, replace or read
sheetNameTab name, created if missing. {date}, {month}, {datetime} are replaced (UTC)
datasetIdSource dataset. In integrations: {{resource.defaultDatasetId}}
rawDataJSON array of objects, or array of arrays with a header row first
limit, offsetPart of the dataset only
deduplicateByFieldUnique key column(s), comma-separated
columnsOrder, onlyListedColumns, excludeColumnsColumn selection and order. Nested fields use /: address/city
arrayModejoin (default), columns (tags/0, tags/1), or json
addTimestampAdds an exportedAt column with the run time
parseValuesLet Google interpret values like typed by hand (dates, formulas). Off by default
serviceAccountKeyOptional: your own service account JSON key instead of the shared e-mail

Field names spreadsheetId, mode, datasetId, rawData, deduplicateByField, columnsOrder match the popular free Google Sheets actor, so switching usually means changing the Actor and sharing the sheet.

Output

Write modes save one summary item:

{
"status": "ok",
"mode": "update",
"sheetName": "Prices",
"rowsAppended": 12,
"rowsUpdated": 488,
"duplicatesSkipped": 0,
"columns": 18,
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/.../edit"
}

read mode saves one item per sheet row.

Pricing

EventPrice
Run start$0.005
Row written (added or updated) or read$0.01 per 1,000 rows
Skipped duplicates, empty runsfree

A typical scraper-to-sheet sync of 500 rows costs about $0.01.

Limits

LimitValue
Cells per spreadsheet (Google)10,000,000. The run stops with a clear message before writing
Characters per cell (Google)50,000. Longer text is cut
rawData size9 MB (Apify input limit). For more, use a dataset

FAQ

Is my data safe? The Actor can open only the sheets you share with it, and only while they are shared. Remove the e-mail from Share to revoke access. Data is not stored anywhere except your sheet and your Apify run.

Can I use my own Google account instead? Yes: create a service account in Google Cloud, paste its JSON key into serviceAccountKey (stored encrypted), and share the sheet with that account's e-mail.

Does it work with Excel files in Drive? Only native Google Sheets. Open the .xlsx and use File โ†’ Save as Google Sheets.

Can an AI agent use it? Yes, through the Apify MCP server: the agent passes rows in rawData. No OAuth screen to click through.