API 參考
Torrent Search
Search aggregated torrent providers and add results to the downloader
Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Query Parameters
q*string
source?string
Provider key, e.g. nyaa
Response Body
application/json
curl -X GET "https://example.com/api/v1/torrent-search?q=string"[ { "title": "string", "url": "string", "size": 0, "seeders": 0, "leechers": 0, "pub_date": "string", "source": "string" }]Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/torrent-search/add" \ -H "Content-Type: application/json" \ -d '{ "url": "string" }'Empty
Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Response Body
application/json
curl -X GET "https://example.com/api/v1/torrent-search/providers"[ { "key": "string", "name": "string" }]