Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID.
This method differs from spreadsheets.get in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters.
By default, data within grids is not returned. You can include grid data one of 2 ways:
Specify a field mask listing your desired fields using the fields URL parameter in HTTP
Set the includeGridData parameter to true. If a field mask is set, the includeGridData parameter is ignored
For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.
HTTP request
POST https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}:getByDataFilter
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["This endpoint `getByDataFilter` retrieves a spreadsheet based on specified data filters, allowing selection of specific data subsets unlike `spreadsheets.get`."],["Users can include grid data by using a field mask with the `fields` URL parameter or setting the `includeGridData` parameter to true."],["The request body requires `dataFilters` for specifying the ranges to retrieve and optionally `includeGridData` for including grid data."],["Successful responses return a `Spreadsheet` object containing the filtered data."],["Authorization requires one of the following OAuth scopes: `https://www.googleapis.com/auth/drive`, `https://www.googleapis.com/auth/drive.file`, or `https://www.googleapis.com/auth/spreadsheets`."]]],["This content describes retrieving spreadsheet data using the `getByDataFilter` method. Key actions include specifying the `spreadsheetId` in the `POST` request URL and using the `dataFilters` parameter within the request body to select desired ranges. The `includeGridData` parameter allows inclusion of grid data. The response returns a `Spreadsheet` object. Authorization requires specific OAuth scopes. Field masks can also specify data returned and are prioritized over `includeGridData`. Using this for large spreadsheet is recommended.\n"]]