Jellyfin Forum
API endpoint to scan a single library - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: API endpoint to scan a single library (/t-api-endpoint-to-scan-a-single-library)



API endpoint to scan a single library - alextruppel - 2025-02-12

Hi everyone! I know this can be used to trigger a scan of all libraries in Jellyfin:

Code:
http://jellyfin-ip-etc.../library/refresh?api_key=my-api-key

But is there a way to trigger a refresh of just a single library? This is because I have multiple libraries, some smaller libraries have new files being constantly added, whereas some large libraries almost never change and also take easily 1 hour or more to scan, not to mention that they pull 80MB/s from my NAS during the entire time of the scan. Ideally, I'd be able to trigger a re-scan of only some libraries when they change.

Thank you!


RE: API endpoint to scan a single library - TheDreadPirate - 2025-02-12

When I go to Dashboard > Libraries, and scan for updates on an individual library I see this in the browser developer console.

Code:
https://jellyfin-testing.domain.tld/Items/f137a2dd21bbc1b99aa5c0f6bf02a805/Refresh?Recursive=true&ImageRefreshMode=Default&MetadataRefreshMode=Default&ReplaceAllImages=false&RegenerateTrickplay=false&ReplaceAllMetadata=false

Looks like the library has an Items ID that you need to use?