# Amazon Price Tracker in Google Sheets: Update by ASIN

**Use case:** 

Track Amazon product prices in a Google Sheet: connect this after an Amazon scraper and each run updates the row of every ASIN with the latest price and stock, adds new products, and never duplicates a row. 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": "update",
  "sheetName": "Amazon prices",
  "rawData": [
    {
      "asin": "B0SAMPLE01",
      "title": "Sample Coffee Grinder",
      "price": 39.99,
      "inStock": true
    },
    {
      "asin": "B0SAMPLE02",
      "title": "Sample Kettle",
      "price": 54,
      "inStock": false
    }
  ],
  "offset": 0,
  "deduplicateByField": "asin",
  "columnsOrder": [
    "asin",
    "title",
    "price",
    "inStock"
  ],
  "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`).
