Google Drive: How to return only folders?

Edited

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

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.