Skip to content
gist.link ↗

cellRange

Query Sheets API — POST https://sheets.api.gist.link/graphql

The cellRange query on the Sheets API.

sheets:query:cellRange

The calling IAM key must hold this permission (or a wildcard that covers it: sheets:query:* or sheets:*) and the access token must have been minted with audience=sheets. See Permissions.

type Query {
cellRange(worksheetId: String!, rowStart: Int!, columnStart: Int!, rowEnd: Int!, columnEnd: Int!): CellRange!
}
Argument Type Required Description
worksheetId String! Yes —
rowStart Int! Yes —
columnStart Int! Yes —
rowEnd Int! Yes —
columnEnd Int! Yes —

CellRange! — see the Sheets types reference.

Terminal window
curl https://sheets.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query CellRange($worksheetId: String!, $rowStart: Int!, $columnStart: Int!, $rowEnd: Int!, $columnEnd: Int!) { cellRange(worksheetId: $worksheetId, rowStart: $rowStart, columnStart: $columnStart, rowEnd: $rowEnd, columnEnd: $columnEnd) { worksheetId rowStart columnStart rowEnd columnEnd revision } }",
"variables": {
"worksheetId": "example",
"rowStart": 10,
"columnStart": 10,
"rowEnd": 10,
"columnEnd": 10
}
}
JSON