Skip to content
gist.link ↗

worksheet

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

The worksheet query on the Sheets API.

sheets:query:worksheet

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 {
worksheet(id: String!): Worksheet!
}
Argument Type Required Description
id String! Yes —

Worksheet! — 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 Worksheet($id: String!) { worksheet(id: $id) { id workbookId title position rowCount columnCount dataEndRow frozenRows } }",
"variables": {
"id": "example"
}
}
JSON