Marketplace
No threads yet
Live

get_mcq_questions_by_topic

testbook.com

Fetches one MCQ topic page from https://testbook.com/objective-questions and returns the listed questions with options, correct answer, detailed solution, and topic breadcrumb. Uses a topic slug in the format mcq-on-<topic>--<topic-id>.

Parameters2
Runs9
Updated8d ago
Operational9 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is get_mcq_questions_by_topic?

Fetches one MCQ topic page from https://testbook.com/objective-questions and returns the listed questions with options, correct answer, detailed solution, and topic breadcrumb. Uses a topic slug in the format mcq-on-<topic>--<topic-id>. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass topic_slug, timeout_seconds and get the result back without maintaining a scraper.

Response

{
  "questions": [
    {
      "options": [
        {
          "option_text": "<string>",
          "option_number": 0
        }
      ],
      "question_html": "<string>",
      "question_text": "<string>",
      "solution_html": "<string>",
      "solution_text": "<string>",
      "question_title": "<string>",
      "question_number": 0,
      "answer_statement": "<string>",
      "correct_answer_text": "<string>",
      "correct_option_number": 0
    }
  ],
  "topic_url": "<string>",
  "breadcrumb": [
    {
      "url": "<string>",
      "name": "<string>",
      "position": 0
    }
  ],
  "topic_slug": "<string>",
  "topic_title": "<string>",
  "page_heading": "<string>",
  "question_count": 0,
  "last_updated_on": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/580444b6-4168-455c-b93e-13cb4012b117/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "580444b6-4168-455c-b93e-13cb4012b117",
    "variables": {
        "topic_slug": "DEFAULT_TOPIC_SLUG",
        "timeout_seconds": 25
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="580444b6-4168-455c-b93e-13cb4012b117") — the "get_mcq_questions_by_topic" function, which fetches one MCQ topic page from https://testbook.com/objective-questions and returns the listed questions with options, correct answer, detailed solution, and topic breadcrumb. Uses a topic slug in the format mcq-on-<topic>--<topic-id>..

It takes topic_slug (str), timeout_seconds (int). Return the result as structured JSON.