# Dev/API Corner

**URL:** https://forums.plex.tv/c/dev-community/dev-api-corner/61.md?page=2

[Latest](https://forums.plex.tv/latest.md) · [Categories](https://forums.plex.tv/categories.md) · [Tags](https://forums.plex.tv/tags.md)

**Page:** 3

---

## [How does Plex update the data for an Authorized Devices?](https://forums.plex.tv/t/how-does-plex-update-the-data-for-an-authorized-devices/934531)

<div class="topic-metadata">

**Author:** [@clambin](https://forums.plex.tv/u/clambin)\
**Replies:** 0\
**Last updated:** [December 15, 2025, 1:38pm UTC](https://forums.plex.tv/t/how-does-plex-update-the-data-for-an-authorized-devices/934531 "2025-12-15T13:38:42Z")

</div>

I originally registered my device with X-Plex-Version set to v0.0.2. It shows up correctly in the “Authorized Devices” page in the Settings. How I want to update it to the next version of my device. I tried setting X-…

---

## [JWT Authentication](https://forums.plex.tv/t/jwt-authentication/931646)

<div class="topic-metadata">

**Author:** [@SwiftPanda16](https://forums.plex.tv/u/SwiftPanda16)\
**Replies:** 29\
**Last updated:** [December 11, 2025, 10:49am UTC](https://forums.plex.tv/t/jwt-authentication/931646 "2025-12-11T10:49:44Z")

</div>

I would like some clarification for JWT Authentication in the Plex API documentation. https://developer.plex.tv/pms/#section/API-Info/Authenticating-with-Plex The documentation says there are two authentication methods…

---

## [Finding media duration in Plex database](https://forums.plex.tv/t/finding-media-duration-in-plex-database/934413)

<div class="topic-metadata">

**Author:** [@MatthewRoche](https://forums.plex.tv/u/MatthewRoche)\
**Replies:** 2\
**Last updated:** [December 10, 2025, 3:50pm UTC](https://forums.plex.tv/t/finding-media-duration-in-plex-database/934413 "2025-12-10T15:50:13Z")

</div>

I’m using the Plex Sqlite database to report on my music listening history, and I’m looking for ways to include the media duration in my reporting. Today I’m getting listens from metadata\_item\_views, and track informati…

---

## [Running Sonic/Loudness Analysis on ephemeral cloud instance - API or CLI approach?](https://forums.plex.tv/t/running-sonic-loudness-analysis-on-ephemeral-cloud-instance-api-or-cli-approach/934187)

<div class="topic-metadata">

**Author:** [@jbo44112](https://forums.plex.tv/u/jbo44112)\
**Replies:** 0\
**Last updated:** [December 3, 2025, 10:28pm UTC](https://forums.plex.tv/t/running-sonic-loudness-analysis-on-ephemeral-cloud-instance-api-or-cli-approach/934187 "2025-12-03T22:28:16Z")

</div>

Hello, I’m spinning up temporary Plex servers in the cloud to scan my 9TB library, then exporting the database back to my low-power zimaboard which is too slow for initial library scanning (especially Sonic analysis on …

---

## [Unable to proceed with JWT testing](https://forums.plex.tv/t/unable-to-proceed-with-jwt-testing/934064)

<div class="topic-metadata">

**Author:** [@Alteredtech](https://forums.plex.tv/u/Alteredtech)\
**Replies:** 2\
**Last updated:** [December 2, 2025, 11:24pm UTC](https://forums.plex.tv/t/unable-to-proceed-with-jwt-testing/934064 "2025-12-02T23:24:47Z")

</div>

I am attempting to make an sdk in swift and it has been going fine with the testing of the authentication flow until recently. I have started getting a blocker. The demo app takes me to the login page. PlexSDK Demo wo…

---

## [Adding trailers via Plex API - no way for me & suspected permanent bug](https://forums.plex.tv/t/adding-trailers-via-plex-api-no-way-for-me-suspected-permanent-bug/934041)

<div class="topic-metadata">

**Author:** [@rossinior](https://forums.plex.tv/u/rossinior)\
**Replies:** 0\
**Last updated:** [November 30, 2025, 7:06pm UTC](https://forums.plex.tv/t/adding-trailers-via-plex-api-no-way-for-me-suspected-permanent-bug/934041 "2025-11-30T19:06:17Z")

</div>

Hi all, I am currently checking out on Plex API and trying to maximize gains from using the API. This time: Adding an extra (trailer) to a movie that already has a trailer (chosen by Plex). According to documentation …

---

## [\[Christmas Wish List\] - rename non-local movie trailers/extras via API](https://forums.plex.tv/t/christmas-wish-list-rename-non-local-movie-trailers-extras-via-api/933971)

<div class="topic-metadata">

**Author:** [@rossinior](https://forums.plex.tv/u/rossinior)\
**Replies:** 0\
**Last updated:** [November 28, 2025, 9:22am UTC](https://forums.plex.tv/t/christmas-wish-list-rename-non-local-movie-trailers-extras-via-api/933971 "2025-11-28T09:22:07Z")

</div>

Hey guys, I am sure that a regular feature suggestion would not generate many Likes, but I have a long-standing problem which I want to solve for myself (and others, potentially). Maybe a dev or two could be so nice to …

---

## [Plex API, home users and disabled authentication for LAN in server settings](https://forums.plex.tv/t/plex-api-home-users-and-disabled-authentication-for-lan-in-server-settings/932451)

<div class="topic-metadata">

**Author:** [@Tolriq](https://forums.plex.tv/u/Tolriq)\
**Replies:** 10\
**Last updated:** [November 19, 2025, 4:27pm UTC](https://forums.plex.tv/t/plex-api-home-users-and-disabled-authentication-for-lan-in-server-settings/932451 "2025-11-19T16:27:03Z")

</div>

How can an app easily detect that an home user token is expired when access from LAN is allowed without auth ? From my tests and users reports, when the token expires, the server switch to using the admin account withou…

---

## [Web player / windows player 'skip intro' button code?](https://forums.plex.tv/t/web-player-windows-player-skip-intro-button-code/876469)

<div class="topic-metadata">

**Author:** [@john\_kenny](https://forums.plex.tv/u/john_kenny)\
**Replies:** 1\
**Last updated:** [November 19, 2025, 8:49am UTC](https://forums.plex.tv/t/web-player-windows-player-skip-intro-button-code/876469 "2025-11-19T08:49:53Z")

</div>

Related to a reply post of mine: Can anyone help me work out where the code for the ‘skip intro’ button might be located? I am wanting to mod an automatically skip intro workaround somehow by triggering the button rat…

---

## [Mark an item as played api call is not visible in the history](https://forums.plex.tv/t/mark-an-item-as-played-api-call-is-not-visible-in-the-history/931988)

<div class="topic-metadata">

**Author:** [@jan\_koh](https://forums.plex.tv/u/jan_koh)\
**Replies:** 6\
**Last updated:** [November 16, 2025, 11:00pm UTC](https://forums.plex.tv/t/mark-an-item-as-played-api-call-is-not-visible-in-the-history/931988 "2025-11-16T23:00:01Z")

</div>

Hello, when using the endpoint https://developer.plex.tv/pms/#tag/Timeline/operation/putScrobble to mark a track as played the play is counted correctly and it’s marked as played. But when looking at the play history t…

---

## [Plex Home/Recommended reordering breaks after certain number of moves](https://forums.plex.tv/t/plex-home-recommended-reordering-breaks-after-certain-number-of-moves/930742)

<div class="topic-metadata">

**Author:** [@samohtxotom](https://forums.plex.tv/u/samohtxotom)\
**Replies:** 1\
**Last updated:** [November 15, 2025, 5:43pm UTC](https://forums.plex.tv/t/plex-home-recommended-reordering-breaks-after-certain-number-of-moves/930742 "2025-11-15T17:43:27Z")

</div>

When using the drag and drop reordering mechanism under Libraries in the PMS settings (or making API calls to do the same thing), after a certain number of moves the reordering breaks and it no longer respects your chang…

---

## [Certain Default Artist Images Kill my Plex Server](https://forums.plex.tv/t/certain-default-artist-images-kill-my-plex-server/932898)

<div class="topic-metadata">

**Author:** [@thenextbutton](https://forums.plex.tv/u/thenextbutton)\
**Replies:** 9\
**Last updated:** [November 15, 2025, 3:10pm UTC](https://forums.plex.tv/t/certain-default-artist-images-kill-my-plex-server/932898 "2025-11-15T15:10:39Z")

</div>

Hey everyone! I’ve been working on a fun little side project: a custom PHP script to scrape my films, tv shows and the music library and generate a static website. It’s been great, but I hit a head scratcher. I think I…

---

## [\[API\] bug with removing Plex movie trailers cleared?](https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491)

<div class="topic-metadata">

**Author:** [@rossinior](https://forums.plex.tv/u/rossinior)\
**Replies:** 2\
**Last updated:** [November 14, 2025, 1:10pm UTC](https://forums.plex.tv/t/api-bug-with-removing-plex-movie-trailers-cleared/933491 "2025-11-14T13:10:44Z")

</div>

Hi guys, in July I reported a bug that happens using the Plex PMS API to delete a trailer. Can anybody tell me whether this has been cleared/fixed? I am currently working on a maintainance app for Plex library which …

---

## [Unlocking metadata fields via Plex API](https://forums.plex.tv/t/unlocking-metadata-fields-via-plex-api/933434)

<div class="topic-metadata">

**Author:** [@rossinior](https://forums.plex.tv/u/rossinior)\
**Replies:** 0\
**Last updated:** [November 12, 2025, 10:45am UTC](https://forums.plex.tv/t/unlocking-metadata-fields-via-plex-api/933434 "2025-11-12T10:45:12Z")

</div>

Hi, @OttoKerner had some insightful advice for using API to unlock or lock certain metadata fields, not only in the cited thread, but also in a few more threads. My questions: With the current Plex Media Server API …

---

## [Programmatically removing a poster or a theme?](https://forums.plex.tv/t/programmatically-removing-a-poster-or-a-theme/932953)

<div class="topic-metadata">

**Author:** [@rossinior](https://forums.plex.tv/u/rossinior)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 2:21pm UTC](https://forums.plex.tv/t/programmatically-removing-a-poster-or-a-theme/932953 "2025-10-28T14:21:07Z")

</div>

Hi devs, I have uploaded a number of Plex posters that I want to get rid as posters. I can set posters and upload new ones (so I can fiddle around doing crazy stuff like uploading 1px posters or “no audio.mp3” as a them…

---

## [Android universal linking/watch.plex.tv links](https://forums.plex.tv/t/android-universal-linking-watch-plex-tv-links/932340)

<div class="topic-metadata">

**Author:** [@rasmu485](https://forums.plex.tv/u/rasmu485)\
**Replies:** 1\
**Last updated:** [October 25, 2025, 7:45pm UTC](https://forums.plex.tv/t/android-universal-linking-watch-plex-tv-links/932340 "2025-10-25T19:45:41Z")

</div>

Hey! I’m trying to get linking to specific movies/shows working for the Android TV app. I’ve figured out that there are intent filters set-up to accept some watch.plex.tv links (for example https://watch.plex.tv/movie/z…

---

## [Is there a way to change the "addedAt" metadata item using the API?](https://forums.plex.tv/t/is-there-a-way-to-change-the-addedat-metadata-item-using-the-api/931820)

<div class="topic-metadata">

**Author:** [@hydb7](https://forums.plex.tv/u/hydb7)\
**Replies:** 3\
**Last updated:** [October 8, 2025, 10:54pm UTC](https://forums.plex.tv/t/is-there-a-way-to-change-the-addedat-metadata-item-using-the-api/931820 "2025-10-08T22:54:42Z")

</div>

ive successfully used the api to update metadata like title and genre for music. is there a way to change the addedAt item? seems to be locked as i get a successful response to my request

---

## [API Library refresh clarification](https://forums.plex.tv/t/api-library-refresh-clarification/932118)

<div class="topic-metadata">

**Author:** [@Soleous](https://forums.plex.tv/u/Soleous)\
**Replies:** 3\
**Last updated:** [October 5, 2025, 10:15pm UTC](https://forums.plex.tv/t/api-library-refresh-clarification/932118 "2025-10-05T22:15:49Z")

</div>

Hello, I’ve always done library scans (refresh) with get requests and according to the new API documentation it is a post. Get still works but there appears to be some errors or inconsistencies within the documentation …

---

## [How to Add or Customize Secondary Agents (e.g., for Lyrics) in the New Plex Music Agent?](https://forums.plex.tv/t/how-to-add-or-customize-secondary-agents-e-g-for-lyrics-in-the-new-plex-music-agent/924730)

<div class="topic-metadata">

**Author:** [@firstep](https://forums.plex.tv/u/firstep)\
**Replies:** 6\
**Last updated:** [August 18, 2025, 3:50pm UTC](https://forums.plex.tv/t/how-to-add-or-customize-secondary-agents-e-g-for-lyrics-in-the-new-plex-music-agent/924730 "2025-08-18T15:50:59Z")

</div>

Hello Plex Community, I’ve noticed significant changes in how Plex handles music library agents recently. With the older music agents (like Last.fm or Freebase), we could easily configure Secondary Agents for albums or …

---

## [Is there an HTTP endpoint for changing the star rating of a track?](https://forums.plex.tv/t/is-there-an-http-endpoint-for-changing-the-star-rating-of-a-track/926207)

<div class="topic-metadata">

**Author:** [@david73304](https://forums.plex.tv/u/david73304)\
**Replies:** 11\
**Last updated:** [July 25, 2025, 7:52pm UTC](https://forums.plex.tv/t/is-there-an-http-endpoint-for-changing-the-star-rating-of-a-track/926207 "2025-07-25T19:52:14Z")

</div>

I can retrieve the star rating in the userRating attribute at GET /library/metadata/\<ratingKey\> Just wondering if there is a way to set the rating to a different value. Seems like there must be (PlexAmp does it) but I h…

---

## [Ratings bug for multi-disc albums](https://forums.plex.tv/t/ratings-bug-for-multi-disc-albums/926750)

<div class="topic-metadata">

**Author:** [@david73304](https://forums.plex.tv/u/david73304)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 10:36am UTC](https://forums.plex.tv/t/ratings-bug-for-multi-disc-albums/926750 "2025-07-23T10:36:44Z")

</div>

Hi, I believe I have discovered a bug in Plex Media Server. When setting the rating for any track in a multi-disc album, the rating is incorrectly set for every track that has the same track number, across all discs. P…

---

## [Remote Control API Removed?](https://forums.plex.tv/t/remote-control-api-removed/919707)

<div class="topic-metadata">

**Author:** [@ThioJoe](https://forums.plex.tv/u/ThioJoe)\
**Replies:** 5\
**Last updated:** [June 5, 2025, 10:39pm UTC](https://forums.plex.tv/t/remote-control-api-removed/919707 "2025-06-05T22:39:02Z")

</div>

In the iOS app there seems to be no more “Advertise as Player” option for the Remote Control API (not related to “remote playback”). And any previous commands to control a device’s player like play/pause/change track no …

---

## [Struggling with potential bug - Plex API not actually updating playlists/track ratings etc](https://forums.plex.tv/t/struggling-with-potential-bug-plex-api-not-actually-updating-playlists-track-ratings-etc/913816)

<div class="topic-metadata">

**Author:** [@ollie8](https://forums.plex.tv/u/ollie8)\
**Replies:** 0\
**Last updated:** [April 18, 2025, 7:26pm UTC](https://forums.plex.tv/t/struggling-with-potential-bug-plex-api-not-actually-updating-playlists-track-ratings-etc/913816 "2025-04-18T19:26:04Z")

</div>

I’m currently developing a personal tool (with multiple AI platforms) to migrate the meta data e.g. playlists/track ratings/play counts from external music library databases to Plex/Amp. The tool is designed but falsely …

---

## [Hash of media\_parts and metadata\_item](https://forums.plex.tv/t/hash-of-media-parts-and-metadata-item/902591)

<div class="topic-metadata">

**Author:** [@berthozero](https://forums.plex.tv/u/berthozero)\
**Replies:** 8\
**Last updated:** [February 13, 2025, 1:45pm UTC](https://forums.plex.tv/t/hash-of-media-parts-and-metadata-item/902591 "2025-02-13T13:45:48Z")

</div>

Hello, Does anyone know how to calculate the hash and open\_subtitle\_hash of media\_parts? and also the metadata\_items hash?

---

## [Metadata.provider.plex.tv vs local server TV Season GUIDs](https://forums.plex.tv/t/metadata-provider-plex-tv-vs-local-server-tv-season-guids/903199)

<div class="topic-metadata">

**Author:** [@ben\_russ3](https://forums.plex.tv/u/ben_russ3)\
**Replies:** 1\
**Last updated:** [January 23, 2025, 1:52am UTC](https://forums.plex.tv/t/metadata-provider-plex-tv-vs-local-server-tv-season-guids/903199 "2025-01-23T01:52:51Z")

</div>

I’ve been looking at the guids provided when querying my local server vs the metadata.provider.plex.tv server, and have encountered a discrepancy for TV show seasons. The shows seasons have different guid’s depending on …

---

## [\[REL\] Extended Personal Media Shows Agent](https://forums.plex.tv/t/rel-extended-personal-media-shows-agent/44831)

<div class="topic-metadata">

**Author:** [@mjarends](https://forums.plex.tv/u/mjarends)\
**Replies:** 482\
**Last updated:** [November 11, 2024, 7:41am UTC](https://forums.plex.tv/t/rel-extended-personal-media-shows-agent/44831 "2024-11-11T07:41:49Z")

</div>

Before installing this metadata agent you need to install the matching scanner. See the documentation here for more details on the scanner and how to install it. https://bitbucket.org/mjarends/plex-scanners After yo…

---

## [Is there way to get externalGuids from https://community.plex.tv/api](https://forums.plex.tv/t/is-there-way-to-get-externalguids-from-https-community-plex-tv-api/894164)

<div class="topic-metadata">

**Author:** [@scottrobertson](https://forums.plex.tv/u/scottrobertson)\
**Replies:** 0\
**Last updated:** [November 1, 2024, 5:09pm UTC](https://forums.plex.tv/t/is-there-way-to-get-externalguids-from-https-community-plex-tv-api/894164 "2024-11-01T17:09:16Z")

</div>

I am trying to work out a way to sync Plex watch history to Trakt. To do this, i found an API at: https://community.plex.tv/api I can then use GetWatchHistoryHub in there. I can fetch data such as: fragment parentField…

---

## [Security alert when authenticating with Plex](https://forums.plex.tv/t/security-alert-when-authenticating-with-plex/887330)

<div class="topic-metadata">

**Author:** [@FranknSara](https://forums.plex.tv/u/FranknSara)\
**Replies:** 2\
**Last updated:** [September 4, 2024, 6:40pm UTC](https://forums.plex.tv/t/security-alert-when-authenticating-with-plex/887330 "2024-09-04T18:40:21Z")

</div>

I’m building an app that pulls in movies from a user’s Plex library so they can start voting sessions with their friends to decide what movie to watch. My authentication is working except, but users are getting a securit…

---

## [\[BUG\] Update Season Title and Season Summary/Resume](https://forums.plex.tv/t/bug-update-season-title-and-season-summary-resume/884132)

<div class="topic-metadata">

**Author:** [@Nackophilz](https://forums.plex.tv/u/Nackophilz)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 3:40pm UTC](https://forums.plex.tv/t/bug-update-season-title-and-season-summary-resume/884132 "2024-08-14T15:40:30Z")

</div>

Hello, I’m developing an agent for my Plex, I can update almost everything I want (theme, images, episode names, episode summaries etc.) But it’s IMPOSSIBLE to update the season titles via the plugin, nor the summaries.…

---

## [Is there any API/method to script music album merges?](https://forums.plex.tv/t/is-there-any-api-method-to-script-music-album-merges/882739)

<div class="topic-metadata">

**Author:** [@danthi123](https://forums.plex.tv/u/danthi123)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 3:41pm UTC](https://forums.plex.tv/t/is-there-any-api-method-to-script-music-album-merges/882739 "2024-07-17T15:41:48Z")

</div>

I have an issue that many others have complained about: Many of my music albums are split, meaning an album with x songs shows as the same album twice, with those songs split between them some way. Before it’s mentione…

[Previous page](https://forums.plex.tv/c/dev-community/dev-api-corner/61.md?page=1)

[Next page](https://forums.plex.tv/c/dev-community/dev-api-corner/61.md?page=3)
