Plex API support for IMDB

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

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

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?

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

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).

Based on what you were saying, it should have the IMDB information listed on: /library/sections/<KEY_OF_SECTION>/all
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!

1 Like

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

2 Likes

Stupid me, since I was among the people that wanted that :wink:

1 Like

Amazing! exactly what I was looking for!

Thank you so much

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