Advanced data queries
Greater control over workbook calculations and data retrieval.
This endpoint offers more control and flexibility compared to the 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:
- Goal seeking
- Organise data by rows or columns
- Use structured request parameters
For most use-cases, the 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.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
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).
Response
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.