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={plex_token}

Parameters

NameDescription
ip_addressThe IP address of the Plex Media server.
plex_tokenThe 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={plex_token}
import requests
plex_url = http://{ip_address}:32400/diagnostics/databases/?X-Plex-Token={plex_token}
response = requests.get(plex_url)
print(response.text)
$response = Invoke-RestMethod 'http://{ip_address}:32400/diagnostics/databases/?X-Plex-Token={plex_token}' -Method 'GET'
Write-Output $response
Subscribe
Display