1.8 Details about a paper's authors GET /graph/v1/paper/{paper_id}/authors
返回这篇论文的作者。
| 参数 | 必填 | 说明 |
|---|---|---|
paper_id | 是 | 路径参数,写法同 1.5 |
offset / limit | 否 | limit 默认 100、上限 1000;offset + limit < 10000 |
fields | 否 | 逗号分隔的字段投影,见 §3 |
curl "https://fetchpaper.com/graph/v1/paper/204e3073870fae3d05bcbc2f6a8e263d9b72e776/authors?fields=authorId,name,paperCount,citationCount,hIndex,url"
{"offset": 0,
"data": [{"authorId": "40348417", "name": "Ashish Vaswani",
"paperCount": 50, "citationCount": 218026, "hIndex": 25,
"url": "https://www.semanticscholar.org/author/40348417"}, …]}
统计字段(paperCount / citationCount / hIndex)按本地 CS 子集计算,比官网全量口径小。
翻页口径与 /citations、/references 一致(limit 默认 100、上限 1000,offset + limit < 10000)。拿一篇作者很多的论文实测(608c74e0797e1fc0a798cb7e3cf2c48a5d73d009,作者表 2,241 槽):
curl "https://fetchpaper.com/graph/v1/paper/608c74e0797e1fc0a798cb7e3cf2c48a5d73d009/authors?limit=1000&offset=1000&fields=authorId"
# {"offset":1000,"next":2000,"data":[ …1000 行… ]}
- 按
limit=1000翻正好 3 页(0 / 1000 / 2000),累计 2,241 行;next只在offset + limit < total时才出现,末页不挂指向越界位置的空页。 offset等于或超过槽位数(offset=2241)→ 200 +data: []+ 无next,不报错。- 这里的
total是署名槽位数,不是唯一作者数:那篇 2,241 槽里只有 2,230 位唯一authorId,同一人署名两次就在data里出现两次,本端点不去重(/citations、/references会按论文去重,作者表不会)。 fields=papers为当前页每位作者展开论文列表,代价按页大小放大:同一页 100 位作者展开后是 1,393 篇嵌套论文——不点papers整页 5 KB,点papers.paperId87 KB,点papers(默认子字段)245 KB。翻页时把子字段收窄,或直接用/author/{id}/papers。