All of the APIs use GET HTTP requests, and return json objects. Click on the examples below
to see the input GET request and the output json objects.
API | Examples | Arguments | Description |
Paper Search |
|
help, query, fields, sort_by,
limit, get_pdfs, get_bibtex |
- Find papers matching input query (a string); output fields from
Semantic Scholar for each paper.
- See documentation on fields for more information on fields in Semantic Scholar.
- 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).
- sort_by can be any of the fields that can be converted to integers
|
Author Search |
|
help, query, fields, embeddings, sort_by, limit |
|
Lookup Paper |
|
help, id, fields, embeddings, score2, get_pdfs, get_bibtex |
- Input one or more comma separated paper id and output fields from Semantic Scholar, 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.
|
bibtex |
|
help, id |
- Input one or more comma separated paper id and output bibtex entries
|
pdfs |
|
help, id |
- Input one or more comma separated paper id and output urls for pdfs
|
Lookup Author |
|
help, id, fields, sort_by, limit, embeddings, score2, get_pdfs, get_bibtex
|
- Input author id and output author fields from Semantic Scholar.
- 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 Semantic Scholar 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.
- Another useful field to request is intents; that field returns the intent of eachciting sentence.
- For papers with more than 1000 citations, call this API multiple times with different offsets.
|
Lookup References |
example |
help, offset (defaults to 0), limit (defaults to 100; max is 1000), id, fields |
- Lookup References for paper id and output fields from Semantic Scholar for each reference.
- A useful field to request is contexts; that field returns citing sentences, sentences in the input paper id
that cite other other papers.
- Another useful field to request is intents; that field returns the intent of eachciting sentence.
- 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 |
|
help, id, limit, recommend_method |
- Recommend papers similar to paper id
using recommend_method.
- See documentation on recommend_method for choices
of recommend_methods that are currently supported. New: one or more methods can be provided, separated by commas.
|
Recommend Authors |
example |
help, id, limit, recommend_method |
|
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.
|