Skip to content

Configuration API

The Configuration API allows you to test connections and retrieve metadata for configuring filters.

Test connection to Radarr instance.

Endpoint: GET /v1/radarr/validate

Query Parameters:

  • test (optional) - Set to true to test custom credentials
  • url (required if test=true) - Radarr URL
  • api_key (required if test=true) - Radarr API key

Example Requests:

Terminal window
# Test configured Radarr
curl "http://localhost:9090/v1/radarr/validate"
# Test custom credentials
curl "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"
}

Retrieve available quality profiles from Radarr.

Endpoint: GET /v1/radarr/quality-profiles

Example Request:

Terminal window
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
}

Retrieve available root folders from Radarr.

Endpoint: GET /v1/radarr/root-folders

Example Request:

Terminal window
curl "http://localhost:9090/v1/radarr/root-folders"

Example Response:

{
"data": [
{
"id": 1,
"path": "/movies",
"freeSpace": 5368709120,
"totalSpace": 10737418240,
"accessible": true
}
],
"count": 1
}

Similar endpoints are available for Sonarr:

  • GET /v1/sonarr/validate
  • GET /v1/sonarr/quality-profiles
  • GET /v1/sonarr/root-folders

Usage is identical to Radarr endpoints.

Retrieve metadata for configuring filters.

Endpoint: GET /v1/trakt/genres/movies

Example Response:

{
"data": [
{"slug": "action", "name": "Action"},
{"slug": "adventure", "name": "Adventure"},
{"slug": "animation", "name": "Animation"}
]
}

Endpoint: GET /v1/trakt/genres/shows

Endpoints:

  • GET /v1/trakt/countries/movies
  • GET /v1/trakt/countries/shows

Example Response:

{
"data": [
{"code": "us", "name": "United States"},
{"code": "gb", "name": "United Kingdom"}
]
}

Endpoints:

  • GET /v1/trakt/languages/movies
  • GET /v1/trakt/languages/shows

Endpoint: GET /v1/trakt/networks

Example Response:

{
"data": [
{"slug": "hbo", "name": "HBO"},
{"slug": "netflix", "name": "Netflix"}
]
}

Fetch content directly from Trakt.

Endpoints:

  • GET /v1/trakt/trending/movies?limit=10
  • GET /v1/trakt/trending/shows?limit=10

Query Parameters:

  • limit (optional) - Number of items (default: 10)

Endpoints:

  • GET /v1/trakt/popular/movies?limit=10
  • GET /v1/trakt/popular/shows?limit=10

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"
}