Server
Media
Butler
Plex
Library
- GETGet Hash Value
- GETGet Recently Added
- GETGet All Libraries
- GETGet library details
- DELDelete library section
- GETGet library items
- GETGet all media of library
- GETRefresh Metadata Of The Library
- GETSearch library
- GETGet Genres of library media
- GETGet Countries of library media
- GETGet Actors of library media
- GETSearch All Libraries
- GETGet Media Metadata
- GETGet Items Children
- GETGet Top Watched Content
- GETGet On Deck
Watchlist
Playlists
Authentication
Sessions
Get Search Results
This will search the database for the string provided.
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Search.GetSearchResultsAsync(query: "110");
// handle response
{
"MediaContainer": {
"size": 26,
"identifier": "com.plexapp.plugins.library",
"mediaTagPrefix": "/system/bundle/media/flags/",
"mediaTagVersion": 1680021154,
"Metadata": [
{
"allowSync": true,
"librarySectionID": 1,
"librarySectionTitle": "Movies",
"librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30",
"personal": true,
"sourceTitle": "Hera",
"ratingKey": 10398,
"key": "/library/metadata/10398",
"guid": "plex://movie/5d7768284de0ee001fcc8f52",
"studio": "Paramount",
"type": "movie",
"title": "Mission: Impossible",
"contentRating": "PG-13",
"summary": "When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score.",
"rating": 6.6,
"audienceRating": 7.1,
"year": 1996,
"tagline": "Expect the impossible.",
"thumb": "/library/metadata/10398/thumb/1679505055",
"art": "/library/metadata/10398/art/1679505055",
"duration": 6612628,
"originallyAvailableAt": "1996-05-22T00:00:00.000Z",
"addedAt": 1589234571,
"updatedAt": 1679505055,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"chapterSource": "media",
"primaryExtraKey": "/library/metadata/10501",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 26610,
"duration": 6612628,
"bitrate": 4751,
"width": 1916,
"height": 796,
"aspectRatio": 2.35,
"audioChannels": 6,
"audioCodec": "aac",
"videoCodec": "hevc",
"videoResolution": 1080,
"container": "mkv",
"videoFrameRate": "24p",
"audioProfile": "lc",
"videoProfile": "main 10",
"Part": [
{
"id": 26610,
"key": "/library/parts/26610/1589234571/file.mkv",
"duration": 6612628,
"file": "/movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv",
"size": 3926903851,
"audioProfile": "lc",
"container": "mkv",
"videoProfile": "main 10"
}
]
}
],
"Genre": [
{
"tag": "Action"
}
],
"Director": [
{
"tag": "Brian De Palma"
}
],
"Writer": [
{
"tag": "David Koepp"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Role": [
{
"tag": "Tom Cruise"
}
]
}
],
"Provider": [
{
"key": "/system/search",
"title": "Local Network",
"type": "mixed"
}
]
}
}
Authorizations
Plex Authentication Token
Query Parameters
The search query string to use
"110"
Response
26
"com.plexapp.plugins.library"
"/system/bundle/media/flags/"
1680021154
1
"Movies"
"322a231a-b7f7-49f5-920f-14c61199cd30"
"Hera"
10398
"/library/metadata/10398"
"plex://movie/5d7768284de0ee001fcc8f52"
"Paramount"
"movie"
"Mission: Impossible"
"PG-13"
"When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score."
6.6
7.1
1996
"Expect the impossible."
"/library/metadata/10398/thumb/1679505055"
"/library/metadata/10398/art/1679505055"
6612628
"1996-05-22T00:00:00.000Z"
1589234571
1679505055
"rottentomatoes://image.rating.upright"
"media"
"/library/metadata/10501"
"rottentomatoes://image.rating.ripe"
26610
6612628
4751
1916
796
2.35
6
"aac"
"hevc"
1080
"mkv"
"24p"
"lc"
"main 10"
26610
"/library/parts/26610/1589234571/file.mkv"
6612628
"/movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv"
3926903851
"lc"
"mkv"
"main 10"
"Brian De Palma"
"David Koepp"
"United States of America"
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Search.GetSearchResultsAsync(query: "110");
// handle response
{
"MediaContainer": {
"size": 26,
"identifier": "com.plexapp.plugins.library",
"mediaTagPrefix": "/system/bundle/media/flags/",
"mediaTagVersion": 1680021154,
"Metadata": [
{
"allowSync": true,
"librarySectionID": 1,
"librarySectionTitle": "Movies",
"librarySectionUUID": "322a231a-b7f7-49f5-920f-14c61199cd30",
"personal": true,
"sourceTitle": "Hera",
"ratingKey": 10398,
"key": "/library/metadata/10398",
"guid": "plex://movie/5d7768284de0ee001fcc8f52",
"studio": "Paramount",
"type": "movie",
"title": "Mission: Impossible",
"contentRating": "PG-13",
"summary": "When Ethan Hunt the leader of a crack espionage team whose perilous operation has gone awry with no explanation discovers that a mole has penetrated the CIA he's surprised to learn that he's the No. 1 suspect. To clear his name Hunt now must ferret out the real double agent and in the process even the score.",
"rating": 6.6,
"audienceRating": 7.1,
"year": 1996,
"tagline": "Expect the impossible.",
"thumb": "/library/metadata/10398/thumb/1679505055",
"art": "/library/metadata/10398/art/1679505055",
"duration": 6612628,
"originallyAvailableAt": "1996-05-22T00:00:00.000Z",
"addedAt": 1589234571,
"updatedAt": 1679505055,
"audienceRatingImage": "rottentomatoes://image.rating.upright",
"chapterSource": "media",
"primaryExtraKey": "/library/metadata/10501",
"ratingImage": "rottentomatoes://image.rating.ripe",
"Media": [
{
"id": 26610,
"duration": 6612628,
"bitrate": 4751,
"width": 1916,
"height": 796,
"aspectRatio": 2.35,
"audioChannels": 6,
"audioCodec": "aac",
"videoCodec": "hevc",
"videoResolution": 1080,
"container": "mkv",
"videoFrameRate": "24p",
"audioProfile": "lc",
"videoProfile": "main 10",
"Part": [
{
"id": 26610,
"key": "/library/parts/26610/1589234571/file.mkv",
"duration": 6612628,
"file": "/movies/Mission Impossible (1996)/Mission Impossible (1996) Bluray-1080p.mkv",
"size": 3926903851,
"audioProfile": "lc",
"container": "mkv",
"videoProfile": "main 10"
}
]
}
],
"Genre": [
{
"tag": "Action"
}
],
"Director": [
{
"tag": "Brian De Palma"
}
],
"Writer": [
{
"tag": "David Koepp"
}
],
"Country": [
{
"tag": "United States of America"
}
],
"Role": [
{
"tag": "Tom Cruise"
}
]
}
],
"Provider": [
{
"key": "/system/search",
"title": "Local Network",
"type": "mixed"
}
]
}
}