Skip to main content
All CollectionsApideck Unify
Google Drive: How to return only folders?
Google Drive: How to return only folders?
Updated over a year ago

Google Drive treats all files & folders in a drive as items with a mime type.

Example:

GET https://unify.apideck.com/file-storage/files

By using the pass_through query parameter when requesting the list of files from Unify, you can send specific search query terms and operators to the Google Drive API endpoint.

Example:

GET https://unify.apideck.com/file-storage/files?pass_through[q]=mimeType='application/vnd.google-apps.folder'

This will instruct Google Drive to only return "folder" items

Did this answer your question?