API Reference
General structure
The API endpoint is
http://IP_ADDRESS:PORT + [/HTTP_ROOT] + /api/v2?apikey=$apikey&cmd=$commandExample:
http://localhost:8181/api/v2?apikey=66198313a092496b8a725867d2223b5f&cmd=get_metadata&rating_key=153037Response example (default json)
{
"response": {
"data": [
{
"loglevel": "INFO",
"msg": "Signal 2 caught, saving and exiting...",
"thread": "MainThread",
"time": "22-sep-2015 01:42:56 "
}
],
"message": null,
"result": "success"
}
}API methods
add_newsletter_config
Add a new notification agent.
add_notifier_config
Add a new notification agent.
arnold
Get to the chopper!
backup_config
Create a manual backup of the config.ini file.
backup_db
Create a manual backup of the plexpy.db file.
delete_all_library_history
Delete all Tautulli history for a specific library.
delete_all_user_history
Delete all Tautulli history for a specific user.
delete_cache
Delete and recreate the cache directory.
delete_export
Delete exports from Tautulli.
delete_history
Delete history rows from Tautulli.
delete_hosted_images
Delete the images uploaded to image hosting services.
delete_image_cache
Delete and recreate the image cache directory.
delete_library
Delete a library section from Tautulli. Also erases all history for the library.
delete_login_log
Delete the Tautulli login logs.
delete_lookup_info
Delete the 3rd party API lookup info.
delete_media_info_cache
Delete the media info table cache for a specific library.
delete_mobile_device
Remove a mobile device from the database.
delete_newsletter
Remove a newsletter from the database.
delete_newsletter_log
Delete the Tautulli newsletter logs.
delete_notification_log
Delete the Tautulli notification logs.
delete_notifier
Remove a notifier from the database.
delete_recently_added
Flush out all of the recently added items in the database.
delete_synced_item
Delete a synced item from a device.
delete_temp_sessions
Flush out all of the temporary sessions in the database.
delete_user
Delete a user from Tautulli. Also erases all history for the user.
docs
Return the api docs as a dict where commands are keys, docstring are value.
docs_md
Return the api docs formatted with markdown.
download_config
Download the Tautulli configuration file.
download_database
Download the Tautulli database file.
download_export
Download an exported metadata file
download_log
Download the Tautulli log file.
download_plex_log
Download the Plex log file.
edit_library
Update a library section on Tautulli.
edit_user
Update a user on Tautulli.
export_metadata
Export library or media metadata to a file
get_activity
Get the current activity on the PMS.
get_apikey
Get the apikey. Username and password are required if auth is enabled. Makes and saves the apikey if it does not exist.
get_children_metadata
Get the metadata for the children of a media item.
get_collections_table
Get the data on the Tautulli collections tables.
get_date_formats
Get the date and time formats used by Tautulli.
get_export_fields
Get a list of available custom export fields.
get_exports_table
Get the data on the Tautulli export tables.
get_geoip_lookup
Get the geolocation info for an IP address.
get_history
Get the Tautulli history.
get_home_stats
Get the homepage watch statistics.
get_libraries
Get a list of all libraries on your server.
get_libraries_table
Get the data on the Tautulli libraries table.
get_library
Get a library's details.
get_library_media_info
Get the data on the Tautulli media info tables.
get_library_names
Get a list of library sections and ids on the PMS.
get_library_user_stats
Get a library's user statistics.
get_library_watch_time_stats
Get a library's watch time statistics.
get_logs
Get the Tautulli logs.
get_metadata
Get the metadata for a media item.
get_new_rating_keys
Get a list of new rating keys for the PMS of all of the item's parent/children.
get_newsletter_config
Get the configuration for an existing notification agent.
get_newsletter_log
Get the data on the Tautulli newsletter logs table.
get_newsletters
Get a list of configured newsletters.
get_notification_log
Get the data on the Tautulli notification logs table.
get_notifier_config
Get the configuration for an existing notification agent.
get_notifier_parameters
Get the list of available notification parameters.
get_notifiers
Get a list of configured notifiers.
get_old_rating_keys
Get a list of old rating keys from the Tautulli database for all of the item's parent/children.
get_playlists_table
Get the data on the Tautulli playlists tables.
get_plays_by_date
Get graph data by date.
get_plays_by_dayofweek
Get graph data by day of the week.
get_plays_by_hourofday
Get graph data by hour of the day.
get_plays_by_source_resolution
Get graph data by source resolution.
get_plays_by_stream_resolution
Get graph data by stream resolution.
get_plays_by_stream_type
Get graph data by stream type by date.
get_plays_by_top_10_platforms
Get graph data by top 10 platforms.
get_plays_by_top_10_users
Get graph data by top 10 users.
get_plays_per_month
Get graph data by month.
get_plex_log
Get the PMS logs.
get_pms_update
Check for updates to the Plex Media Server.
get_recently_added
Get all items that where recently added to plex.
get_server_friendly_name
Get the name of the PMS.
get_server_id
Get the PMS server identifier.
get_server_identity
Get info about the local server.
get_server_info
Get the PMS server information.
get_server_list
Get all your servers that are published to Plex.tv.
get_server_pref
Get a specified PMS server preference.
get_servers_info
Get info about the PMS.
get_settings
Gets all settings from the config file.
get_stream_data
Get the stream details from history or current stream.
get_stream_type_by_top_10_platforms
Get graph data by stream type by top 10 platforms.
get_stream_type_by_top_10_users
Get graph data by stream type by top 10 users.
get_synced_items
Get a list of synced items on the PMS.
get_user
Get a user's details.
get_user_ips
Get the data on Tautulli users IP table.
get_user_logins
Get the data on Tautulli user login table.
get_user_names
Get a list of all user and user ids.
get_user_player_stats
Get a user's player statistics.
get_user_watch_time_stats
Get a user's watch time statistics.
get_users
Get a list of all users that have access to your server.
get_users_table
Get the data on Tautulli users table.
get_whois_lookup
Get the connection info for an IP address.
import_config
Import a Tautulli config file.
import_database
Import a Tautulli, PlexWatch, or Plexivity database into Tautulli.
logout_user_session
Logout Tautulli user sessions.
notify
Send a notification using Tautulli.
notify_newsletter
Send a newsletter using Tautulli.
notify_recently_added
Send a recently added notification using Tautulli.
pms_image_proxy
Gets an image from the PMS and saves it to the image cache directory.
refresh_libraries_list
Refresh the Tautulli libraries list.
refresh_users_list
Refresh the Tautulli users list.
register_device
Registers the Tautulli Android App for notifications.
restart
Restart Tautulli.
search
Get search results from the PMS.
server_status
Get the current status of Tautulli's connection to the Plex server.
set_mobile_device_config
Configure an existing notification agent.
set_newsletter_config
Configure an existing newsletter agent.
set_notifier_config
Configure an existing notification agent.
sql
Query the Tautulli database with raw SQL. Automatically makes a backup of the database if the latest backup is older then 24h. api_sql must be manually enabled in the config file while Tautulli is shut down.
status
Get the current status of Tautulli.
terminate_session
Stop a streaming session.
undelete_library
Restore a deleted library section to Tautulli.
undelete_user
Restore a deleted user to Tautulli.
update
Update Tautulli.
update_check
Check for Tautulli updates.
update_metadata_details
Update the metadata in the Tautulli database by matching rating keys. Also updates all parents or children of the media item if it is a show/season/episode or artist/album/track.
Last updated
Was this helpful?