Internal usage of the API to search medias with a specific mime_type?

A post was split to a new topic: Selecting all items in API