Unofficial JavaScript/TypeScript client library for Semantic Scholar APIs, currently supporting the Academic Graph API and Recommendations API.
This library is strongly inspired by danielnsilva/semanticscholar, a Python implementation by Daniel Silva.
npm i semanticscholarjs
// Import the SemanticScholar library
import { SemanticScholar } from 'semanticscholarjs';
const sch = new SemanticScholar();
const paper = await sch.get_paper('10.1093/mind/lix.236.433');
console.log('Paper title:', paper.title);
Computing Machinery and Intelligence
const author = await sch.get_author('2262347');
console.log(author.name);
A. Turing
const results = await (
await sch.search_paper('Computing Machinery and Intelligence')
).nextPage();
console.log(results[5].title);
Alan Turing’s “Computing Machinery and Intelligence”
The library also supports the following features:
- get_paper (single paper)
- get_papers (multiple papers at once)
- getPaperAuthors
- getPaperCitations
- getPaperReferences
- search_paper (search by query)
- get_author
- get_authors
- get_author_papers
- search_author (search by query)
- get_recommended_papers
- get_recommended_papers_from_lists
We welcome contributions to the SemanticScholarJS package! If you have any ideas, suggestions, or bug reports, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by Thomas Übellacker, with great inspiration and support from Daniel Silva's danielnsilva/semanticscholar