Google Drive API - List Multiple Mime Types

google-api, google-drive-api

Solution

Yes you can, like this:

(mimeType = 'audio/mpeg' or mimeType = 'audio/mpeg3' or mimeType = 'audio/mp3')

Problem

Is there a way to make one call to search for multiple mimeTypes at once? For example, I'm trying to find all mp3 files in a folder. It seems like you need to make a call for each individual mimeType to find all the different ones, similar to this: https://www.googleapis.com/drive/v2/files?key=aaamykeyaaa&q=mimeType='audio/mpeg' https://www.googleapis.com/drive/v2/files?key=aaamykeyaaa&q=mimeType='audio/mpeg3' https://www.googleapis.com/drive/v2/files?key=aaamykeyaaa&q=mimeType='audio/mp3' Is there no way to include multiple mimeTypes in one query? It's very inefficient to do it this way. Thanks.

Original source