Skip to main content

Unofficial Python client library for Semantic Scholar APIs.

Project description

semanticscholar

Unofficial Python client library for Semantic Scholar APIs.

Main features

  • Simplified access to the Semantic Scholar APIs
  • Support for the Academic Graph, Recommendations, and Datasets APIs
  • Typed responses
  • Streamlined navigation of paginated responses
  • Support for asynchronous requests

Quickstart

Installation

pip install semanticscholar

See the install page for more detailed installation instructions.

Usage

# First, import the client from semanticscholar module
from semanticscholar import SemanticScholar

# You'll need an instance of the client to request data from the API
sch = SemanticScholar()

# Get a paper by its ID
paper = sch.get_paper('10.1093/mind/lix.236.433')

# Print the paper title
print(paper.title)

Output:

Computing Machinery and Intelligence

What next?

  • Usage - See additional examples to learn how to use the library to fetch data from Semantic Scholar APIs.
  • Reference - Get the details of the classes and methods available in the library.
  • API Endpoints - Check the supported SemanticScholar API endpoints and which methods implement them.

Semantic Scholar API official docs

If you have concerns or feedback specific to this library, feel free to open an issue. However, the official documentation provides additional resources for broader API-related issues.

Contributing

As a volunteer-maintained open-source project, contributions of all forms are welcome! For more information, see the Contributing Guidelines.

Please make sure to understand our Contributor Covenant Code of Conduct before you contribute. TL;DR: Be nice and respectful!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

semanticscholar-0.12.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

semanticscholar-0.12.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file semanticscholar-0.12.0.tar.gz.

File metadata

  • Download URL: semanticscholar-0.12.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for semanticscholar-0.12.0.tar.gz
Algorithm Hash digest
SHA256 174bb0129853480d2e659d8726ce0306a1f6f3817d1bc7a4bdd53b45a4984eb9
MD5 3d9f4aa43c22a91e64e4ec280b879750
BLAKE2b-256 ff1a60fbb6096ed06d9d485e67b9778e60550ef12273ca124e9c82c06cf3b8d4

See more details on using hashes here.

File details

Details for the file semanticscholar-0.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for semanticscholar-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bffa484dd08e5c8041eaec357a46ec44838c79a0cfd4ddea20d09f84d350a830
MD5 7cb8233d8edf479c1af54db76b58dc46
BLAKE2b-256 b7849b273b7ae0946e1b311ec651605c9c229d0553863dcc6c5a315150c5f7ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page