Extract pictures order by characteristic in form


I’d like to download all the media files of a form and group them based on a field in the database. Is it possible to extract them like that using the API?

Thanks for the help!

Welcome to the community, @AdeZwart! Maybe this post discussed previously should help you solve your issue: