Actor picture

Google Sheets Import & Export

lukaskrivka/google-sheets

Import data from datasets or JSON files to Google Sheets. Programmatically process data in Sheets. Easier and faster than the official Google Sheets API and perfect for importing data from scraping.

No credit card required

Author's avatarLukáš Křivka
  • Modified
  • Users394
  • Runs923,406
Actor picture

Google Sheets Import & Export

Mode

mode

Optional

string

What should the actor do

Options:

"append", "replace", "modify", "read", "load backup"

Spreadsheet id

spreadsheetId

Optional

string

Id of the spreadsheet from where the old data will be loaded

Public spreadsheet (read-only)

publicSpreadsheet

Optional

boolean

If checked, you don't need to authorize. You have to publish your spreadsheet and it works only in read mode

Dataset ID

datasetId

Optional

string

Dataset or crawler execution id where the new data will be loaded from

Raw data

rawData

Optional

array

Raw data JSON array. Can be array of arrays for direct row import or arrays of objects.

Limit items

limit

Optional

integer

Number of items to take from the dataset. The default is 250000.

Offset items

offset

Optional

integer

Number of items to skip from the dataset. Default is 0.

Deduplicate by field

deduplicateByField

Optional

string

Items will be deduplicated by a value of this field. Cannot be used together with 'Deduplicate by equality' or 'Transform function'.

Deduplicate by equality

deduplicateByEquality

Optional

boolean

Items will be deduplicated if they are the same. Cannot be used together with 'Deduplicate by field' or 'Transform function'.

Transform function

transformFunction

Optional

string

Custom function that will take new items and old items arrays as parameters and produces final array that will be imported. Cannot be used together with 'Deduplicate by equality' or 'Deduplicate by field'

Range

range

Optional

string

Range of the spreadsheet in A1 notation where the actor should operate. Default is the first sheet.

Columns order

columnsOrder

Optional

array

Array of keys. First sorts the columns by provided keys. The rest is sorted alphabetically.

Keep column order from sheet

keepSheetColumnOrder

Optional

boolean

If true, keeps the order of columns as they are in the sheet. If there is no sheet data yet, this does nothing.

Google OAuth tokens store

tokensStore

Optional

string

Key-value store where your Google OAuth tokens will be stored so you don't have to authorize every time again. By default it is google-oauth-tokens

Create backup

createBackup

Optional

boolean

Old rows from your spreadsheet will be saved to the default key-value store before importing new rows.

Backup store id

backupStore

Optional

string

Id of the key-value store where the backup you want to load is located. Can pnly be used if mode is 'load-backup'

Google Developer Console credentials

googleCredentials

Optional

object

If you want to use this actor locally or with your own version, you have to provide your own crednetials. Check actor readme for more information.