Greater control over workbook calculations and data retrieval.
calc and values endpoints. While all three endpoints allow you to read and write cell values from a workbook, the query endpoint provides several advanced capabilities that give developers greater control over data manipulation and retrieval:
calc or values endpoints provide a simpler, more streamlined interface that’s easier to work with. However, when you need greater control, the query endpoint becomes essential.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Defines a request to read workbook data and, optionally, apply temporary changes. It includes
read (required cell references or formulas), apply (optional transient updates to cells),
and options (optional settings for the structure of returned data).
Cell references to read from the workbook and return to the client
A reference to a range of spreadsheet cells
"Sheet1!A1:B2"
Options to choose the structure of the returned data
Cells to update before reading. Note that the API has no state and any changes made are cleared after each request
[{ "target": "A2", "value": 1234 }]Goal seek. Use this to calculate the required input value for a formula to achieve a specified target result. Useful when the desired outcome is known, but the corresponding input is not
Successful Response
Contains the results of a workbook query, including read (queried cell data) and apply
(details of temporary changes applied). Note that the API has no state and any changes made are
cleared after each request.
Confirmation of the changes that were applied to the spreadsheet. Note that the API has no state and any changes made are cleared after each request
Details on the values that were read from the workbook cells
Results of the goal seek operation