# Flight Price Tracker in Google Sheets: Row per Route and Date

**Use case:** 

Keep a live fare table in Google Sheets: connect this after a Google Flights scraper and each run updates the row of every route and date in place (update by key "route,departureDate"), adds new dates, and keeps your own columns and formulas untouched. 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": "Fares",
  "rawData": [
    {
      "route": "NYC-LON",
      "departureDate": "2026-11-05",
      "lowestPrice": 512,
      "airline": "Sample Air"
    },
    {
      "route": "NYC-LON",
      "departureDate": "2026-11-06",
      "lowestPrice": 489,
      "airline": "Sample Air"
    }
  ],
  "offset": 0,
  "deduplicateByField": "route,departureDate",
  "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`).
