Skip to main content

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

Download files

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

Source Distribution

sdashapis_sdk-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

sdashapis_sdk-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file sdashapis_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: sdashapis_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for sdashapis_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7a2c5d9429cc727ccf05c663ab4ecd4f775d559ed5020dfb20bb6724b039981a
MD5 594eacaa7aa57bedb17c959c55c61698
BLAKE2b-256 039c4598c0bda4e6e6f487b52daf8b9a40af094f05a04abda0bac03f825002b3

See more details on using hashes here.

File details

Details for the file sdashapis_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sdashapis_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for sdashapis_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8661e3182373bb62429a85fc2d70a50653ff7d5199a5bc8e8b6604f9dcae18c3
MD5 9ad85304991ea29233064dc545bebc99
BLAKE2b-256 c817b44c28a8d121349e0b60300e72b25bce4bac30d5811e8a326f2c83dae30f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page