# media information in search function

**URL:** <https://forums.plex.tv/t/media-information-in-search-function/183883>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [March 10, 2017, 10:05pm UTC](https://forums.plex.tv/t/media-information-in-search-function/183883 "2017-03-10T22:05:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![exonintrendo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/exonintrendo/32/3813_2.png) [@exonintrendo](https://forums.plex.tv/u/exonintrendo)\
**Post date:** [March 10, 2017, 10:05pm UTC](https://forums.plex.tv/t/media-information-in-search-function/183883/1 "2017-03-10T22:05:24Z")

</div>

I’m trying to write a metadata agent. First of all, are there any docs on this? I can’t find any anywhere. I’m using existing ones to try and bootstrap some of the code. But it looks like with the `search` function, you’re given a `media object. Is there any way to get the actual filename (with extension) of this item to parse and search on?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 8:02pm UTC](https://forums.plex.tv/t/media-information-in-search-function/183883/2 "2020-01-08T20:02:57Z")

</div>


