gateoverflow.in APIgateoverflow.in ↗
Retrieve GATE CSE exam questions with options, tags, vote counts, and LaTeX-formatted math from GATEOverflow.in via a single clean API endpoint.
curl -X GET 'https://api.parse.bot/scraper/5e54d2f3-b4eb-4dc0-b289-8c59dedf5e85/get_question?question_id=1457' \ -H 'X-API-Key: $PARSE_API_KEY'
Retrieve a GATE exam question by its numeric ID. Returns the question text, multiple-choice options (labeled A through D or more), tags, vote count, view count, and answer count. The question_text and option texts contain LaTeX math notation in $...$ delimiters. Options are present only for MCQ-type questions; non-MCQ questions return an empty options array.
| Param | Type | Description |
|---|---|---|
| question_idrequired | string | Numeric question ID from GATEOverflow (visible in the URL path, e.g. '1457' from gateoverflow.in/1457/...). |
{
"type": "object",
"fields": {
"url": "string",
"tags": "array of tag strings",
"title": "string",
"views": "integer",
"votes": "integer",
"options": "array of option objects with label and text",
"question_id": "string",
"answer_count": "integer",
"question_text": "string"
},
"sample": {
"data": {
"url": "https://gateoverflow.in/1457/gate-cse-1999-question-1-3",
"tags": [
"gate1999",
"combinatory",
"normal",
"counting",
"balls-in-bins"
],
"title": "GATE CSE 1999 | Question: 1.3",
"views": 14922,
"votes": 40,
"options": [
{
"text": "$^{n-1}C_k$",
"label": "A"
},
{
"text": "$^nC_k$",
"label": "B"
},
{
"text": "$^nC_{k+1}$",
"label": "C"
},
{
"text": "None of the above",
"label": "D"
}
],
"question_id": "1457",
"answer_count": 6,
"question_text": "The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is"
},
"status": "success"
}
}About the gateoverflow.in API
The GATEOverflow API exposes 1 endpoint — get_question — that returns a GATE exam question and its full context: multiple-choice options labeled A through D, subject tags, vote count, view count, answer count, and the canonical URL. Both question text and option text are delivered with LaTeX math notation intact, making the response ready for rendering in any environment that supports MathJax or KaTeX.
What the API Returns
The get_question endpoint accepts a single required parameter — question_id — a numeric string visible in the GATEOverflow URL path (for example, 1457 from gateoverflow.in/1457/...). The response contains the full question_text, an options array where each object carries a label (A, B, C, D, or beyond) and the corresponding text, plus a title string summarizing the question.
Metadata Fields
Alongside the question content, the response includes tags (an array of subject strings such as algorithms or operating-systems), votes (net community vote count), views (total view count), and answer_count (number of posted answers). The url field returns the canonical GATEOverflow page link for the question. These fields let you filter, sort, or surface questions by topic or community signal without additional lookups.
LaTeX Notation
Math expressions in both question_text and option text values are preserved using standard $...$ delimiters. No pre-processing is applied; the strings arrive exactly as they appear on the source page. If you're building a study tool or quiz renderer, pass the strings directly to MathJax, KaTeX, or any compatible renderer. There is no plain-text fallback in the response.
- Build a GATE CSE practice quiz app that renders LaTeX questions and checks selected options
- Tag-based question filtering: fetch questions and group them by subject tags for topic-wise revision
- Rank questions by
votesorviewsto surface the most discussed problems in a study guide - Populate a spaced-repetition flashcard deck with GATE question text and multiple-choice options
- Generate mock GATE papers by pulling questions programmatically using known question IDs
- Track
answer_countto identify questions with active community discussion for deeper review
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does GATEOverflow have an official developer API?+
What exactly does `get_question` return for the options field?+
options field is an array of objects, each with a label string (e.g. 'A', 'B', 'C', 'D') and a text string containing the option content. Option text may include LaTeX math in $...$ delimiters, consistent with the question_text field.Does the API return the correct answer for a question?+
get_question response does not include a field identifying the accepted or correct answer. It returns answer_count (how many answers exist) and the question content, but the selected correct answer is not part of the current response. You can fork this API on Parse and revise it to add the missing endpoint that extracts the accepted answer.Can I retrieve a list of questions by tag, year, or subject without knowing specific question IDs?+
question_id. Browsing or searching by tag, GATE year, or subject is not supported. You can fork this API on Parse and revise it to add a search or listing endpoint that filters by those dimensions.Are questions from all GATE disciplines (EC, EE, ME, etc.) available, or only CSE?+
tags field carries. You can fork this API on Parse and revise it to add discipline-specific filtering.