Google Sheets Export: datasets to your sheet, on your own quota
Pricing
from $0.03 / 1,000 rows
Google Sheets Export: datasets to your sheet, on your own quota
Appends or replaces Apify dataset rows in a Google Sheet through your own service account, so runs use your own Google quota and retry when Google asks them to slow down. Skips duplicates, flattens nested data, and never runs formulas from scraped text.
Pricing
from $0.03 / 1,000 rows
Rating
0.0
(0)
Developer
Something Else Entirely
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Google Sheets Export: datasets into your spreadsheet, on your own Google quota
Send any Apify dataset, or a list of JSON objects, into a Google Sheet. Append new rows below the old ones, skipping rows you already have, or replace the sheet's contents. The tool works through your own Google service account, so it uses your own per-minute quota instead of one shared by every user, and it waits and retries when Google asks it to slow down.
What it does
- Append (default): adds the rows under the existing ones. New fields become new columns at the right, and existing columns keep their place.
- Skip duplicates: with
deduplicateByField, a row whose value in that field is already in the sheet is left out. Schedule the tool after a scraper and only new items arrive. - Replace: clears the sheet's values and writes the header and rows from the top.
- Nested data becomes columns named with slashes, such as
address/city. A list of plain values goes into one cell, separated by commas; a list of objects goes into one cell as JSON. - Values are written as they are. Text that looks like a formula, such as
=IMPORTXML(...), stays text, so a scraped page cannot run formulas in your sheet. Numbers and true/false stay numbers and booleans.
Setting up access, once (about ten minutes)
- In the Google Cloud console, create a project, or pick one you have.
- Under APIs & Services → Library, turn on the Google Sheets API.
- Under IAM & Admin → Service Accounts, create a service account. It needs no roles.
- Open it, go to Keys → Add key → Create new key → JSON, and keep the file that downloads.
- Open your spreadsheet, click Share, and add the service account's address (it ends in
iam.gserviceaccount.com) as an Editor. - Paste the whole key file into the tool's Service account key field. Apify stores it encrypted.
The key reaches only Google: it is used to get a token from Google's own address, and the token is sent only to the Sheets API. Nothing else is done with it, and it is never logged.
Input
| Field | What it does | Default |
|---|---|---|
spreadsheet | The spreadsheet's address or ID | Required |
sheetName | The tab to write to; created if it does not exist | The first tab |
datasetId | The Apify dataset to export | One of these two |
rawData | A JSON list of objects to export instead | |
mode | append or replace | append |
columns | Fields to write, in this order; others are left out | Every field |
deduplicateByField | Skip a row whose value in this field is already in the sheet | None |
maxRows | Write at most this many rows | Every row |
serviceAccountKey | The service account's JSON key | Required |
{"spreadsheet": "https://docs.google.com/spreadsheets/d/1AbC.../edit","sheetName": "Leads","datasetId": "YOUR_DATASET_ID","mode": "append","deduplicateByField": "url"}
Output
The rows land in your sheet. The run's dataset gets one summary row:
{"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1AbC.../edit#gid=0","sheet": "Leads","mode": "append","rowsWritten": 120,"duplicatesSkipped": 37,"rowsLeftOverBudget": 0,"columns": ["url", "title", "price"]}
Good to know
- Google's limits: a spreadsheet holds at most 10 million cells, and a cell at most 50,000 characters. The tool checks the cell count before it writes anything, and shortens longer cells.
- Your data stays yours. The tool reads your dataset with your own Apify access, writes it to your sheet, and keeps nothing. Rows are not logged.
- If Google stops answering midway, the rows already written stay in the sheet, the run says how many, and only those are charged.
Pricing
$0.00005 per row written, so 1,000 rows cost $0.05. The header, skipped duplicates and rows Google did not accept cost nothing.