# Plex API querying IMDB ID

**URL:** https://forums.plex.tv/t/plex-api-querying-imdb-id/325955
**Category:** Dev/API Corner
**Created:** [October 31, 2018, 4:23pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955 "2018-10-31T16:23:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![guy165101](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@guy165101](https://forums.plex.tv/u/guy165101)
#### Post date: [October 31, 2018, 4:23pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/1 "2018-10-31T16:23:18Z")

</div>

Hello working on making an automated way to grab new movies not in my Plex Movie server. Ran into an issue, when querying the API, I was able to get IMDB info now after an upgrade, and prob misc other changes I don’t seem to be able to get that data anymore?

Here was a screen shot of what I see:

 ![12%20PM](https://global.discourse-cdn.com/plex/original/3X/c/a/cacefded834cbbf42654621eeb1a559038d28374.png)

I have also changed the movie agent back to ‘Plex movie’ instead of ‘the movie database’.

Does anyone have any suggestions? I have also queried the DB, looking for something different and its the same as well.

---

<div class="post-metadata">

### Author: ![mcqweb](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mcqweb](https://forums.plex.tv/u/mcqweb)
#### Post date: [October 31, 2018, 4:32pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/2 "2018-10-31T16:32:40Z")

</div>

You could always try and get it from OMDB API based on title and year

It’s another call, but I was doing something similar to identify missing movies from any collections I had

```auto
`	res= requests.get("http://www.omdbapi.com/?apikey="+OMDBAPI+"&type=movie&r=xml&t="+title+"&y="+str(year))
	IMDBResponse = BeautifulSoup(res.text,"html.parser")
	IMDBMovie = IMDBResponse.select_one('movie')
	IMDBRating = ""
	#metaRating = ""
	imdbID = IMDBMovie.get("imdbid")

```

---

<div class="post-metadata">

### Author: ![guy165101](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@guy165101](https://forums.plex.tv/u/guy165101)
#### Post date: [October 31, 2018, 4:37pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/3 "2018-10-31T16:37:26Z")

</div>

Great suggestion man! I thought about that as well, but they only give a 1k free away a day. I have 1300ish movies.

I might switch to this, if there isn’t another way.

Thanks for your help.

---

<div class="post-metadata">

### Author: ![mcqweb](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mcqweb](https://forums.plex.tv/u/mcqweb)
#### Post date: [October 31, 2018, 4:40pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/4 "2018-10-31T16:40:41Z")

</div>

Perhaps store the IMDB IDs locally once you’ve grabbed them and query that going forwards (or start it off at 11:55pm) 😉

---

<div class="post-metadata">

### Author: ![guy165101](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@guy165101](https://forums.plex.tv/u/guy165101)
#### Post date: [October 31, 2018, 4:51pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/5 "2018-10-31T16:51:53Z")

</div>

Now were talkin 😉

---

<div class="post-metadata">

### Author: ![guy165101](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@guy165101](https://forums.plex.tv/u/guy165101)
#### Post date: [November 1, 2018, 1:39pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/6 "2018-11-01T13:39:59Z")

</div>

Changed the agent to ‘plex movie’ instead of TheMoviedatabase, and see the IMDB information again. This does require you to delete, and re-import the library stuff FYI…

Feel free to close.

---

<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 30, 2019, 1:43pm UTC](https://forums.plex.tv/t/plex-api-querying-imdb-id/325955/7 "2019-01-30T13:43:15Z")

</div>

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