App Logo
drive.google.com

List a Google Drive folder

Automatically list a Google Drive folder on drive.google.com. List the files and sub-folders directly inside a Google Drive folder, without recursing or downloading anything. Returns each item's id, name, type, size, dates, owner and link, folders first, one page at a time: pass nextPageToken back as pageToken to read the next page. Omit folderId to list My Drive's root. An empty folder returns empty lists.

Input

folderId optional

Google Drive folder id, the <id> in drive.google.com/drive/folders/<id>. Omit to list the root of My Drive.

pageSize optional

Number of items per page, up to 1000.

Default: 1000
pageToken optional

The nextPageToken of the previous page, to read the next one.

Output

count required

Folders plus files on this page.

files required
folders required
folderId required

The folder listed, or "root" for My Drive.

folderName required
nextPageToken required

Pass it as pageToken to read the next page. Null on the last page.

url optional

FAQ

List the files and sub-folders directly inside a Google Drive folder, without recursing or downloading anything. Returns each item's id, name, type, size, dates, owner and link, folders first, one page at a time: pass nextPageToken back as pageToken to read the next page. Omit folderId to list My Drive's root. An empty folder returns empty lists.
Ask an AI agent connected to Reduck to run reduck/drive.google.com/list_folder, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/drive.google.com/list_folder
You do not need one. "List a Google Drive folder" drives the real drive.google.com pages in a browser, so it works whether or not drive.google.com offers an API for this.
Optional: folderId, pageSize, pageToken.
It returns url, count, files, folders, folderId, folderName, nextPageToken.
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/list_folder, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/drive.google.com/list_folder
It is part of Reduck's official curated catalogue.

Start building not clicking