App Logo
drive.google.com

Download a Google Drive file

Download one Drive file by id to the device. Binary files (PDFs, images, video, Office documents) download as stored; Google-native Docs, Sheets and Slides are converted on the way out, so pass format to choose pdf, docx, xlsx, csv and the rest. Returns the saved filename and location. For a whole folder, list it first and call this once per file.

Input

fileId required

Drive file id, or any full Drive/Docs URL containing it.

gid optional

Tab gid, for csv/tsv exports of a Google Sheet. Defaults to the first tab.

format optional

Export format, for Google-native Docs/Sheets/Slides only. Defaults to pdf for documents and presentations, xlsx for spreadsheets. Ignored for files already stored as bytes.

Output

kind required

How the file was fetched: stored bytes, or a converted export.

fileId required
filename required

The saved file's real name.

url optional

Set instead of path on cloud browsers.

path optional

Location on the machine running the browser. Null on cloud browsers, where url is set instead.

format optional

The export format used, for Google-native files.

formatIgnored optional

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

Start building not clicking