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
Name | Description |
---|---|
ip_address | The IP address of the Plex Media server. |
plex_token | The Plex token. |
Return Status
HTTP Code | Description |
---|---|
200 | Success - The request was successful. |
401 | Unauthorized - 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