Skip to content
gist.link ↗

publishedRanges

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

The publishedRanges query on the Sheets API.

sheets:query:publishedRanges

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 {
publishedRanges(workbookId: String!): [PublishedRange!]!
}
Argument Type Required Description
workbookId String! Yes —

[PublishedRange!]! — 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 PublishedRanges($workbookId: String!) { publishedRanges(workbookId: $workbookId) { id workbookId worksheetId targetAudience startRow endRow startColumn endColumn } }",
"variables": {
"workbookId": "example"
}
}
JSON