Method: spreadsheets.get Stay organized with collections Save and categorize content based on your preferences.
Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID.
By default, data within grids is not returned. You can include grid data in one of 2 ways:
Specify afield mask listing your desired fields using the
fieldsURL parameter in HTTPSet the
includeGridDataURL parameter to true. If a field mask is set, theincludeGridDataparameter is ignored
For large spreadsheets, as a best practice, retrieve only the specific spreadsheet fields that you want.
To retrieve only subsets of spreadsheet data, use theranges URL parameter. Ranges are specified usingA1 notation. You can define a single cell (for example,A1) or multiple cells (for example,A1:D5). You can also get cells from other sheets within the same spreadsheet (for example,Sheet2!A1:C4) or retrieve multiple ranges at once (for example,?ranges=A1:D5&ranges=Sheet2!A1:C4). Limiting the range returns only the portions of the spreadsheet that intersect the requested ranges.
HTTP request
GET https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
spreadsheetId |
The spreadsheet to request. |
Query parameters
| Parameters | |
|---|---|
ranges[] |
The ranges to retrieve from the spreadsheet. |
includeGridData |
True if grid data should be returned. This parameter is ignored if a field mask was set in the request. |
excludeTablesInBandedRanges |
True if tables should be excluded in the banded ranges. False if not set. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofSpreadsheet.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/spreadsheetshttps://www.googleapis.com/auth/spreadsheets.readonly
For more information, see theAuthorization guide.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-29 UTC.