Loading...
Loading...
Use this skill when you need to call MoviePilot REST API endpoints directly. Covers all 237 API endpoints across 27 categories including media search, downloads, subscriptions, library management, site management, system administration, plugins, workflows, and more. Use this skill whenever the user asks to interact with MoviePilot via its HTTP API, or when the moviepilot-cli skill cannot cover a specific operation.
npx skill4agent add jxxghp/moviepilot moviepilot-apiAll script paths are relative to this skill file.
scripts/mp-api.py~/.config/moviepilot_api/configpython scripts/mp-api.py configure --host http://localhost:3000 --apikey <API_TOKEN>API_TOKENpython scripts/mp-api.py <METHOD> <PATH> [key=value ...] [--json '<body>']X-API-KEY2/api/v1/dashboard/statistic2--token-param?token=API_TOKEN# GET with query params
python scripts/mp-api.py GET /api/v1/media/search title="Avatar" type="movie"
# POST with JSON body
python scripts/mp-api.py POST /api/v1/download/add --json '{"torrent_url":"abc1234:1"}'
# DELETE
python scripts/mp-api.py DELETE /api/v1/subscribe/123
# Endpoints that require ?token= auth
python scripts/mp-api.py GET /api/v1/dashboard/statistic2 --token-param{MP_HOST}{param}| Method | Path | Description |
|---|---|---|
| GET | | Search media/person by title. Params: |
| GET | | Recognize media from torrent title. Params: |
| GET | | Recognize media (API_TOKEN auth, use |
| GET | | Recognize media from file path. Params: |
| GET | | Recognize file (API_TOKEN auth). Params: |
| POST | | Scrape media metadata. Body: FileItem JSON |
| GET | | Get category strategy config |
| POST | | Save category strategy config. Body: CategoryConfig |
| GET | | Get auto-categorization config |
| GET | | Get episode group seasons |
| GET | | Get media episode groups |
| GET | | Get media season info. Params: |
| GET | | Get media detail. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | All seasons for a TMDB title |
| GET | | Similar movies/TV shows |
| GET | | Recommended movies/TV shows |
| GET | | Collection details. Params: |
| GET | | Cast and crew. Params: |
| GET | | Person details |
| GET | | Person's filmography. Params: |
| GET | | All episodes of a season. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | Douban media detail |
| GET | | Person detail |
| GET | | Person filmography. Params: |
| GET | | Cast info (type_name: movie/tv) |
| GET | | Recommendations |
| Method | Path | Description |
|---|---|---|
| GET | | Bangumi detail |
| GET | | Cast. Params: |
| GET | | Recommendations. Params: |
| GET | | Person detail |
| GET | | Person filmography. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | Search torrents by media ID (format: |
| GET | | Fuzzy search torrents by keyword. Params: |
| GET | | Get latest search results |
| POST | | AI recommended resources. Body: |
| Method | Path | Description |
|---|---|---|
| GET | | List active downloads. Params: |
| POST | | Add download (with media info). Body: JSON |
| POST | | Add download (without media info). Body: JSON with |
| GET | | Resume download task |
| GET | | Pause download task |
| GET | | List available download clients |
| DELETE | | Delete download task. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | List all subscriptions |
| POST | | Add subscription. Body: Subscribe JSON |
| PUT | | Update subscription. Body: Subscribe JSON |
| GET | | List subscriptions (API_TOKEN auth, use |
| GET | | Subscription detail |
| DELETE | | Delete subscription |
| PUT | | Update subscription status. Params: |
| GET | | Query subscription by media ID. Params: |
| DELETE | | Delete subscription by media ID. Params: |
| GET | | Refresh all subscriptions |
| GET | | Reset subscription |
| GET | | Refresh subscription TMDB info |
| GET | | Search all subscriptions |
| GET | | Search specific subscription |
| POST | | Overseerr/Jellyseerr notification subscription |
| GET | | Subscription history. Params: |
| DELETE | | Delete subscription history |
| GET | | Popular subscriptions. Params: |
| GET | | User's subscriptions |
| GET | | Subscription related files |
| POST | | Share subscription. Body: SubscribeShare JSON |
| DELETE | | Delete shared subscription |
| POST | | Fork shared subscription. Body: SubscribeShare JSON |
| GET | | List followed share users |
| POST | | Follow a share user. Params: |
| DELETE | | Unfollow a share user. Params: |
| GET | | List shared subscriptions. Params: |
| GET | | Share statistics |
| Method | Path | Description |
|---|---|---|
| GET | | List all sites |
| POST | | Add site. Body: Site JSON |
| PUT | | Update site. Body: Site JSON |
| GET | | Site detail by ID |
| DELETE | | Delete site |
| GET | | Site detail by domain |
| GET | | Sync CookieCloud |
| GET | | Reset sites |
| POST | | Batch update site priorities. Body: array |
| GET | | Update site cookie & UA. Params: |
| POST | | Refresh site user data |
| GET | | Get site user data. Params: |
| GET | | All sites latest user data |
| GET | | Test site connection |
| GET | | Site icon |
| GET | | Site categories |
| GET | | Site resources. Params: |
| GET | | Specific site statistics |
| GET | | All site statistics |
| GET | | RSS subscription sites |
| GET | | Check authenticated sites |
| POST | | Authenticate a site. Body: SiteAuth |
| GET | | Site domain-to-name mapping |
| GET | | Supported site list |
| Method | Path | Description |
|---|---|---|
| GET | | Download history. Params: |
| DELETE | | Delete download history. Body: DownloadHistory JSON |
| GET | | Transfer history. Params: |
| DELETE | | Delete transfer history. Params: |
| GET | | Clear all transfer history |
| Method | Path | Description |
|---|---|---|
| GET | | Play media online |
| GET | | Check if media exists in library. Params: |
| POST | | Check existing episodes (remote). Body: MediaInfo JSON |
| POST | | Check missing episodes (remote). Body: MediaInfo JSON |
| GET | | Latest library items. Params: |
| GET | | Currently playing. Params: |
| GET | | Library list. Params: |
| GET | | Available media servers |
| Method | Path | Description |
|---|---|---|
| POST | | List directory contents. Params: |
| POST | | Create directory. Params: |
| POST | | Delete file or directory. Body: FileItem JSON |
| POST | | Download file. Body: FileItem JSON |
| POST | | Preview image. Body: FileItem JSON |
| POST | | Rename file/dir. Params: |
| GET | | Storage usage info |
| GET | | Supported transfer types |
| GET | | Generate QR code for auth |
| GET | | Get OAuth2 auth URL |
| GET | | Confirm QR login. Params: |
| POST | | Save storage config. Body: JSON object |
| GET | | Reset storage config |
| Method | Path | Description |
|---|---|---|
| GET | | Preview transfer name. Params: |
| GET | | Transfer queue |
| DELETE | | Remove from transfer queue. Body: FileItem JSON |
| POST | | Manual transfer. Params: |
| GET | | Run immediate transfer |
| Method | Path | Description |
|---|---|---|
| GET | | Media statistics. Params: |
| GET | | Media statistics (API_TOKEN, use |
| GET | | Local storage space |
| GET | | Local storage space (API_TOKEN) |
| GET | | Process info |
| GET | | Downloader info. Params: |
| GET | | Downloader info (API_TOKEN) |
| GET | | Scheduled services |
| GET | | Scheduled services (API_TOKEN) |
| GET | | Transfer statistics. Params: |
| GET | | CPU usage |
| GET | | CPU usage (API_TOKEN) |
| GET | | Memory usage |
| GET | | Memory usage (API_TOKEN) |
| GET | | Network traffic |
| GET | | Network traffic (API_TOKEN) |
| Method | Path | Description |
|---|---|---|
| GET | | List plugins. Params: |
| GET | | List installed plugins |
| GET | | Plugin install statistics |
| GET | | Install plugin. Params: |
| GET | | Reload plugin |
| GET | | Reset plugin config & data |
| GET | | Get plugin config |
| PUT | | Update plugin config. Body: JSON object |
| DELETE | | Uninstall plugin |
| POST | | Clone plugin. Body: JSON object |
| GET | | Plugin form page |
| GET | | Plugin data page |
| GET | | Plugin federation list. Params: |
| GET | | All plugin dashboard metadata |
| GET | | Plugin dashboard by key |
| GET | | Plugin dashboard |
| GET | | Plugin static file |
| GET | | Plugin folder config |
| POST | | Save plugin folder config |
| POST | | Create plugin folder |
| DELETE | | Delete plugin folder |
| PUT | | Update folder plugins. Body: array |
| Method | Path | Description |
|---|---|---|
| GET | | List all workflows |
| POST | | Create workflow. Body: Workflow JSON |
| GET | | Workflow detail |
| PUT | | Update workflow. Body: Workflow JSON |
| DELETE | | Delete workflow |
| POST | | Run workflow. Params: |
| POST | | Enable workflow |
| POST | | Disable workflow |
| POST | | Reset workflow |
| GET | | List all actions |
| GET | | Plugin actions. Params: |
| GET | | List event types |
| POST | | Share workflow. Body: WorkflowShare JSON |
| DELETE | | Delete shared workflow |
| POST | | Fork shared workflow. Body: WorkflowShare JSON |
| GET | | List shared workflows. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | Get system configuration |
| POST | | Update system configuration. Body: JSON object |
| GET | | Get system setting |
| POST | | Update system setting |
| GET | | Non-sensitive settings. Params: |
| GET | | User-related settings |
| GET | | Restart system |
| GET | | Run scheduled service. Params: |
| GET | | Run scheduler (API_TOKEN, use |
| GET | | List loaded modules |
| GET | | Test module availability |
| GET | | List all GitHub releases |
| GET | | Test filter rule. Params: |
| GET | | Test network connectivity. Params: |
| GET | | List LLM models. Params: |
| GET | | Real-time progress (SSE) |
| GET | | Real-time messages (SSE). Params: |
| GET | | Real-time logs (SSE). Params: |
| GET | | Image proxy. Params: |
| GET | | Cached image. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | Discover data sources |
| GET | | Discover Bangumi. Params: |
| GET | | Discover Douban movies. Params: |
| GET | | Discover Douban TV. Params: |
| GET | | Discover TMDB movies. Params: |
| GET | | Discover TMDB TV. Params: same as movies |
| Method | Path | Description |
|---|---|---|
| GET | | Recommendation data sources |
| GET | | Bangumi daily schedule. Params: |
| GET | | Douban now showing. Params: |
| GET | | Douban movies. Params: |
| GET | | Douban TV. Params: |
| GET | | Douban Top 250 movies. Params: |
| GET | | Douban Chinese TV weekly. Params: |
| GET | | Douban Global TV weekly. Params: |
| GET | | Douban animation. Params: |
| GET | | Douban hot movies. Params: |
| GET | | Douban hot TV. Params: |
| GET | | TMDB movies. Params: |
| GET | | TMDB TV. Params: |
| GET | | TMDB trending. Params: |
| Method | Path | Description |
|---|---|---|
| GET | | Get torrent cache |
| DELETE | | Clear torrent cache |
| DELETE | | Delete specific torrent cache |
| POST | | Refresh torrent cache |
| POST | | Re-identify torrent. Params: |
| Method | Path | Description |
|---|---|---|
| POST | | Receive user message. Params: |
| GET | | Callback verification. Params: |
| POST | | Send web message. Params: |
| GET | | Get web messages. Params: |
| POST | | WebPush subscribe. Body: Subscription JSON |
| POST | | Send WebPush notification. Body: SubscriptionMessage JSON |
| Method | Path | Description |
|---|---|---|
| GET | | List all users |
| POST | | Create user. Body: UserCreate JSON |
| PUT | | Update user. Body: UserUpdate JSON |
| GET | | Current logged-in user |
| GET | | User detail |
| DELETE | | Delete user by ID |
| DELETE | | Delete user by username |
| POST | | Upload avatar. Body: multipart/form-data |
| GET | | Get user config |
| POST | | Update user config |
| Method | Path | Description |
|---|---|---|
| POST | | Get JWT access token. Body: form (username, password) |
| GET | | Login page wallpaper |
| GET | | Login page wallpaper list |
| Method | Path | Description |
|---|---|---|
| POST | | MCP JSON-RPC 2.0 endpoint |
| DELETE | | Terminate MCP session |
| GET | | List all exposed tools |
| POST | | Call a tool. Body: |
| GET | | Get tool definition |
| GET | | Get tool input schema |
| Method | Path | Description |
|---|---|---|
| GET | | Webhook message (GET). Params: |
| POST | | Webhook message (POST). Params: |
| Method | Path | Description |
|---|---|---|
| GET | | System status |
| GET | | Quality profiles |
| GET | | Root folders |
| GET | | Tags |
| GET | | Languages |
| GET | | All subscribed movies |
| POST | | Add movie subscription. Body: RadarrMovie JSON |
| GET | | Search movie. Params: |
| GET | | Movie detail |
| DELETE | | Delete movie subscription |
| GET | | All TV series |
| POST | | Add TV subscription. Body: SonarrSeries JSON |
| PUT | | Update TV subscription. Body: SonarrSeries JSON |
| GET | | Search TV. Params: |
| GET | | TV detail |
| DELETE | | Delete TV subscription |
| Method | Path | Description |
|---|---|---|
| GET | | Root |
| POST | | Root |
| POST | | Upload cookie data. Body: CookieData JSON |
| GET | | Download encrypted data |
| POST | | Download encrypted data (POST) |
# 1. Search TMDB for the movie
python scripts/mp-api.py GET /api/v1/media/search title="Inception" type="movie"
# 2. Get media detail (replace {tmdbid} with actual ID)
python scripts/mp-api.py GET /api/v1/media/27205 type_name="movie"
# 3. Search torrents
python scripts/mp-api.py GET /api/v1/search/media/tmdb:27205 mtype="movie"
# 4. Get latest search results
python scripts/mp-api.py GET /api/v1/search/last
# 5. Add download
python scripts/mp-api.py POST /api/v1/download/add --json '{"torrent_url":"<url_from_search>"}'# 1. Search for the show
python scripts/mp-api.py GET /api/v1/media/search title="Breaking Bad" type="tv"
# 2. Check if already subscribed
python scripts/mp-api.py GET /api/v1/subscribe/media/tmdb:1396
# 3. Check if already in library
python scripts/mp-api.py GET /api/v1/mediaserver/exists tmdbid=1396 mtype="tv"
# 4. Add subscription
python scripts/mp-api.py POST /api/v1/subscribe/ --json '{"name":"Breaking Bad","year":"2008","type":"tv","tmdbid":1396}'# CPU, memory, network
python scripts/mp-api.py GET /api/v1/dashboard/cpu
python scripts/mp-api.py GET /api/v1/dashboard/memory
python scripts/mp-api.py GET /api/v1/dashboard/network
# Storage
python scripts/mp-api.py GET /api/v1/dashboard/storage
# Active downloads
python scripts/mp-api.py GET /api/v1/download/
# Run a scheduled task
python scripts/mp-api.py GET /api/v1/system/runscheduler jobid="subscribe_search_all"# List all sites
python scripts/mp-api.py GET /api/v1/site/
# Test site connectivity
python scripts/mp-api.py GET /api/v1/site/test/1
# Get site user data
python scripts/mp-api.py GET /api/v1/site/userdata/1
# Sync CookieCloud
python scripts/mp-api.py GET /api/v1/site/cookiecloud| Scenario | Action |
|---|---|
| HTTP 401 | API key is invalid or missing. Re-run |
| HTTP 403 | Insufficient permissions. The API key grants superuser access; check if the endpoint requires special auth. |
| HTTP 404 | Endpoint or resource not found. Verify the path and path parameters. |
| HTTP 422 | Validation error. Check required parameters and JSON body format. |
| Connection error | Verify |
| Missing config | Run |