SdashAPI Python SDK
Official Python SDK for SdashAPI. Give your developers instant access to thousands of past exam questions for UTME, WAEC, NECO and Post-UTME — with answers, solutions, and a simple REST API.
Installation
pip install sdashapis-sdk
Quick Start
from sdashapis import SdashAPI, SdashAPIError
# 1. Initialize the client
api = SdashAPI(api_key="YOUR_ACCESS_TOKEN") # Get your token from sdashapi.com/dashboard
def main():
try:
# 2. Fetch a random chemistry UTME question from 2022
question = api.get_questions(
subject='chemistry',
type='utme',
year=2022
)
print(question)
# 3. Fetch 10 random questions
questions_list = api.get_questions(limit=10)
print(f"Fetched {len(questions_list)} questions")
except SdashAPIError as e:
print(f"API Error {e.status}: {e.message}")
if __name__ == "__main__":
main()
Endpoints Supported
get_questions(**kwargs): Fetch past questions with filters (subject, type, year, id, limit).get_subjects(): List available subjects.get_exams(): List supported exams.get_years(): List available years.report_question(question_id, report_type, message): Report issues with questions.
License
MIT
Metadata
Release files for sdashapis-sdk 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sdashapis_sdk-1.0.0.tar.gz | 2.3 kB | Without provenance | Details for sdashapis_sdk-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sdashapis_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sdashapis_sdk-1.0.0-py3-none-any.whl |
Total release size: 5.2 kB
Release files / sdashapis_sdk-1.0.0.tar.gz
| Download URL | sdashapis_sdk-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a2c5d9429cc727ccf05c663ab4ecd4f775d559ed5020dfb20bb6724b039981a
|
|
BLAKE2b-256 checksum How to use checksums |
039c4598c0bda4e6e6f487b52daf8b9a40af094f05a04abda0bac03f825002b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / sdashapis_sdk-1.0.0-py3-none-any.whl
| Download URL | sdashapis_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8661e3182373bb62429a85fc2d70a50653ff7d5199a5bc8e8b6604f9dcae18c3
|
|
BLAKE2b-256 checksum How to use checksums |
c817b44c28a8d121349e0b60300e72b25bce4bac30d5811e8a326f2c83dae30f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for sdashapis-sdk 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.