# Google Sheet to JSON API: Read Any Sheet

**Use case:** 

Turn any Google Sheet into JSON: one item per row, with the header row as field names. Numbers stay numbers. Use it to feed a sheet into another Actor, an AI agent or your app through the Apify API. Works with sheets shared with the Actor's e-mail or published as "Anyone with the link". Try it on our demo sheet, then paste your own sheet link.

## Input

```json
{
  "spreadsheetId": "https://docs.google.com/spreadsheets/d/1XEl1x1BNcQrfP1ZdDyBtvshMn7Pa50-I6eWy6etH9wk/edit",
  "mode": "read",
  "rawData": [
    {
      "product": "Wireless Mouse",
      "price": 24.99,
      "currency": "USD",
      "inStock": true,
      "url": "https://example.com/mouse"
    },
    {
      "product": "USB-C Hub",
      "price": 39.5,
      "currency": "USD",
      "inStock": false,
      "url": "https://example.com/hub"
    },
    {
      "product": "Laptop Stand",
      "price": 29,
      "currency": "USD",
      "inStock": true,
      "url": "https://example.com/stand"
    }
  ],
  "offset": 0,
  "onlyListedColumns": false,
  "arrayMode": "join",
  "addTimestamp": false,
  "formatHeader": true,
  "parseValues": false,
  "headerRow": 1
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "text"
  },
  "mode": {
    "label": "Mode",
    "format": "text"
  },
  "sheetName": {
    "label": "Tab",
    "format": "text"
  },
  "rowsAppended": {
    "label": "Rows added",
    "format": "number"
  },
  "rowsUpdated": {
    "label": "Rows updated",
    "format": "number"
  },
  "duplicatesSkipped": {
    "label": "Duplicates skipped",
    "format": "number"
  },
  "columns": {
    "label": "Columns",
    "format": "number"
  },
  "sheetCreated": {
    "label": "New tab",
    "format": "boolean"
  },
  "spreadsheetUrl": {
    "label": "Sheet",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Sheets Import & Export: Sync Datasets, Update Rows](https://apify.com/s_actors/google-sheets-import-export.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/s_actors/google-sheets-import-export.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/s_actors/google-sheets-import-export.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
