App Logo
drive.google.com

Download a Google Drive file

Automatically download a Google Drive file on drive.google.com. Download one Google Drive file by id, or by a Drive or Docs URL, to the machine running the browser. Files stored as bytes (PDFs, images, video, Office documents) download as they are; Google Docs, Sheets and Slides are exported, so pass format to choose pdf, docx, xlsx, csv and the rest. Returns the file's name and type in Drive and where it was saved. For a whole folder, list it first and call this once per file.

Input

fileId required

Drive file id, or any Drive or Docs URL that contains it.

gid optional

Tab id (the gid in the sheet URL), for a csv or tsv export of a Google Sheet. Omit for the first tab.

format optional

Export format for a Google Doc, Sheet or Slides file. Defaults to pdf for documents and presentations, xlsx for spreadsheets. Files stored as bytes download as they are and ignore it.

Output

kind required

binary for a file stored as bytes, otherwise the Google type it was exported from.

name required

The file's name in Drive.

fileId required
filename required

The name the file was saved under.

mimeType required

The file's type in Drive.

url optional

A link to the bytes, when they are not on the machine running the browser.

path optional

Where the file was saved on the machine running the browser.

format optional

The export format used, for a Google Doc, Sheet or Slides file.

formatIgnored optional

True when a format was passed for a file stored as bytes, which downloads as it is.

FAQ

Download one Google Drive file by id, or by a Drive or Docs URL, to the machine running the browser. Files stored as bytes (PDFs, images, video, Office documents) download as they are; Google Docs, Sheets and Slides are exported, so pass format to choose pdf, docx, xlsx, csv and the rest. Returns the file's name and type in Drive and where it was saved. For a whole folder, list it first and call this once per file.
Ask an AI agent connected to Reduck to run reduck/drive.google.com/download_file, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/drive.google.com/download_file
You do not need one. "Download a Google Drive file" drives the real drive.google.com pages in a browser, so it works whether or not drive.google.com offers an API for this.
Required: fileId. Optional: gid, format.
It returns url, kind, name, path, fileId, format, filename, mimeType, formatIgnored.
Yes. It acts as you on drive.google.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the drive.google.com cookies saved by the Reduck extension.
It only reads. It looks things up on drive.google.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/drive.google.com/download_file, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/drive.google.com/download_file
It is part of Reduck's official curated catalogue.

Start building not clicking