GET /v4/spreadsheets/{spreadsheetId}/values:batchGet
Changed onReturns one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more ranges.
Request
- Base URLhttps://sheets.googleapis.com
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/driveAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/drive
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/drive.fileAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/drive.file
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/drive.readonlyAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/drive.readonly
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/spreadsheetsAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/spreadsheets
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/spreadsheets.readonlyAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/spreadsheets.readonly
Path parameters
The ID of the spreadsheet to retrieve data from.
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API 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 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
How dates, times, and durations should be represented in the output. This is ignored if value_render_option is FORMATTED_VALUE. The default dateTime render option is SERIAL_NUMBER.
The major dimension that results should use. For example, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4, then requesting ranges=["A1:B2"],majorDimension=ROWS returns [[1,2],[3,4]], whereas requesting ranges=["A1:B2"],majorDimension=COLUMNS returns [[1,3],[2,4]].
The A1 notation or R1C1 notation of the range to retrieve values from.
How values should be represented in the output. The default render option is ValueRenderOption.FORMATTED_VALUE.
Response
Successful response
The response when retrieving more than one range of values in a spreadsheet.
The ID of the spreadsheet the data was retrieved from.
The requested values. The order of the ValueRanges is the same as the order of the requested ranges.
Changes
- info
the security scope
https://www.googleapis.com/auth/drivewas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/drivewas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/spreadsheets.readonlywas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info