milmilmilmil
API 参考

Search

Local-database fuzzy search surface used by CLI/agents

GET
/api/v1/search/anime

Returns matches from the local database (titles + romanised/english aliases) with a 0..1 match score. Used by the CLI/agent surface; bypasses the audit middleware because it's read-only.

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

Substring matched against title / title_zh / title_en

limit?integer
Range1 <= value <= 100
Default20

Response Body

application/json

curl -X GET "https://example.com/api/v1/search/anime?q=string"
{  "items": [    {      "id": "string",      "bangumi_id": 0,      "anilist_id": 0,      "title": "string",      "alt_titles": [        "string"      ],      "score": 0.1,      "source": "local"    }  ]}