{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Sheets Import & Export: Read Public Sheets, No OAuth",
    "description": "Pulls Google Sheets Import & Export down to one paste: drop a public sheet link and get every tab as clean JSON or CSV rows. Add a dataset or raw rows and append keeps the old rows. Schedule it to get only new or changed rows. No OAuth, no Google account.",
    "version": "0.1",
    "x-build-id": "gVrCnmS3ZEGCwikez"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/h1018y~anvil-google-sheets-all/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-h1018y-anvil-google-sheets-all",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/h1018y~anvil-google-sheets-all/runs": {
      "post": {
        "operationId": "runs-sync-h1018y-anvil-google-sheets-all",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/h1018y~anvil-google-sheets-all/run-sync": {
      "post": {
        "operationId": "run-sync-h1018y-anvil-google-sheets-all",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "spreadsheets": {
            "title": "Google Sheets links",
            "type": "array",
            "description": "Share links or IDs of sheets set to 'Anyone with the link can view'. Every tab is read.",
            "default": [
              "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit"
            ],
            "items": {
              "type": "string"
            }
          },
          "allTabs": {
            "title": "Read every tab",
            "type": "boolean",
            "description": "Off = only the tab in the link (#gid=...) or the first tab.",
            "default": true
          },
          "skipEmptyRows": {
            "title": "Skip empty rows",
            "type": "boolean",
            "description": "Leave out rows where every cell is blank.",
            "default": true
          },
          "maxRows": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many rows across all sheets and tabs.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new or changed rows",
            "type": "boolean",
            "description": "On = return only rows that are new or changed since the last run with the same input. Put it on a schedule, e.g. daily, to watch a sheet.",
            "default": false
          },
          "flatRows": {
            "title": "Column names as top-level fields",
            "type": "boolean",
            "description": "On = each column also comes as its own field, e.g. item['Price'], next to the nested 'row' object. A column missing from a tab is null.",
            "default": false
          },
          "range": {
            "title": "Range",
            "type": "string",
            "description": "Tab and cells in A1 notation, e.g. Sheet1!A1:C10, A1:C10 or just a tab name. Empty = the whole sheet. The first row of the range is the header."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "read",
              "append",
              "replace",
              "modify",
              "load backup"
            ],
            "type": "string",
            "description": "What to return, e.g. append. Nothing is ever written to Google: append and replace return the rows the sheet would hold, for you to export as CSV or JSON.",
            "default": "auto"
          },
          "datasetId": {
            "title": "Dataset ID of new rows",
            "type": "string",
            "description": "Apify dataset to take new rows from, e.g. abc123XYZ456. Nested fields become columns like price/usd. It must be readable without a token."
          },
          "rawData": {
            "title": "New rows as JSON",
            "type": "array",
            "description": "New rows as objects, e.g. [{\"name\": \"Ann\"}], or as arrays with the header first, e.g. [[\"name\"], [\"Ann\"]]."
          },
          "limit": {
            "title": "Limit dataset items",
            "minimum": 0,
            "type": "integer",
            "description": "How many items to take from the dataset, e.g. 500. At most 100000 are read in one run.",
            "default": 250000
          },
          "offset": {
            "title": "Skip dataset items",
            "minimum": 0,
            "type": "integer",
            "description": "How many items to skip at the start of the dataset, e.g. 100.",
            "default": 0
          },
          "deduplicateByField": {
            "title": "Deduplicate by column",
            "type": "string",
            "description": "Keep the first row for each value of this column, e.g. url. It is also the row's identity for 'changed' in Only new. Old rows win over new ones."
          },
          "deduplicateByEquality": {
            "title": "Deduplicate equal rows",
            "type": "boolean",
            "description": "On = drop a row when every cell equals an earlier row, e.g. a row pasted twice.",
            "default": false
          },
          "columnsOrder": {
            "title": "Columns order",
            "type": "array",
            "description": "Column names to put first, e.g. name then url. The rest follow alphabetically. Empty = the sheet's own order.",
            "items": {
              "type": "string"
            }
          },
          "keepSheetColumnOrder": {
            "title": "Keep column order from sheet",
            "type": "boolean",
            "description": "On = ignore Columns order and keep the columns as they are in the sheet, e.g. for a fixed template.",
            "default": false
          },
          "spreadsheetId": {
            "title": "Spreadsheet ID (other tools' name)",
            "type": "string",
            "description": "Same as a link in 'spreadsheets', for runs switched from lukaskrivka/google-sheets, e.g. 1BxiMVs0. Used alone it reads the first tab, as that tool does."
          },
          "sheetId.eFPUdxsL7X2cdSvE2": {
            "title": "Spreadsheet ID (other tools' name)",
            "type": "string",
            "description": "Same as a link in 'spreadsheets', for runs switched from lukaskrivka/google-sheets, e.g. 1BxiMVs0."
          },
          "oAuthAccount.eFPUdxsL7X2cdSvE2": {
            "title": "Google account (ignored)",
            "type": "string",
            "description": "Accepted so switched runs do not fail, e.g. abc123. It is ignored: no Google account is ever used here."
          },
          "publicSpreadsheet": {
            "title": "Public spreadsheet (ignored)",
            "type": "boolean",
            "description": "Accepted so switched runs do not fail, e.g. true. Every sheet read here is a public one.",
            "default": false
          },
          "transformFunction": {
            "title": "Transform function (not run)",
            "type": "string",
            "description": "Accepted so switched runs do not fail, e.g. (o) => o. This JavaScript is not run: the log says so. Use the deduplicate fields."
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Send requests through Apify Proxy.",
            "default": true
          },
          "proxyGroups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Optional Apify Proxy groups, e.g. RESIDENTIAL.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}