Google Sheets Export & Import (Reliable, No OAuth) avatar

Google Sheets Export & Import (Reliable, No OAuth)

Pricing

$0.10 / 1,000 row written or reads

Go to Apify Store
Google Sheets Export & Import (Reliable, No OAuth)

Google Sheets Export & Import (Reliable, No OAuth)

Send any Apify dataset, run or JSON to Google Sheets, or read a sheet back into a dataset. Service-account auth that never expires, automatic retries on Google rate limits, append / replace / de-duplicate modes.

Pricing

$0.10 / 1,000 row written or reads

Rating

0.0

(0)

Developer

Sharkinho Tools

Sharkinho Tools

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Google Sheets Export & Import: reliable, no OAuth

Send the results of any Apify Actor (or any JSON) to Google Sheets, or read a sheet back into a dataset.

Built to work on every run:

  • Authentication never expires. It uses a Google service account, not an OAuth login that breaks after a few days.
  • Rate limits are retried automatically. Google 429 / 5xx errors get exponential backoff, so big exports finish.
  • Large exports are batched. Rows are written in chunks of 5,000, and the tab gets more columns when needed.
  • Data is written exactly as is. By default nothing is interpreted as a formula, so scraped text like =IMPORTXML(...) can't run in your sheet.
  • Three write modes: append, replace, and append-unique, which only adds rows whose key (url, id…) is not in the sheet yet. That makes it a good fit for scheduled scrapers.
  • Nested JSON is flattened to columns (seller.name, price.value). Lists become comma-separated text.
  • Columns stay stable. In append mode new fields are added to the right, and existing columns never move.

Try it in 10 seconds

Click Start with the default input. Without a key, the Actor writes the sample data to our demo spreadsheet and shows the result, so you can see how it works before setting anything up.

Setup (2 minutes, once)

  1. Go to Google Cloud Console → Service accounts. Create a project if asked, then Create service account. A name is enough; no roles are needed.
  2. Open the service account, then go to Keys → Add key → Create new key → JSON. A .json file downloads.
  3. Enable the Google Sheets API for the same project.
  4. In your spreadsheet, click Share and add the service account's email (...@...iam.gserviceaccount.com) as Editor.
  5. Paste the whole content of the .json file into Service account JSON key. Apify stores it encrypted.

That's it. The same key works for every spreadsheet you share with that email.

Typical uses

Export every scraper run automatically

Open your scraper (Google Maps, Instagram, Amazon…) and go to Integrations → Add integration → Actor. Pick this Actor, set the spreadsheet and set Dataset to {{resource.defaultDatasetId}}. After each successful run, the run's dataset is pushed to the sheet. Use append-unique with uniqueKey: url to collect only new items.

Export an existing dataset

{
"spreadsheet": "https://docs.google.com/spreadsheets/d/1AbC.../edit",
"sheetName": "Leads",
"datasetId": "aBcD1234",
"mode": "replace",
"serviceAccountKey": "{ ...json key... }"
}

Read a sheet into a dataset

Use "operation": "read". The first row is the header, and every following row becomes a JSON object you can feed to other Actors, such as a list of URLs to scrape.

Input

FieldDescription
spreadsheetSpreadsheet URL or ID
sheetNameTab name. Created automatically if missing.
serviceAccountKeyJSON key (secret)
operationwrite (default) or read
modeappend (default), replace, append-unique
uniqueKeyKey column for append-unique
datasetId / jsonUrl / dataData source. In integrations, set datasetId to {{resource.defaultDatasetId}}.
fields / omitFieldsChoose and order the columns
flattenFlatten nested objects (default true)
parseValuesLet Sheets parse formulas and dates (default false)
maxItemsRow limit

Output

A summary item with the spreadsheet link, the tab, the number of rows written and the number of columns. In read mode, the dataset contains the sheet rows.

Pricing

You pay only for rows actually written or read. See the pricing tab; it's cents per thousand rows. The run stops cleanly at your max cost per run.

Limits and tips

  • Google Sheets allows up to 10 million cells per spreadsheet and 50,000 characters per cell. Longer values are truncated and marked …[truncated].
  • For millions of rows, use a database or BigQuery. Sheets slows down with huge tabs.
  • Error "Cannot access the spreadsheet" means you need to share the sheet with the service account email as Editor.
  • Error "Google Sheets API is not enabled" means you need to enable it (step 3) and wait a minute.

Found a bug or need a feature? Open an issue in the Issues tab. Fixes usually ship within 24 hours.

FAQ

Why a service account instead of "Sign in with Google"? OAuth logins used by other export tools expire or get revoked, and scheduled exports silently stop. A service account key keeps working until you delete it, which makes it a better fit for daily or hourly integrations.

Can I export the results of someone else's Actor? Yes. Any dataset you can access works. Add this Actor as an integration on that Actor and set Dataset to {{resource.defaultDatasetId}}.

How do I avoid duplicate rows when a scraper runs every day? Use the append-unique mode with uniqueKey set to a stable field such as url or id. Rows whose key is already in the sheet are skipped and not charged.

Will my formulas break when new fields appear? No. In append mode new fields are added as new columns on the right. Existing columns never move.

Is my key safe? The key field is marked secret, so Apify stores it encrypted and never shows it in logs. Give the service account access only to the spreadsheets you share with it. It cannot see the rest of your Google Drive.

What does it cost? $0.0001 per row written or read, which is $1 per 10,000 rows. A demo run without a key writes 2 sample rows, so it costs $0.0002.