Unofficial Python client for the Semantic Scholar API. Version 0.12.0 requires Python >=3.10. Provides async and sync access to paper search, author data, citations, and recommendations. Release cadence is irregular, typically several months.
pip install semanticscholarNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Search for papers by title or keyword. Returns a list of Paper objects.
Pass paper IDs as a list: `sch.get_paper(['CorpusID:12345'])` or use `sch.get_paper('12345')` for single ID if you upgrade to the new API.Replace `details=True` with `details=['abstract', 'tldr']` or similar list.
Pass your API key via `SemanticScholar(api_key='YOUR_KEY')` to get higher limits (100 req/s). Or use `time.sleep(1)` between calls.
Replace `Paper.from_s2id('...')` with `sch.get_paper(['...'])`.Use: `from semanticscholar import SemanticScholar`
If using version <0.10.0: `sch.get_paper('CorpusId:12345')`. If >=0.10.0: `sch.get_paper(['CorpusId:12345'])`.Add an API key: `SemanticScholar(api_key='YOUR_KEY')` or slow down requests with `time.sleep(1)`.