Lodol Docs

Google Sheets

API actions for the Google Sheets integration.

Google Sheets

Read and write rows in Google Sheets workbooks.


Append cell to column

Append a single value to the end of a column.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
column_indexnumberYes1-based column index (1 -> A, 2 -> B, etc.)
valuestringYesThe value to append
value_input_optionstringNoHow the input data should be interpreted: 'RAW' or 'USER_ENTERED'

Response

{
  "status": "success"
}

Append row

Append a single row to the end of a Google Sheet.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab to append the row to
row_valuesarrayYesA list of values representing the row to append
value_input_optionstringNoHow the input data should be interpreted: 'RAW' or 'USER_ENTERED'

Response

{
  "status": "success"
}

Clear row values

Clear values in a specific row without deleting the row itself.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
row_indexnumberYes1-based row number to clear

Response

{
  "status": "success"
}

Clear tab

Clear all cells within a sheet/tab.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab to clear

Response

{
  "status": "success"
}

Create column

Insert a new column at a specified position.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
column_indexnumberYes1-based column index where the new column will be inserted

Response

{
  "status": "success"
}

Create spreadsheet

Create a new Google Sheets spreadsheet.

Parameters

ParameterTypeRequiredDescription
titlestringYesTitle of the new spreadsheet
localestringNoLocale of the spreadsheet (e.g., en_US)
time_zonestringNoTime zone of the spreadsheet (e.g., America/New_York)

Response

{
  "properties": {
    "locale": "en_US",
    "title": "My Spreadsheet"
  },
  "spreadsheet_id": "1AbCdEfGhIjKlMnOpQrStUvWxYz",
  "spreadsheet_url": "https://docs.google.com/spreadsheets/d/1AbCdEfGhIjKlMnOpQrStUvWxYz/edit"
}

Create tab

Create a new tab (sheet) within a spreadsheet.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesName for the new tab
sheet_indexnumberNoPosition index for the new tab (0-based)

Response

{
  "index": 1,
  "sheet_id": 123456789,
  "title": "New Tab"
}

Delete column

Delete a single column from a sheet.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
column_indexnumberYes1-based column index to delete

Response

{
  "status": "success"
}

Delete row

Delete a single row from a sheet.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
row_indexnumberYes1-based row number to delete

Response

{
  "status": "success"
}

Delete spreadsheet

Delete a Google Sheets spreadsheet permanently.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet to delete

Response

{
  "status": "success"
}

Delete tab

Delete a tab (sheet) from a spreadsheet by name.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesName of the tab to delete

Response

{
  "status": "success"
}

Get column values

Return all values from a specific column by index.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
column_indexnumberYes1-based column index (1 -> A, 2 -> B, etc.)

Response

[
  "Header",
  "Value1",
  "Value2",
  "Value3"
]

Get row values

Return all values from a specific row as a list.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
row_indexnumberYes1-based row number to read

Response

[
  "Name",
  "Email",
  "Status",
  "Date"
]

Read column

Read all values from a specific column.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
columnstringYesColumn letter (e.g., 'A', 'B', 'AA')

Response

[
  "Header",
  "Value1",
  "Value2",
  "Value3"
]

Rename tab

Rename an existing tab in a spreadsheet.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesCurrent name of the tab
new_sheet_namestringYesNew name for the tab

Response

{
  "sheet_id": 123456789,
  "title": "Renamed Tab"
}

Write row

Overwrite values in a specific row of the sheet.

Parameters

ParameterTypeRequiredDescription
spreadsheet_urlstringYesThe URL of the spreadsheet
sheet_namestringYesThe name of the sheet/tab
row_indexnumberYes1-based row number to write to
valuesarrayYesA list of values to write into the row
value_input_optionstringNoHow the input data should be interpreted: 'RAW' or 'USER_ENTERED'

Response

{
  "status": "success"
}

On this page