# Get MediaID  by Filename  from API Shopware 6

**URL:** <https://forum.shopware.com/t/get-mediaid-by-filename-from-api-shopware-6/70234>\
**Category:** Programming (EN)\
**Created:** [15. Oktober 2020 um 13:24 UTC](https://forum.shopware.com/t/get-mediaid-by-filename-from-api-shopware-6/70234 "2020-10-15T13:24:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DINUZEW](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@DINUZEW](https://forum.shopware.com/u/DINUZEW)\
**Post date:** [15. Oktober 2020 um 13:24 UTC](https://forum.shopware.com/t/get-mediaid-by-filename-from-api-shopware-6/70234/1 "2020-10-15T13:24:00Z")

</div>

Hi, I want to get MediaId of a file with name knowed by me.&nbsp;  
I want to call a route from Shopware API to return me MediaID of a Media by FileName.&nbsp;  
Thanks!
