1.0.4 • Published 8 months ago

semanticscholarjs v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

SemanticScholarJS 🚀

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.

🚢 Installation

npm i semanticscholarjs

🎓 Usage

// Import the SemanticScholar library
import { SemanticScholar } from 'semanticscholarjs';

const sch = new SemanticScholar();

Paper Lookup

const paper = await sch.get_paper('10.1093/mind/lix.236.433');
console.log('Paper title:', paper.title);
Computing Machinery and Intelligence

Author Lookup

const author = await sch.get_author('2262347');
console.log(author.name);
A. Turing

Search Papers

const results = await (
await sch.search_paper('Computing Machinery and Intelligence')
).nextPage();
console.log(results[5].title);
Alan Turing’s “Computing Machinery and Intelligence”

🌈 More Features

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

🤝 Contributing

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.

📃 License

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

1.0.4

8 months ago

1.0.0

8 months ago