{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Google Workspace Exporter: Sheets, Docs, Forms & Drive",
    "description": "Export public Google Sheets, Docs, Slides, Forms, Drive folders and Calendars without connecting a Google account. Reads typed sheet rows, document text and Markdown, slide notes, form questions, recursive folder metadata and calendar events from links shared with anyone.",
    "version": "1.0",
    "x-build-id": "RIHNoFJM1jE7F1PhX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~google-workspace-public-exporter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-google-workspace-public-exporter",
        "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/xyrelith-data~google-workspace-public-exporter/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-google-workspace-public-exporter",
        "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/xyrelith-data~google-workspace-public-exporter/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-google-workspace-public-exporter",
        "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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "mode": {
            "title": "Source type",
            "enum": [
              "auto",
              "sheets",
              "documents",
              "presentations",
              "forms",
              "driveFolders",
              "calendars"
            ],
            "type": "string",
            "description": "Export every detected source, or restrict the run to one Google product.",
            "default": "auto"
          },
          "startUrls": {
            "title": "Public Google links",
            "type": "array",
            "description": "Links shared with 'Anyone with the link'. Sheets, Docs, Slides, Forms, Drive folders and public Calendar ICS feeds can be mixed.",
            "default": [
              "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit"
            ],
            "items": {
              "type": "string"
            }
          },
          "sheetTabs": {
            "title": "Sheet tabs (names or gids)",
            "type": "array",
            "description": "Leave empty to export every tab. Add tab names such as 'Orders' or numeric gids such as '0'. Only applies to Sheets URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sheetRange": {
            "title": "Sheet range (A1 notation)",
            "type": "string",
            "description": "Optional cell range such as A1:F200, A1:F, or A:F applied to each selected sheet tab."
          },
          "detectHeaders": {
            "title": "Use a header row",
            "type": "boolean",
            "description": "When on, the chosen row becomes the field names. When off, columns are named columnA, columnB, and so on.",
            "default": true
          },
          "headerRow": {
            "title": "Header row number",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "1-based row used as the header when header detection is on.",
            "default": 1
          },
          "sheetQuery": {
            "title": "Sheet query (Google Visualization language)",
            "type": "string",
            "description": "Optional filter such as select A,B where C > 10 order by A. Uses the public Google Visualization query language for Sheets."
          },
          "includeFormulas": {
            "title": "Include cell formulas",
            "type": "boolean",
            "description": "Add a formulas object to sheet rows with the original formula for cells that contain one. XLSX path only.",
            "default": false
          },
          "includeHyperlinks": {
            "title": "Include cell hyperlinks",
            "type": "boolean",
            "description": "Add a hyperlinks object to sheet rows with the link target for cells that contain one. XLSX path only.",
            "default": false
          },
          "includeSlideNotes": {
            "title": "Include speaker notes",
            "type": "boolean",
            "description": "Add the speaker notes text to each slide record.",
            "default": true
          },
          "folderMaxDepth": {
            "title": "Subfolder depth",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many subfolder levels to descend. 0 lists the root folder only; 3 lists root, children, grandchildren and great-grandchildren entries.",
            "default": 3
          },
          "calendarFrom": {
            "title": "Calendar events from",
            "type": "string",
            "description": "Optional inclusive lower bound as YYYY-MM-DD or an ISO date-time. Events that end before this bound are skipped."
          },
          "calendarTo": {
            "title": "Calendar events to",
            "type": "string",
            "description": "Optional inclusive upper bound as YYYY-MM-DD or an ISO date-time. Events that start after this bound are skipped."
          },
          "calendarExpandRecurrences": {
            "title": "Expand recurring events",
            "type": "boolean",
            "description": "When on, daily, weekly, monthly and yearly RRULE events become one record per occurrence inside the date window.",
            "default": false
          },
          "calendarMaxOccurrences": {
            "title": "Maximum occurrences per recurring event",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap when recurrence expansion is on.",
            "default": 100
          },
          "calendarIncludeCancelled": {
            "title": "Include cancelled calendar events",
            "type": "boolean",
            "description": "Keep events whose ICS status is CANCELLED.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many records. One sheet row, one slide, one question, one file and one event each count as one record.",
            "default": 1000
          },
          "emitErrorRecords": {
            "title": "Emit error rows",
            "type": "boolean",
            "description": "Push a clear error record for links that are private, deleted, unsupported or temporarily unreachable.",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Per-request timeout for Google endpoints.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}