# Plex API support for IMDB

**URL:** https://forums.plex.tv/t/plex-api-support-for-imdb/776717
**Category:** Plex Media Server
**Tags:** server-linux, plex-web
**Created:** [February 16, 2022, 2:20pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717 "2022-02-16T14:20:23Z")
**Posts on this page:** 10
**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: [February 16, 2022, 2:20pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/1 "2022-02-16T14:20:23Z")

</div>

Hello,

Up until the latest release I was able to view all all my movies IMDB information via: \<plex\_server\_url\>/library/sections/1/all

Now it seems I need to query the individual metadata for each movie.

My Question(s):

Is there a URL param I can add to supply this URL with additional metadata?  
ex:) \<plex\_server\_url\>/library/sections/1/all?metadata=true

Or does the search API support searching for IMDB?  
ex:) \<plex\_server\_url\>/search?imdb=tt1234567

---

<div class="post-metadata">

### Author: ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)
#### Post date: [February 16, 2022, 7:47pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/2 "2022-02-16T19:47:28Z")

</div>

It changed with the new native agents, where the GUID is stored now, so you have to do an individual item lookup, like:

`/library/metadata/KEY`

If using old legacy agents, then it’s still possible, and when said, using an endpoint like:  
`/library/sections/1/all` does have an impact on PMS, so I recommend using paging here

---

<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: [February 16, 2022, 9:23pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/3 "2022-02-16T21:23:44Z")

</div>

I see, thank you for the update.

Using the search API

\<plex\_server\>/search?query=Ghostbusters%20Afterlife === returns nothing.  
\<plex\_server\>/search?query=Ghostbusters:%20Afterlife === returns the movie.

Is there more of a fuzzy search API… Or a way of querying the IMDB of a movie directly?

---

<div class="post-metadata">

### Author: ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)
#### Post date: [February 16, 2022, 10:04pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/4 "2022-02-16T22:04:50Z")

</div>

There’s no way I know off to query for the IMDB ID directly

You need to do something like:

`GET /library/sections/<KEY_OF_SECTION>/all?X-Plex-Container-Start=0&X-Plex-Container-Size=50`

Above will return the first 50 entries  
Get the key value from each of them one by one, and issue a GET on that, like  
`/library/metadata/51998`

Then get the next 50 items  
`GET /library/sections/<KEY_OF_SECTION>/all?X-Plex-Container-Start=50&X-Plex-Container-Size=50`

---

<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: [February 17, 2022, 1:11am UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/5 "2022-02-17T01:11:49Z")

</div>

Appreciate it, and understood, that was how I was doing it now.

If I want to use one of the ‘old agents’ again. (image attached) I have rescanned my library (with this configured).

 ![Screen Shot 2022-02-16 at 8.10.57 PM](https://global.discourse-cdn.com/plex/original/4X/a/a/c/aacba85d8a5e6468d5171f4b650c2d87a96ef146.jpeg)

Based on what you were saying, it should have the IMDB information listed on: /library/sections/\<KEY\_OF\_SECTION\>/all  
right?

---

<div class="post-metadata">

### Author: ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)
#### Post date: [February 17, 2022, 10:37am UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/6 "2022-02-17T10:37:11Z")

</div>

> [@guy165101](#):
>
> right?

Correct, it’s in the guid field.

But STRONGLY recommend not to, since there’s a reason they are named legacy!  
Also STRONGLY recommend using paging!

---

<div class="post-metadata">

### Author: ![SwiftPanda16](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/swiftpanda16/32/81839_2.png) [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)
#### Post date: [February 17, 2022, 5:25pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/7 "2022-02-17T17:25:45Z")

</div>

@dane22 Just a reminder that `includeGuids=1` was implemented for this exact reason.

> [@\[implemented\] Add includeGuids URL parameter to return external Guids](https://forums.plex.tv/t/implemented-add-includeguids-url-parameter-to-return-external-guids/735620):
>
> External metadata guids were implemented for the new Plex Movie and Plex TV Series agent in this previous feature request. Example: \<Guid id="imdb://tt5433138"/\> \<Guid id="tmdb://385128"/\> \<Guid id="tvdb://8856"/\> However, these external guids are only available when retrieving the metadata XML for a single item (i.e. /library/metadata/\<ratingKey\>). They are not available when retrieving the contents of a library (i.e. /library/sections/\<librarySectionID\>/all). Many 3rd party applications d…

---

<div class="post-metadata">

### Author: ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)
#### Post date: [February 17, 2022, 6:26pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/8 "2022-02-17T18:26:39Z")

</div>

> [@SwiftPanda16](#):
>
> includeGuids=1

Stupid me, since I was among the people that wanted that 😉

---

<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: [February 17, 2022, 8:31pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/9 "2022-02-17T20:31:02Z")

</div>

> [@SwiftPanda16](#):
>
> includeGuids=1

Amazing! exactly what I was looking for!

Thank you so much

---

<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: [May 18, 2022, 8:31pm UTC](https://forums.plex.tv/t/plex-api-support-for-imdb/776717/10 "2022-05-18T20:31:11Z")

</div>

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