Get Values By Data Filter

POST {{baseUrl}}/v4/spreadsheets/:spreadsheetId/values:batchGetByDataFilter

Returns one or more ranges of values that match the specified data filters. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges that match any of the data filters in the request will be returned.

Request Params

KeyDatatypeRequiredDescription
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").
$.xgafvstringV1 error format.

Request Body

{"dataFilters"=>[{"a1Range"=>"eiusmod anim enim culpa", "developerMetadataLookup"=>{"locationMatchingStrategy"=>"INTERSECTING_LOCATION", "locationType"=>"SPREADSHEET", "metadataId"=>-64798951, "metadataKey"=>"sint minim commodo", "metadataLocation"=>{"dimensionRange"=>{"dimension"=>"ROWS", "endIndex"=>34518543, "sheetId"=>68337575, "startIndex"=>91706381}, "locationType"=>"ROW", "sheetId"=>-33783740, "spreadsheet"=>true}, "metadataValue"=>"sunt", "visibility"=>"DEVELOPER_METADATA_VISIBILITY_UNSPECIFIED"}, "gridRange"=>{"endColumnIndex"=>-96821047, "endRowIndex"=>-9277805, "sheetId"=>7522437, "startColumnIndex"=>85603635, "startRowIndex"=>-31384652}}, {"a1Range"=>"sunt irure dolor", "developerMetadataLookup"=>{"locationMatchingStrategy"=>"DEVELOPER_METADATA_LOCATION_MATCHING_STRATEGY_UNSPECIFIED", "locationType"=>"SHEET", "metadataId"=>26360577, "metadataKey"=>"in minim nulla aliquip laboris", "metadataLocation"=>{"dimensionRange"=>{"dimension"=>"COLUMNS", "endIndex"=>-14426665, "sheetId"=>88787400, "startIndex"=>-98846780}, "locationType"=>"COLUMN", "sheetId"=>-14062757, "spreadsheet"=>true}, "metadataValue"=>"proident au", "visibility"=>"DOCUMENT"}, "gridRange"=>{"endColumnIndex"=>-11696202, "endRowIndex"=>-87528654, "sheetId"=>32991035, "startColumnIndex"=>-95148112, "startRowIndex"=>-72465558}}], "dateTimeRenderOption"=>"FORMATTED_STRING", "majorDimension"=>"DIMENSION_UNSPECIFIED", "valueRenderOption"=>"FORMULA"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK