

The metadata representation you get back by default is pretty thin. You need to accompany that with a Authorization: Bearer YOUR_ACCESS_TOKEN header - see Google OAuth for CLI applications for more on that. So the URL for a folder with ID 1E6Zg2X2bjjtPzVfX8YqdXZDCoB3AVA7i ends up looking like this:

The q= parameter needs to be fed the following special search query: "FOLDER_ID" in parents

To fetch files in a single folder with the ID FOLDER_ID you need to use this API. Simon Willison’s TILs Recursively fetching metadata for all files in a Google Drive folderįor google-drive-to-sqlite I wanted a mechanism to recursively return metadata on every file in a specified Goole Drive folder. Recursively fetching metadata for all files in a Google Drive folder | Simon Willison’s TILs
