Skip to content
gist.link ↗

publishedRangeRows

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

The publishedRangeRows query on the Sheets API.

sheets:query:publishedRangeRows

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 {
publishedRangeRows(grantId: String!, snapshotId: String, first: Int!, after: String): PublishedRangeRowConnection!
}
Argument Type Required Description
grantId String! Yes —
snapshotId String No —
first Int! Yes —
after String No —

PublishedRangeRowConnection! — 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 PublishedRangeRows($grantId: String!, $snapshotId: String, $first: Int!, $after: String) { publishedRangeRows(grantId: $grantId, snapshotId: $snapshotId, first: $first, after: $after) { snapshotId sourceRevision schema totalCount edges { cursor node { sourceRow values } } } }",
"variables": {
"grantId": "example",
"snapshotId": "example",
"first": 10,
"after": "cursor"
}
}
JSON