# Getting Movie ID from Server API

**URL:** <https://forums.plex.tv/t/getting-movie-id-from-server-api/30232>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [March 6, 2013, 1:23am UTC](https://forums.plex.tv/t/getting-movie-id-from-server-api/30232 "2013-03-06T01:23:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadocrew](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@nadocrew](https://forums.plex.tv/u/nadocrew)\
**Post date:** [March 6, 2013, 1:23am UTC](https://forums.plex.tv/t/getting-movie-id-from-server-api/30232/1 "2013-03-06T01:23:07Z")

</div>

How do I get the IMDB ID or the TMDB ID for a movie in my library? I was able to get here&nbsp;/library/metadata/2405, but it doesn't show the IMDB ID. Is there a special parameter I have to pass to get it?

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [March 6, 2013, 1:12pm UTC](https://forums.plex.tv/t/getting-movie-id-from-server-api/30232/2 "2013-03-06T13:12:38Z")

</div>

> How do I get the IMDB ID or the TMDB ID for a movie in my library? I was able to get here&nbsp;/library/metadata/2405, but it doesn't show the IMDB ID. Is there a special parameter I have to pass to get it?

Hi!

The id used by the agent can be found as part of the _guid_ attribute of the element:

\<?xml version="1.0" encoding="UTF-8"?\>  
   
&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...  
&nbsp;&nbsp;

---

<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:** [December 20, 2019, 11:07pm UTC](https://forums.plex.tv/t/getting-movie-id-from-server-api/30232/3 "2019-12-20T23:07:45Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
