mnapis

全库搜索

?q=&scope=all|notes|studysets|documents。返回卡/集/文档三类命中。无列全库文档端点,找书用 scope=documents 拿 bookmd5。响应带 scanned/truncated;truncated:true=窗口没够到,加词重搜。新卡约 10s 索引延迟。

GET
/search

?q=&scope=all|notes|studysets|documents。返回卡/集/文档三类命中。无列全库文档端点,找书用 scope=documents 拿 bookmd5。响应带 scanned/truncated;truncated:true=窗口没够到,加词重搜。新卡约 10s 索引延迟。

Authorization

bearerAuth
AuthorizationBearer <token>

安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。

In: header

Query Parameters

q*string

关键词;truncated:true 时加词缩小范围重搜

scope?string

all|notes|studysets|documents

Value in

  • "all"
  • "notes"
  • "studysets"
  • "documents"

Response Body

curl -X GET "https://example.com/search?q=string"
Empty