目录纯文本版上一节 2.3下一节 3

2.4 Get details for multiple authors at once POST /graph/v1/author/batch

一次取回多位作者的详情。

参数必填说明
fields否查询参数,不在 body 里
ids是JSON body:{"ids": [...]},最多 1000 个
curl -X POST "https://fetchpaper.com/graph/v1/author/batch?fields=name,paperCount,citationCount,hIndex" \
     -H "Content-Type: application/json" \
     -d '{"ids":["40348417","AuthorId:1751096"]}'
[{"authorId": "40348417", "name": "Ashish Vaswani", "paperCount": 50, "citationCount": 218026, "hIndex": 25},
 {"authorId": "1751096", "name": "Namrata Vaswani", "paperCount": 159, "citationCount": 4867, "hIndex": 35}]

ids 的元素形态判据与 1.9 完全同一套(字符串与 JSON 整数都解析,布尔/浮点/对象/数组给 null,一槽一条不去重)。超上限回 400 Too many ids: 1001 (max 1000);GET /graph/v1/author/batch 回 405 Author batch lookup requires POST。