Vietnam Driving Theory Exam Rules API
Theory-exam rules per Vietnamese licence class (A1–DE): number of questions, time limit, pass mark, critical question, topic split; pass / fail check.
Give a licence class (A1, A, B1, B, C1, C, D1, D2, D, BE, C1E, CE, D1E, D2E, DE) and an optional date (default today) to get the computer theory test that applies on that day: number of questions, time limit, pass mark, the "điểm liệt" (critical question) rule, the official split of questions by chapter of the question bank and the paper-test variant where one exists. Without class you get the table for all 15 classes. Each answer names the regime (effective_from, effective_until, status: in_force / scheduled / expired) and the next scheduled change for the class.
Two regimes are covered: Circular 12/2025/TT-BCA (exams up to 28/02/2027, e.g. class B: 30 questions, 20 minutes, pass 27, one critical question; split by chapter from Traffic Police letter 2262/CSGT-P5) and Circular 108/2026/TT-BCA (exams from 01/03/2027, e.g. A1 / A: 40 questions, 27 minutes, pass 36; B: 50 / 33 / 45; trailer classes 90 / 60 / 81). mode=grade with correct and critical_failed returns pass / fail with the reason, in English and Vietnamese. mode=regimes lists both tables side by side.
The data is a hand-entered table checked against the official texts, with legal references, a review date and a disclaimer in every response; anything not confirmed by the official text is listed in unverified. The endpoint deliberately contains no question text, answers or pictures from the official question bank.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
class | query | string | no | Licence class: A1, A, B1, B, C1, C, D1, D2, D, BE, C1E, CE, D1E, D2E, DE. Omit for all classes (structure mode). Required for mode=grade. | |
date | query | string | no | Exam date, YYYY-MM-DD or DD/MM/YYYY (default today, Vietnam time). From 2025-03-01. | |
mode | query | string | no | structure | structure (default), grade (pass / fail check; implied when correct is given) or regimes (both tables). Alias: action. |
correct | query | number | no | With mode=grade: number of correct answers (0 … number of questions). | |
critical_failed | query | boolean | no | With mode=grade: 1 if the critical ("điểm liệt") question was answered wrongly (default 0). Or give critical_correct. | |
paper | query | boolean | no | 1: the paper test instead of the computer test (A1 / A until 28/02/2027; from 01/03/2027 only A1 for ethnic-minority candidates who cannot read Vietnamese). |
Example
curl "https://apibox.io.vn/v1/vn-driving-theory?class=B&date=2026-11-16" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-driving-theory?class=B&date=2026-11-16', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/vn-driving-theory?class=B&date=2026-11-16",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-driving-theory?class=B&date=2026-11-16');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));Response
{
"date": "2026-11-16",
"regime": {
"id": "tt12-2025",
"document": "Circular 12/2025/TT-BCA (Ministry of Public Security), annexes kept in force by Circular 108/2026/TT-BCA Art. 41(6)",
"effective_from": "2025-03-01",
"effective_until": "2027-02-28",
"status": "in_force"
},
"exam": {
"class": "B",
"method": "computer",
"questions": 30,
"time_limit_minutes": 20,
"time_limit_seconds": 1200,
"seconds_per_question": 40,
"max_score": 30,
"pass_mark": 27,
"pass_percent": 90,
"max_wrong": 3,
"points_per_question": 1,
"critical_questions": 1,
"critical_rule": "Each exam contains exactly 1 question on a situation that seriously endangers traffic safety (\"điểm liệt\"); choosing a wrong answer to it fails the theory test whatever the score.",
"theory_exempt_with_car_licence": false,
"source": "TT 12/2025/TT-BCA Phụ lục IV mục A"
},
"distribution": {
"available": true,
"effective_from": "2025-06-01",
"source": "Công văn 2262/CSGT-P5 ngày 07/5/2025 (Cục CSGT), mục II",
"critical": {
"questions": 1,
"vi": "Tình huống mất an toàn giao thông nghiêm trọng (câu điểm liệt)"
},
"topics": [
{
"chapter": "I",
"topic": "rules",
"en": "General provisions and road traffic rules",
"bank_numbers": "1–180",
"questions": 8
},
{
"chapter": "II",
"topic": "culture",
"en": "Traffic culture, driver ethics, fire fighting and rescue skills",
"bank_numbers": "181–205",
"questions": 1
},
{
"chapter": "III",
"topic": "technique",
"en": "Driving technique",
"bank_numbers": "206–263",
"questions": 1
},
{
"chapter": "IV",
"topic": "mechanics",
"en": "Vehicle structure and repair",
"bank_numbers": "264–300",
"questions": 1
},
{
"chapter": "V",
"topic": "signs",
"en": "Road signs and signals",
"bank_numbers": "301–485",
"questions": 9
},
{
"chapter": "VI",
"topic": "situations",
"en": "Traffic diagrams (sa hình) and handling traffic situations",
"bank_numbers": "486–600",
"questions": 9
}
],
"total": 30,
"question_pool": {
"questions": 600,
"critical_questions": 60
}
},
"next_change": {
"regime": "tt108-2026",
"effective_from": "2027-03-01",
"status": "scheduled",
"questions": 50,
"time_limit_minutes": 33,
"pass_mark": 45,
"critical_questions": 0,
"summary": "30 → 50 questions, 20 → 33 min, pass 27 → 45, no critical question"
},
"legal": [
{
"ref": "Thông tư 12/2025/TT-BCA ngày 28/02/2025, Điều 4 khoản 1; Phụ lục II, III; mục A Phụ lục IV, V, VI",
"effective_from": "2025-03-01"
},
{
"ref": "Thông tư 108/2026/TT-BCA Điều 41 khoản 6 (giữ hiệu lực các phụ lục trên đến hết 28/02/2027), Điều 42 khoản 2 (thi lại nội dung chưa đạt theo TT 12/2025 đến hết 28/02/2027)",
"effective_from": "2026-07-01"
},
{
"ref": "Công văn 2262/CSGT-P5 ngày 07/5/2025 của Cục CSGT (bộ 600 câu hỏi, cấu trúc đề theo hạng)",
"effective_from": "2025-06-01"
}
],
"unverified": [],
"reviewed": "2026-11-16",
"disclaimer": "Reference only, not legal advice; check the official text and the exam centre (Phòng CSGT / trung tâm sát hạch)."
}
Use cases
- Set the countdown timer and question count of a practice-test app per licence class
- Score a mock theory test exactly like the exam software, including the critical-question rule
- Switch a driving-school app to the new 2027 exam format automatically by date
- Show learners how the exam changes for their class on 01/03/2027
FAQ
Does it return the 600 official questions or answers?
No. Only the exam structure and rules are provided: number of questions, time, pass mark, critical-question rule and the number of questions per chapter. Use the official bank from the Traffic Police for the questions themselves.
Which rules apply between 01/07/2026 and 28/02/2027?
Circular 108/2026 is in force from 01/07/2026, but its Article 41 keeps the theory-test annexes of Circular 12/2025 until 28/02/2027. The new format (more questions, no critical question in the annexes) applies from 01/03/2027.
What is a critical question ("điểm liệt")?
Under Circular 12/2025 every exam contains one question on a situation that seriously endangers traffic safety; answering it wrongly fails the theory test even with enough correct answers. The annexes of Circular 108/2026 contain no such clause; the response flags this as unverified until the implementation guidance is out.
Related APIs
JSON Validator
Check JSON syntax with exact line and column of errors, and validate data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12).
{ }JSON Formatter
Pretty print JSON with 0-8 spaces or tabs, minify it, or sort object keys recursively. Syntax errors are reported with line and column.
CSVCSV to JSON
Convert CSV into an array of JSON objects using the header row, with delimiter auto-detection, number and boolean typing, and row-level errors.