Google Sheets Sync: append, replace or update rows
Pricing
from $0.10 / 1,000 row written to your sheets
Google Sheets Sync: append, replace or update rows
Send any Apify dataset to a Google Sheet. No Google sign-in: just share your sheet with the add-on's email. Append, replace, update rows by key, or add only new rows.
Pricing
from $0.10 / 1,000 row written to your sheets
Rating
0.0
(0)
Developer
Craig
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Features
Share
Send any Apify dataset to a Google Sheet. Add it to a scraper once, and every run lands in your sheet automatically.
- No Google sign-in pop-up. Share your sheet with our robot email, and that's it.
- Any sheet link works. Paste the link straight from your browser's address bar, including links from a second Google account (
/u/1/) or a specific tab (#gid=). - Four modes: Append, Replace, Update rows by key, or Add only new rows. Update and Add new never create duplicate rows.
- Your own columns are safe. Updating a row only touches the columns that come from your data, so a "Notes" or "Status" column you added by hand stays as it is.
- Errors in plain English, telling you exactly what to fix.
Quick start
- Share your sheet. In Google Sheets, click Share and add sheets-sync@my-project-1704420827892.iam.gserviceaccount.com as an Editor.
- Add the integration. Open your scraper, go to its Integrations tab, click Add integration, and choose Google Sheets Sync. The scraper's results are passed in automatically.
- Paste your sheet link, choose a mode, and save. Every finished run now writes to your sheet.
You can also run it on its own: pick a dataset in Dataset, or paste JSON rows in Or paste rows for a quick test.
Try it without a sheet: press Start with the example rows and no sheet link. You get a preview of the rows and columns it would write. Nothing is written and no rows are charged.
Modes
| Mode | What happens to rows already in the tab |
|---|---|
| Append (default) | Kept. Every item is added as a new row at the end. |
| Replace | The tab is cleared, then the new rows are written. Nothing is cleared if the run has no data. |
| Update | Rows with the same key (for example url or id) are updated in place. Other items are added as new rows. |
| Add new only | Rows whose key is already in the tab are left alone. Only new keys are added. |
Update and Add new need Key column(s): one or more fields that identify a row. Several key columns work together (for example shop/id + sku).
How your data is written
- Row 1 is the header. Each field gets a column, and new fields are added on the right. If the tab already has a header, data goes into the matching columns, whatever their order.
- Nested fields are flattened with a slash, like Apify's CSV export:
address/city,price/value. - Lists stay in one cell as JSON text by default. Set Lists to "Spread lists over columns" to get
images/0,images/1, and so on. - Text stays text. Values are written exactly as they are, so a value starting with
=is never run as a formula, and00123keeps its zeros. - Very large integers (above 9,007,199,254,740,992) are written as text so no digits are lost.
- Google allows 50,000 characters per cell. Longer values are cut, and the run's summary says how many.
- Only these columns writes just the fields you list, in that order.
- Tab name picks the tab. It is created if it doesn't exist. Leave it empty to use the tab in your link, or the first tab.
Pricing
Pay per event: a small charge per run, plus a charge per row actually written to your sheet (added or updated). Rows that are skipped, or that fail to write, are not charged. The run respects your max cost per run limit: it stops cleanly when the limit is reached and tells you. See the Pricing tab for current prices.
Privacy and security
- The robot can only open sheets you share with it, and it only asks Google for access to spreadsheets, not to the rest of your Drive.
- Your data passes straight from Apify to Google. The add-on keeps no copy.
- You can stop access at any time: remove the robot email from the sheet's Share settings.
- Prefer your own robot? Paste your own Google service-account JSON key in Your own Google key (stored encrypted), then share the sheet with that key's email instead.
- It runs with Apify's limited permissions: it can read only the dataset it is given, nothing else in your account.
Output
Each run's Output tab shows a one-line summary with a link to your sheet. The full details are saved under the OUTPUT key in the run's key-value store, for example:
{"spreadsheet_title": "Leads","sheet_name": "Sheet1","spreadsheet_url": "https://docs.google.com/spreadsheets/d/.../edit#gid=0","appended": 120,"updated": 30,"skipped_existing": 0,"rows_written": 150,"stopped_at_charge_limit": false}
Troubleshooting
| Message | Fix |
|---|---|
| "The add-on can't open this spreadsheet yet" | Share the sheet with sheets-sync@my-project-1704420827892.iam.gserviceaccount.com as an Editor (not Viewer). |
| "No Google Sheet was found" | Copy the link again while the sheet is open. Uploaded Excel files must be saved as Google Sheets first (File > Save as Google Sheets). |
| "This spreadsheet is full" | Google allows 10 million cells per spreadsheet. Use a new spreadsheet, delete old tabs, or use Replace mode. |
| "Couldn't read the dataset" | When running on its own, choose the dataset in the Dataset field so Apify gives the add-on access. |
| Google is limiting how fast we can write | The add-on already waits and retries. If it still fails, run again in a few minutes. |
Limits
- Google Sheets limits: 10 million cells per spreadsheet, 18,278 columns, 50,000 characters per cell.
- Update and Add new read the key column(s) from the tab at the start of each run, so very large tabs take a little longer.
Support
Found a bug or missing a feature? Open an issue on the Issues tab. Issues are answered within a week.