---
title: "Batch retrieves values from multiple ranges in a Google Sheet."
method: POST
path: "/batchGetValues"
---

# Batch retrieves values from multiple ranges in a Google Sheet.

`POST /batchGetValues`

This function allows for efficient retrieval of data from multiple ranges within a Google Sheet using a single batch request. It takes a sheet ID and an array of range notations, returning a three-dimensional array containing the values from each specified range. This approach minimizes API calls and improves performance when fetching data from multiple areas of a spreadsheet.

## Request body

- object
  - `body` object — Body of the batchGetValues sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'oauth2' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/google-sheets

## Response `200`

Successful response

- array[] — A three-dimensional array containing the values in the specified ranges
  - array[]
    - string[]

## Other responses

- `400` — Bad Request - Invalid parameters
- `403` — Forbidden - Insufficient permissions to access the sheet
- `404` — Not Found - Sheet or specified ranges not found
- `500` — Internal Server Error

## Changes

- **2025-05-29** `470b95f73df9` — 1 breaking, 2 info
  - the `items/items/items/` response's property type/format changed from `any`/`` to `string`/`` for status `200`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2025-05-28** `77260ff78232` — 1 breaking, 2 info
  - the `items/items/items/` response's property type/format changed from `string`/`` to `any`/`` for status `200`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api/changes/batchGetValues/post.md)

---

[API](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api.md) · [All operations](https://skmtc.dev/microfox-ai/apis/google-sheets-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microfox-ai/google-sheets-sdk-api/revisions/85db428f2808/schema)
