There’s no way to specify that you’re just looking for videos or images, but you can use filter:links as part of your query and using that in tandem with include_entities=true you’ll have [node:7289] from which to understand which are images, videos, and so on.