Forked from SLiX69/Sonarr-API-Python-Wrapper
Unofficial Python Wrapper for the Sonarr and Radarr API. We currently only support Sonarr and have not tested for Radarr.
- requests
# Import SonarrAPI Class
from arr import SonarrAPI
# Set Host URL and API-Key
host_url = 'http://your-domain.com/api'
# You can find your API key in Settings > General.
api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# Instantiate SonarrAPI Object
sonarr = SonarrAPI(host_url, api_key)
# Get and print TV Shows
print sonarr.get_series()