360 Secure SkillHub
360 安全技能中心

Radarr

该 Skill 用 curl 调用本机 Radarr REST API:按片名查找影片、查看质量配置与根目录、添加影片并触发缺失影片搜索,以及查看缺失列表与下载队列;返回的 JSON 由 python3 脚本解析打印,需用户自备 Radarr API 密钥。

minerva-care
minerva-care
热度 41.90
最近更新 2026-05-11 17:39:34
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add minerva-radarr
Metadata
name
radarr
description
Interact with Radarr (movie manager) via its REST API. Use when searching for movies, checking missing/wanted titles, triggering downloads, or monitoring queue status. Part of the *arr media management suite.

Radarr Skill

Radarr is the *arr-suite manager for movies. It monitors a watchlist, finds releases via indexers (Prowlarr), sends them to a download client, and organises them on disk.

Connection

Radarr runs on Dozo at http://localhost:7878.

RADARR_URL="http://localhost:7878"
RADARR_KEY=$(cat /path/to/radarr_api_key)

See references/api.md for all endpoints.

Core Workflows

Search and add a movie

# 1. Look up by title (returns TMDB results)
curl -s "$RADARR_URL/api/v3/movie/lookup?term=The+Matrix" \
  -H "X-Api-Key: $RADARR_KEY" | python3 -c "
import sys,json
results = json.load(sys.stdin)
for m in results[:5]:
    print(m.get('title'), '| tmdbId:', m.get('tmdbId'), '| year:', m.get('year'))
"

# 2. Get quality profiles and root folders
curl -s "$RADARR_URL/api/v3/qualityprofile" -H "X-Api-Key: $RADARR_KEY"
curl -s "$RADARR_URL/api/v3/rootfolder" -H "X-Api-Key: $RADARR_KEY"

# 3. Add the movie
curl -s -X POST "$RADARR_URL/api/v3/movie" \
  -H "X-Api-Key: $RADARR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tmdbId":603,"title":"The Matrix","qualityProfileId":1,"rootFolderPath":"/movies","monitored":true,"addOptions":{"searchForMovie":true}}'

Check wanted/missing movies

curl -s "$RADARR_URL/api/v3/wanted/missing?pageSize=20" \
  -H "X-Api-Key: $RADARR_KEY" | python3 -c "
import sys,json
d = json.load(sys.stdin)
for m in d.get('records',[]):
    print(m.get('title'), '(', m.get('year'), ')')
"

Trigger search for all missing movies

curl -s -X POST "$RADARR_URL/api/v3/command" \
  -H "X-Api-Key: $RADARR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"MissingMoviesSearch"}'

Check download queue

curl -s "$RADARR_URL/api/v3/queue" -H "X-Api-Key: $RADARR_KEY" | python3 -c "
import sys,json
q = json.load(sys.stdin)
for item in q.get('records',[]):
    print(item.get('title'), '|', item.get('status'), '|', item.get('timeleft','?'))
"

Credentials

Store API key at ~/clawd/credentials/radarr_api_key (single line, no newline). Load with: RADARR_KEY=$(cat /path/to/radarr_api_key)