Examzo API
Integrate faculty-validated CBSE questions into your LMS, website, or app. REST API with JSON responses — token-based access for Pro and School subscribers.
Quick Start
Three steps to your first API call.
Subscribe to Pro or School
API access is included with Pro (≥₹99/mo) and School (≥₹3,000/mo) plans.
Get Your API Key
Visit your Profile page after subscribing. Your key will be available in the API section.
Make Your First Request
Send a POST request with your key in the Authorization header. Get JSON back.
Authentication
All API requests require an API key. Include it as a Bearer token in the Authorization header.
API keys are available to Pro and School subscribers. Each key is unique to your account. Do not share it or commit it to version control. If your key is compromised, regenerate it from your Profile page.
Token Limits
API usage is metered in tokens — the combined input + output tokens processed by the AI model per request. Tokens reset on the 1st of each month.
| Tier | Price | API Tokens / Month | Rough Paper Equivalent |
|---|---|---|---|
| Free | ₹0 | — | No API access |
| Pro | ₹99/mo | 500,000 | ~100 papers |
| School | ≥₹3,000/mo | 10,000,000 | ~2,000 papers |
How tokens are counted: ~5,000 tokens per full paper generation, ~500 tokens per individual question fetch.
Each API response includes X-RateLimit-Remaining and X-RateLimit-Reset headers so you can track your usage.
API Endpoints
Base URL: https://examzo-mcp.onrender.com
Generate Questions
Generate questions from a natural language prompt. Describe what you need — subject, class, chapter, question type, difficulty, count — in plain English.
Request body:
Response (200):
Download Paper (PDF)
Generate and download a formatted PDF paper. Use ?preview=true for a JSON preview, or ?preview=false (default) for the binary PDF.
Request body:
Response: Binary PDF (Content-Type: application/pdf) when preview=false. JSON with question preview when preview=true.
Browse Questions
Fetch questions by filters. All parameters except subject are optional — omit them to browse broadly.
Request body:
Response (200):
Available filters: subject (required), topic, difficulty (Easy / Moderate / Hard), question_type (MCQ / Short Answer / Long Answer / Case Study), class (6–12).
Generate PDF from Selected Questions
Generate a PDF from a specific set of question IDs. Useful after browsing questions via /fetch_questions and letting users hand-pick questions.
Request body:
Response: Binary PDF (Content-Type: application/pdf).
List Available Subjects
Get the list of available subjects and their metadata. No request body required.
Response (200):
Code Examples
Copy-paste ready. Replace YOUR_API_KEY with your actual key.
cURL
JavaScript (fetch)
Python (requests)
FAQ
How do I get an API key?
What format are questions returned in?
question_id, question_type (MCQ, Short Answer, Long Answer, Case Study), content (question text + options for MCQs), difficulty, and marks.
How are tokens calculated?
X-RateLimit-Remaining response header.