Bangladesh Education Board Results API
Rust API for Bangladesh Education Board result lookups, deployed as a Vercel serverless function.
Overview
- Runtime: Rust + Axum
- Deployment target: Vercel
- API style: JSON over HTTP (
GETandPOST) - Hosted endpoint pattern:
https://<your-project>.vercel.app/fetch
API Contract
Endpoint
POST /fetchGET /fetch(query parameters)
Required Parameters
| Field | Description | Example |
|---|---|---|
exam |
Exam code | ssc, hsc |
year |
Exam year | 2024 |
board |
Board code | dhaka, dinajpur |
roll |
Student roll number | 277794 |
reg |
Registration number | 2117829468 |
reg in the response is always populated. If the board result page exposes a registration number, that parsed value is returned. Otherwise the submitted request value is echoed back in reg.
Example Request (Production)
Example Response
Deploy to Vercel
One-Click
Use the button at the top of this README.
CLI
Vercel Runtime Layout
api/axum.rs: Vercel function entrypoint for the Axum routervercel.json: Rewrite/fetchto/api/axumwhile serving landing page files at/index.html,styles.css,script.js: Static landing page and quick API playgroundsrc/lib.rs: Shared application builder (build_app) used by the Vercel function and Rust consumers
Use From Rust
1. Call Result Service Directly
[]
= { = "EduBoardAPI", = "https://github.com/Junaid433/eduboardapi" }
= { = "1", = ["macros", "rt-multi-thread"] }
use AppConfig;
use RequestData;
use ;
async
2. Reuse Router in a Rust Service
let app = build_app;
License
MIT