Google Sheets Export: datasets to your sheet, on your own quota avatar

Google Sheets Export: datasets to your sheet, on your own quota

Pricing

from $0.03 / 1,000 rows

Go to Apify Store
Google Sheets Export: datasets to your sheet, on your own quota

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

Something Else Entirely

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 hours ago

Last modified

Features

Limited permissions

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)

  1. In the Google Cloud console, create a project, or pick one you have.
  2. Under APIs & Services → Library, turn on the Google Sheets API.
  3. Under IAM & Admin → Service Accounts, create a service account. It needs no roles.
  4. Open it, go to Keys → Add key → Create new key → JSON, and keep the file that downloads.
  5. Open your spreadsheet, click Share, and add the service account's address (it ends in iam.gserviceaccount.com) as an Editor.
  6. 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

FieldWhat it doesDefault
spreadsheetThe spreadsheet's address or IDRequired
sheetNameThe tab to write to; created if it does not existThe first tab
datasetIdThe Apify dataset to exportOne of these two
rawDataA JSON list of objects to export instead
modeappend or replaceappend
columnsFields to write, in this order; others are left outEvery field
deduplicateByFieldSkip a row whose value in this field is already in the sheetNone
maxRowsWrite at most this many rowsEvery row
serviceAccountKeyThe service account's JSON keyRequired
{
"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.