Discover/Testbook API
live

Testbook APItestbook.com

Access Testbook exam categories, course search, upcoming live classes, and MCQ questions via API. Covers SSC, Banking, Railways, UPSC, and more.

This API takes change requests — .
Endpoint health
verified 1d ago
get_questions_by_topic
search
get_upcoming_classes
list_exam_categories
4/4 passing latest checkself-healing
Endpoints
4
Updated
9d ago

What is the Testbook API?

The Testbook API provides 4 endpoints to query India's government exam preparation platform, covering global content search, exam category listings, upcoming live class schedules, and topic-based MCQ question sets. The search endpoint alone spans nine content types — exams, courses, test series, tests, articles, quizzes, videos, free tests, and previous year papers — filterable by language and content type in a single call.

This call costs1 credit / call— charged only on success
Try it
Search query term (e.g. 'SSC', 'Banking', 'Railways').
Language for results. Accepts: English, Hindi.
Comma-separated list of content types to search. Accepted values: targets, courses, testSeries, tests, articles, quizzes, videos, freeTests, pyp, goalCards.
api.parse.bot/scraper/fd84e6b2-7849-4708-adad-1bdac1e30c63/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/fd84e6b2-7849-4708-adad-1bdac1e30c63/search?term=SSC&language=English&search_on=targets%2Ccourses%2CtestSeries%2Ctests%2Carticles%2Cquizzes' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalmissing one? ·

Global search across Testbook's content including exams (targets), courses, test series, tests, articles, quizzes, videos, free tests, previous year papers, and goal cards. Returns result counts per content type and actual result items.

Input
ParamTypeDescription
termrequiredstringSearch query term (e.g. 'SSC', 'Banking', 'Railways').
languagestringLanguage for results. Accepts: English, Hindi.
search_onstringComma-separated list of content types to search. Accepted values: targets, courses, testSeries, tests, articles, quizzes, videos, freeTests, pyp, goalCards.
Response
{
  "type": "object",
  "fields": {
    "count": "object containing result counts per content type",
    "order": "array of content type names in display order",
    "results": "object containing arrays of result items per content type",
    "totalCount": "object with total result count value and relation"
  },
  "sample": {
    "count": {
      "tests": {
        "value": 10000,
        "relation": "gte"
      },
      "courses": {
        "value": 192,
        "relation": "eq"
      },
      "targets": {
        "value": 325,
        "relation": "eq"
      },
      "articles": {
        "value": 7292,
        "relation": "eq"
      }
    },
    "order": [
      "targets",
      "courses",
      "testSeries"
    ],
    "results": {
      "targets": [
        {
          "_id": "5e6189da5f66e94f14a21f58",
          "slug": "ssc-cgl-exam",
          "properties": {
            "title": "SSC CGL"
          }
        }
      ],
      "testSeries": [
        {
          "id": "68e369fddfe41a9c30482098",
          "name": "SSC GD Constable 2026 Mock Test Series",
          "slug": "ssc-gd-constable",
          "freeTestCount": 59,
          "paidTestCount": 3019,
          "totalAttempts": 1469406
        }
      ]
    },
    "totalCount": {
      "value": 27899,
      "relation": "gte"
    }
  }
}

About the Testbook API

Search and Discovery

The search endpoint accepts a term parameter (e.g. SSC, Banking, Railways) and returns a results object keyed by content type, alongside per-type count values and a totalCount aggregate. You can narrow results by passing a comma-separated search_on value — valid types include targets, courses, testSeries, tests, and article. Both English and Hindi responses are supported via the language parameter, which applies across all endpoints.

Exam Categories and Live Classes

list_exam_categories returns the full set of Testbook super groups — SSC Exams, Banking Exams, Railways Exams, Teaching Exams, and others — each with an id, title, logo URL, and a count of exams within that category. The id field feeds directly into get_upcoming_classes as the super_group_id parameter. That endpoint returns an array of lessons, each containing schedule timestamps, instructor details, and series metadata. Pagination is supported via skip and limit parameters.

MCQ Question Sets

get_questions_by_topic retrieves multiple-choice questions for a specific topic, identified by its URL slug (e.g. mcq-on-research-methodology--5eea6a0d39140f30f369e1a5). Each question object includes question_text, options, answer, solution, and a question_number. The response also exposes topic_name, breadcrumbs (for subject hierarchy context), and total_questions. Each topic page returns up to approximately 15 questions.

Reliability & maintenanceVerified

The Testbook API is a managed, monitored endpoint for testbook.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when testbook.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official testbook.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build an exam discovery tool that lists all Testbook super groups and their target exam counts using list_exam_categories.
  • Aggregate upcoming free live class schedules across exam categories for a consolidated study planner using get_upcoming_classes.
  • Power a search autocomplete or content index by querying the search endpoint filtered to courses or testSeries content types.
  • Create a quiz application by fetching MCQ question sets with answers and solutions via get_questions_by_topic.
  • Build a multilingual study dashboard by requesting both English and Hindi responses from any endpoint using the language parameter.
  • Monitor newly available free tests or previous year papers by regularly searching for exam-specific terms and checking the tests content type count.
  • Enrich an exam preparation app with subject breadcrumbs and topic hierarchy data returned by get_questions_by_topic.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Testbook have an official public developer API?+
Testbook does not publish a public developer API or API documentation for third-party use. This Parse API provides structured access to Testbook's exam, course, class, and question data.
What does the `search` endpoint return, and can I filter by content type?+
It returns a results object with arrays of matched items per content type, a count object with per-type figures, and a totalCount aggregate. You can filter by passing a comma-separated search_on value — accepted types are targets, courses, testSeries, tests, and article. Omitting search_on returns results across all supported types.
How do I get upcoming classes for a specific exam category like SSC or Banking?+
Call list_exam_categories first to retrieve category objects. Each object contains an id field. Pass that id as the super_group_id parameter to get_upcoming_classes. The default, when no super_group_id is provided, is the Teaching Exams category.
Does the API expose individual course or test series detail pages?+
Not currently. The API covers search results for courses and test series (via the search endpoint), exam category metadata, live class schedules, and topic-level MCQ sets. Detailed course pages, pricing, enrollment status, or individual test content are not exposed. You can fork this API on Parse and revise it to add an endpoint targeting specific course or test series detail pages.
Are there pagination limits for `get_upcoming_classes` or `get_questions_by_topic`?+
get_upcoming_classes supports skip and limit parameters for pagination, so you can page through lesson results incrementally. get_questions_by_topic returns up to approximately 15 questions per topic page and does not currently expose a pagination parameter — the count reflects what appears on a single topic page.
Page content last updated . Spec covers 4 endpoints from testbook.com.
Related APIs in EducationSee all →
shiksha.com API
Search and browse Shiksha colleges by stream/course, then fetch detailed institute profiles and course offerings, plus upcoming exam schedules by stream.
qconcursos.com API
Search and explore thousands of Brazilian public exam questions filtered by discipline, examining board, and subject to help prepare for concursos. Access detailed information about specific questions and browse the complete catalog of available exam topics and institutions.
examcompass.com API
Access free CompTIA certification practice exams and topic-specific quizzes for A+, Network+, and Security+ (SY0-701) to test your knowledge and prepare for your certification. Browse the complete exam index and download practice tests whenever you need to study.
sarkariresult.com.cm API
Get instant access to Indian government exam notifications, results, admit cards, and job postings all in one place. Stay updated on the latest Sarkari opportunities without manually checking multiple websites.
openstax.org API
Access learning outcomes, table of contents, and metadata from 60+ free OpenStax textbooks spanning Business, Science, Math, Social Sciences, Humanities, Computer Science, and Nursing. Search and retrieve structured content from any of these textbooks.
accaglobal.com API
Access data from accaglobal.com.
boslive.icai.org API
Access the ICAI Board of Studies Knowledge Portal, including announcements, examination updates, Live Virtual Class (LVC) and Live Virtual Revisionary Class (LVRC) schedules, and study materials. Browse available courses, languages, and papers, and retrieve direct PDF links for any portal page.
booksrun.com API
Search millions of books and get instant buyback quotes on BooksRun. Browse bestsellers and categories, view detailed book information, and check condition guidelines to understand buyback prices and acceptance criteria.