目录纯文本版上一节 1.3下一节 1.5

1.4 Suggest paper query completions GET /graph/v1/paper/autocomplete

为交互式查询补全返回最少的论文信息。

参数必填说明
query是部分查询串,只取前 100 字符
curl "https://fetchpaper.com/graph/v1/paper/autocomplete?query=attention%20is"
{"matches": [{"id": "204e3073870fae3d05bcbc2f6a8e263d9b72e776",
              "title": "Attention is All you Need", "authorsYear": "Vaswani et al., 2017"},
             {"id": "1e83c20def5c84efa6d4a0d80aa3159f55cb9c3f",
              "title": "Attention is not Explanation", "authorsYear": "Jain et al., 2019"}, …]}

前缀匹配(忽略大小写与标点),最多 10 条,按引用数降序(同分按入库顺序,结果稳定),query 只取前 100 字符。响应形状固定 id / title / authorsYear 三样,fields 在这里无效(传了忽略,和 search 忽略 sort 同一套口径)。