API | Examples | Arguments | Description |
Paper Search |
example |
help, query, fields |
- Find papers matching input query (a string); output fields from S2 for each paper.
- See documentation on fields for more information on fields in S2.
- A common use case is to request paper ids from titles of papers since many of the APIs below are based on ids in Semantic Scholar (and other sources).
|
Author Search |
|
help, query, fields |
- Find authors matching input query (a string); output fields from S2 for each author.
- See documentation on fields for more information on fields in S2.
- Sort_by can be any of the fields that can be converted to integers
- Limit argument will truncate results (after sorting)
- Note: author fields are different from paper fields.
|
Lookup Paper |
|
help, id, fields, embeddings, score2 |
- Input one or more comma separated paper id and output fields from S2, as well as embeddings.
- If embeddings argument is specified,
then output embedding vectors for each input paper (missing
values will have vectors of 0).
- See documentation on embeddings for details on how to specify combinations of different embeddings to return.
|
Lookup Author |
|
help, id, fields, sort_by, limit, embeddings, score2
|
- Input author id and output author fields from S2.
- Field argument can request list of papers
- Limit argument will truncate list of papers returned
- Sort_by argument can be citationCount; if so, then field argument should contain papers.citationCount
- Embeddings can return vectors; see documention on embeddings
- Note: author ids are different from paper ids
and author fields are different from paper fields.
|
Lookup Citations |
example |
help, offset (defaults to 0), limit (defaults to 100; max is 1000), id, fields |
- Lookup Citations for paper id and output fields from S2 for each citation.
- A useful field to request is contexts; that field returns citing sentences, sentences from other papers that cite the input paper id.
- For papers with more than 1000 citations, call this API multiple times with different offsets.
|
Coauthors |
example |
help, query,
after_year |
- Input query (a string); for each matching author ids, returns a list of coauthors filtered by after_year (a 4 digit number).
- Note: since Semantic Scholar may have multiple author
ids for the same author, the json object contains a list of
coauthors for each author matching the
input query
|
Recommend Papers |
example |
help, id, limit, recommend_method, fields,
sort_by, score1, score2 |
- Recommend papers similar to paper id
using recommend_method.
- See documentation on recommend_method for choices
of recommend_methods that are currently supported.
- Output fields from
S2 for each recommended paper.
- The optional arguments, score1
and score2, score recommendations one at a
time (for score1) and pairwise (for score2), using one or more of
four embeddings.
|
Recommend Authors |
example |
help, id, limit, recommend_method, fields, sort_by, score1, score2 |
|
Compare and Contrast |
example1,
example2
example2
|
help, ids (two or more ids, separated by commas) |
- Use RAG to compare and contrast the first id with the rest.
|
Compare and Contrast Texts |
example
|
help, text1, text2 |
- Use RAG to compare and contrast text1 with text2, where both texts are strings.
|