Download the Databases

Plex Media Server stores most information it maintains in SQLite databases on the server. Sometimes, it may be helpful to download the databases to a local machine. The Plex API provides this URL command to download the Plex databases in a zip file.

URL

GET http://[IP address]:32400/diagnostics/databases/?X-Plex-Token=[PlexToken]

Parameters

NameDescription
IP addressThe IP address of the Plex Media server.
PlexTokenThe temporary authentication Plex token.

Return Status

HTTP CodeDescription
200Success - The request was successful.
401Unauthorized - The Plex token provided was not valid.

Response

When run from a Web browser, this command will download the Plex databases in a zip file to the local system. The size of the download depends on how many items have been added to Plex.

Examples

curl -X GET http://[IP address]:32400/diagnostics/databases/?X-Plex-Token=[PlexToken]
import requests
plex_url = http://[IP address]:32400/diagnostics/databases/?X-Plex-Token=[PlexToken]
response = requests.get(plex_url)
print(response.text)
$response = Invoke-RestMethod 'http://[IP address]:32400/diagnostics/databases/?X-Plex-Token=[PlexToken]' -Method 'GET'
Write-Output $response
Subscribe
Display