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
dane22
February 16, 2022, 7:47pm
2
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?
dane22
February 16, 2022, 10:04pm
4
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?
dane22
February 17, 2022, 10:37am
6
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!
1 Like
@dane22 Just a reminder that includeGuids=1 was implemented for this exact reason.
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…
2 Likes
dane22
February 17, 2022, 6:26pm
8
SwiftPanda16:
includeGuids=1
Stupid me, since I was among the people that wanted that
1 Like
SwiftPanda16:
includeGuids=1
Amazing! exactly what I was looking for!
Thank you so much
system
Closed
May 18, 2022, 8:31pm
10
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.