Skip to main content

Get range values

Read a range as a list of rows and, optionally, as a data table with the first row as column names.

Command in the Google Workspace toolkit · id ooa.google/sheets_get_range · 7 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names).
RangeStringNoA1 range, optionally with the sheet name, e.g. Sheet1!A1:C10; the first sheet when no sheet is named. Leave empty to read all cells of a sheet.
First row is the headerBooleanNotrueTable only: the first row holds column names.
FormattedBooleanNofalseReturn values as displayed instead of raw values.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.
SheetStringNoWhen no range is given: the sheet (tab) whose cells are all read; the first sheet when empty.

Outputs​

OutputTypeWhat it is
valuesListList of rows, each a list of cell values.
tableTableThe same range as a data table.