In the legacy document list API in which you just installed "type: audio" in the request. I cannot find something like this in the Drive API, but you can try using some undocumented search functions:
- use the contains statement for mimeType: mimeType contains 'audio /'
- use the or operator: mimeType = 'audio / mpeg' or mimeType = 'audio / mp3' or ...
- you can also use other operators: mimeType> 'audio /' and mimeType <'Audio / ~'
I think they are undocumented because they are poorly indexed. If the user has many files, you may need to split pages into many pages with empty elements before you get the results. You can also get more speed limit restrictions if you try to request this request because it is taxed on your servers. It may be more efficient to query each mimeType type separately. The Drive API should provide a new operator (e.g. startswith) or a new parameter for these types of requests (similar to the document API).
source share