--- id: get-recently-added sidebar_label: Get Recently Added hide_title: true hide_table_of_contents: true api: {"tags":["Library"],"description":"This endpoint will return the recently added content.\n","operationId":"getRecentlyAdded","responses":{"200":{"description":"The recently added content","content":{"application/json":{"schema":{"type":"object","properties":{"MediaContainer":{"type":"object","properties":{"size":{"type":"number","example":50},"allowSync":{"type":"boolean"},"identifier":{"type":"string","example":"com.plexapp.plugins.library"},"mediaTagPrefix":{"type":"string","example":"/system/bundle/media/flags/"},"mediaTagVersion":{"type":"number","example":1680021154},"mixedParents":{"type":"boolean"},"Metadata":{"type":"array","items":{"type":"object","properties":{"allowSync":{"type":"boolean"},"librarySectionID":{"type":"number","example":1},"librarySectionTitle":{"type":"string","example":"Movies"},"librarySectionUUID":{"type":"string","example":"322a231a-b7f7-49f5-920f-14c61199cd30"},"ratingKey":{"type":"string","example":59398},"key":{"type":"string","example":"/library/metadata/59398"},"guid":{"type":"string","example":"plex://movie/5e161a83bea6ac004126e148"},"studio":{"type":"string","example":"Marvel Studios"},"type":{"type":"string","example":"movie"},"title":{"type":"string","example":"Ant-Man and the Wasp: Quantumania"},"contentRating":{"type":"string","example":"PG-13"},"summary":{"type":"string","example":"Scott Lang and Hope Van Dyne along with Hank Pym and Janet Van Dyne explore the Quantum Realm where they interact with strange creatures and embark on an adventure that goes beyond the limits of what they thought was possible."},"rating":{"type":"number","example":4.7},"audienceRating":{"type":"number","example":8.3},"year":{"type":"number","example":2023},"tagline":{"type":"string","example":"Witness the beginning of a new dynasty."},"thumb":{"type":"string","example":"/library/metadata/59398/thumb/1681888010"},"art":{"type":"string","example":"/library/metadata/59398/art/1681888010"},"duration":{"type":"number","example":7474422},"originallyAvailableAt":{"type":"string","format":"date","example":"2023-02-15T00:00:00.000Z"},"addedAt":{"type":"number","example":1681803215},"updatedAt":{"type":"number","example":1681888010},"audienceRatingImage":{"type":"string","example":"rottentomatoes://image.rating.upright"},"chapterSource":{"type":"string","example":"media"},"primaryExtraKey":{"type":"string","example":"/library/metadata/59399"},"ratingImage":{"type":"string","example":"rottentomatoes://image.rating.rotten"},"Media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":120345},"duration":{"type":"number","example":7474422},"bitrate":{"type":"number","example":3623},"width":{"type":"number","example":1920},"height":{"type":"number","example":804},"aspectRatio":{"type":"number","example":2.35},"audioChannels":{"type":"number","example":6},"audioCodec":{"type":"string","example":"ac3"},"videoCodec":{"type":"string","example":"h264"},"videoResolution":{"type":"string","example":1080},"container":{"type":"string","example":"mp4"},"videoFrameRate":{"type":"string","example":"24p"},"optimizedForStreaming":{"type":"number","example":0},"has64bitOffsets":{"type":"boolean"},"videoProfile":{"type":"string","example":"high"},"Part":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","example":120353},"key":{"type":"string","example":"/library/parts/120353/1681803203/file.mp4"},"duration":{"type":"number","example":7474422},"file":{"type":"string","example":"/movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man.and.the.Wasp.Quantumania.2023.1080p.mp4"},"size":{"type":"number","example":3395307162},"container":{"type":"string","example":"mp4"},"has64bitOffsets":{"type":"boolean"},"hasThumbnail":{"type":"string","example":1},"optimizedForStreaming":{"type":"boolean"},"videoProfile":{"type":"string","example":"high"}}}}}}},"Genre":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","example":"Comedy"}}}},"Director":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","example":"Peyton Reed"}}}},"Writer":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","example":"Jeff Loveness"}}}},"Country":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","example":"United States of America"}}}},"Role":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string","example":"Paul Rudd"}}}}}}}}}}}}}},"401":{"description":"Unauthorized - Returned if the X-Plex-Token is missing from the header or query.","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1001},"message":{"type":"string","example":"User could not be authenticated"},"status":{"type":"number","example":401}}}}}}}}}},"method":"get","path":"/library/recentlyAdded","servers":[{"url":"http://{Local IP}:{Port}","variables":{"Local IP":{"default":"10.10.10.47","description":"The Local IP Address of your plex server"},"Port":{"default":"32400","description":"The port to access your plex server"}}},{"url":"https://{Local IP}:{Port}","variables":{"Local IP":{"default":"10.10.10.47","description":"The Local IP Address of your plex server"},"Port":{"default":"32400","description":"The port to access your plex server"}}}],"security":[{"Token":[],"ClientIdentifier":[],"Device":[],"DeviceName":[],"Platform":[],"PlatformVersion":[],"Product":[],"Version":[]}],"securitySchemes":{"Token":{"description":"Plex Authentication Token","type":"apiKey","in":"header","name":"X-Plex-Token"},"ClientIdentifier":{"description":"Plex Authentication Token","type":"apiKey","in":"header","name":"X-Plex-Client-Identifier"},"DeviceName":{"description":"Primary name for the device eg. `Plex Web (Chrome)`","type":"apiKey","in":"header","name":"X-Plex-Device-Name"},"Device":{"description":"The type of device your application is running on\nDevice name and or model number, eg `iPhone3,2`, `Motorola XOOMâ„¢`, `LG5200TV`\n","type":"apiKey","in":"header","name":"X-Plex-Device"},"PlatformVersion":{"description":"Operating system version\neg `4.3.1`, `10.6.7`, `3.2`\n","type":"apiKey","in":"header","name":"X-Plex-Platform-Version"},"Platform":{"description":"Platform name \neg: `Web`, `iOS`, `MacOSX`, `Android`, `LG`\n","type":"apiKey","in":"header","name":"X-Plex-Platform"},"Product":{"description":"Plex application name \neg: `Laika`, `Plex Media Server`, `Media Link`\n","type":"apiKey","in":"header","name":"X-Plex-Product"},"Version":{"description":"Plex application version number","type":"apiKey","in":"header","name":"X-Plex-Version"}},"info":{"title":"Plex-API","summary":"A Plex Media Server API Map","description":"An Open API Spec for interacting with Plex.tv and Plex Servers","version":"0.0.3","contact":{"name":"Luke Hagar","url":"https://www.LukeHagar.com","email":"Lukeslakemail@gmail.com"},"license":{"name":"MIT","identifier":"MIT","url":"https://opensource.org/licenses/MIT"}},"postman":{"name":"Get Recently Added","description":{"content":"This endpoint will return the recently added content.\n","type":"text/plain"},"url":{"path":["library","recentlyAdded"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET"}} sidebar_class_name: "get api-method" info_path: docs/plex-media-server/plex-api --- import ApiTabs from "@theme/ApiTabs"; import DiscriminatorTabs from "@theme/DiscriminatorTabs"; import MethodEndpoint from "@theme/ApiDemoPanel/MethodEndpoint"; import MimeTabs from "@theme/MimeTabs"; import ParamsItem from "@theme/ParamsItem"; import ResponseSamples from "@theme/ResponseSamples"; import SchemaItem from "@theme/SchemaItem"; import SchemaTabs from "@theme/SchemaTabs"; import TabItem from "@theme/TabItem";