Configuration API
The Configuration API allows you to test connections and retrieve metadata for configuring filters.
Validate Radarr Connection
Section titled “Validate Radarr Connection”Test connection to Radarr instance.
Endpoint: GET /v1/radarr/validate
Query Parameters:
test(optional) - Set totrueto test custom credentialsurl(required if test=true) - Radarr URLapi_key(required if test=true) - Radarr API key
Example Requests:
# Test configured Radarrcurl "http://localhost:9090/v1/radarr/validate"
# Test custom credentialscurl "http://localhost:9090/v1/radarr/validate?test=true&url=http://radarr:7878&api_key=YOUR_KEY"Example Response:
{ "valid": true, "message": "Connection successful", "version": "4.7.5"}Get Radarr Quality Profiles
Section titled “Get Radarr Quality Profiles”Retrieve available quality profiles from Radarr.
Endpoint: GET /v1/radarr/quality-profiles
Example Request:
curl "http://localhost:9090/v1/radarr/quality-profiles"Example Response:
{ "data": [ {"id": 1, "name": "Any"}, {"id": 4, "name": "HD-1080p"}, {"id": 6, "name": "Ultra-HD"} ], "count": 3}Get Radarr Root Folders
Section titled “Get Radarr Root Folders”Retrieve available root folders from Radarr.
Endpoint: GET /v1/radarr/root-folders
Example Request:
curl "http://localhost:9090/v1/radarr/root-folders"Example Response:
{ "data": [ { "id": 1, "path": "/movies", "freeSpace": 5368709120, "totalSpace": 10737418240, "accessible": true } ], "count": 1}Sonarr Endpoints
Section titled “Sonarr Endpoints”Similar endpoints are available for Sonarr:
GET /v1/sonarr/validateGET /v1/sonarr/quality-profilesGET /v1/sonarr/root-folders
Usage is identical to Radarr endpoints.
Get Trakt Metadata
Section titled “Get Trakt Metadata”Retrieve metadata for configuring filters.
Get Movie Genres
Section titled “Get Movie Genres”Endpoint: GET /v1/trakt/genres/movies
Example Response:
{ "data": [ {"slug": "action", "name": "Action"}, {"slug": "adventure", "name": "Adventure"}, {"slug": "animation", "name": "Animation"} ]}Get TV Show Genres
Section titled “Get TV Show Genres”Endpoint: GET /v1/trakt/genres/shows
Get Countries
Section titled “Get Countries”Endpoints:
GET /v1/trakt/countries/moviesGET /v1/trakt/countries/shows
Example Response:
{ "data": [ {"code": "us", "name": "United States"}, {"code": "gb", "name": "United Kingdom"} ]}Get Languages
Section titled “Get Languages”Endpoints:
GET /v1/trakt/languages/moviesGET /v1/trakt/languages/shows
Get Networks
Section titled “Get Networks”Endpoint: GET /v1/trakt/networks
Example Response:
{ "data": [ {"slug": "hbo", "name": "HBO"}, {"slug": "netflix", "name": "Netflix"} ]}Get Trakt Content
Section titled “Get Trakt Content”Fetch content directly from Trakt.
Trending Content
Section titled “Trending Content”Endpoints:
GET /v1/trakt/trending/movies?limit=10GET /v1/trakt/trending/shows?limit=10
Query Parameters:
limit(optional) - Number of items (default: 10)
Popular Content
Section titled “Popular Content”Endpoints:
GET /v1/trakt/popular/movies?limit=10GET /v1/trakt/popular/shows?limit=10
Error Responses
Section titled “Error Responses”Connection Failed (500):
{ "error": "Failed to connect to Radarr: connection refused"}Invalid API Key (401):
{ "error": "Invalid API key"}Not Configured (400):
{ "error": "Radarr is not configured"}Next Steps
Section titled “Next Steps”- Explore Jobs API
- Check Activity API
- Learn about Configuration