# Speed Limits & Road Signs API

> Maximum / minimum speed by vehicle and road (Circular 38/2024), safe following distance, and ~400 road signs of QCVN 41:2024 with their meaning.

- Endpoint: `GET | POST https://apibox.io.vn/v1/vn-road-rules`
- Category: Data & JSON
- HTML docs: https://apibox.io.vn/docs/vn-road-rules/ (Vietnamese: https://apibox.io.vn/vi/docs/vn-road-rules/)
- Online tool: https://apibox.io.vn/tools/vn-road-rules/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

Speed (`action=speed`): Circular 38/2024/TT-BGTVT (in force 1/1/2025) — built-up areas 60 / 50 km/h (dual carriageway or one-way multi-lane / two-way), outside built-up areas 90 / 80 for cars up to 28 seats and trucks up to 3.5 t, 80 / 70 for larger coaches and trucks, 70 / 60 for buses, semi-trailers, motorcycles and special-purpose cars, 60 / 50 for trailers, tankers and mixers; mopeds and special machinery 40 km/h; four-wheel motor vehicles 30 / 50; expressways 120 maximum, 60 minimum. Signs on the road prevail. `speed_kmh` adds the safe distance of Article 11 (35 m at 60, 55 m to 80, 70 m to 100, 100 m to 120 km/h on a dry road).

Signs (`action=sign`): codes and names of QCVN 41:2024/BGTVT (prohibitory P / DP, warning W, mandatory R / R.E, guide I, expressway IE, auxiliary S) imported from the Official Gazette with the meaning paragraphs of Appendices B–F; search by code (`sign=p102`, `W.201` returns a–d) or by words (`q=cấm đỗ`). Drawings are not included; the group gives shape and colours. Fines: /v1/vn-traffic-fines. Results are reference information computed from the official texts cited in `legal`; they are not legal advice. The `reviewed` date shows when the rules were last checked.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `action` | query | string | no |  | `speed`, `distance` or `sign` (alias `mode`; guessed from the other parameters). |
| `vehicle` | query | string | no |  | `car` (+ `seats`), `truck` (+ `payload_t`), `bus`, `motorcycle`, `moped`, `tractor_semitrailer`, `trailer_towing`, `tanker`, `concrete_mixer`, `special_car`, `special_machine`, `four_wheel_passenger`, `four_wheel_cargo`. |
| `area` | query | string | no | `outside` | `residential` (built-up area), `outside` or `expressway`. |
| `road` | query | string | no | `two_way` | `divided` (dual carriageway / one-way with 2+ lanes) or `two_way`. |
| `speed_kmh` | query | number | no |  | Current speed for the safe distance / over-limit check. |
| `sign` | query | string | no |  | Sign code (P.102, w201a, R.E,9a…). |
| `q` | query | string | no |  | Search sign names; `group` filters (prohibitory, warning, mandatory, guide, expressway, auxiliary). |

## Example request

```bash
curl "https://apibox.io.vn/v1/vn-road-rules?vehicle=car&seats=7&area=outside&road=divided&speed_kmh=85" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "vehicle": "car",
  "area": "outside",
  "road": "divided",
  "classification": "7 seats (≤ 28)",
  "max_speed_kmh": 90,
  "min_speed_kmh": null,
  "ref": "Điều 6 khoản 2 Bảng 2 dòng 1",
  "speed_kmh": 85,
  "over_limit_kmh": 0,
  "safe_distance": {
    "min_m": 70,
    "band": "80 < V ≤ 100"
  },
  "notes": [
    "A speed sign on the road prevails over these defaults (Điều 4 khoản 2).",
    "Fines for speeding: /v1/vn-traffic-fines."
  ],
  "legal": [
    {
      "ref": "Thông tư 38/2024/TT-BGTVT quy định về tốc độ và khoảng cách an toàn của xe cơ giới, xe máy chuyên dùng tham gia giao thông trên đường bộ (Điều 6–9, 11), sửa đổi bởi TT 09/2025/TT-BXD",
      "effective_from": "2025-01-01"
    },
    {
      "ref": "QCVN 41:2024/BGTVT Quy chuẩn kỹ thuật quốc gia về báo hiệu đường bộ (Thông tư 51/2024/TT-BGTVT)",
      "effective_from": "2025-01-01",
      "url": "https://congbao.chinhphu.vn/noi-dung-van-ban-so-51-2024-tt-bgtvt-43387",
      "status_note": "A replacement QCVN 41:2026/BXD was published as a draft in September 2026 (not in force)."
    }
  ],
  "disclaimer": "Reference only, not legal advice; check the official text and the competent authority.",
  "disclaimer_vi": "Thông tin tham khảo, không phải tư vấn pháp lý; hãy đối chiếu văn bản chính thức và hỏi cơ quan có thẩm quyền.",
  "reviewed": "2026-11-15"
}
```

## Use cases

- Show the legal speed in a navigation or dashcam app
- Explain a sign code in a driving-test study app
- Compute the safe distance to display at a given speed
- Build sign glossaries for driver training

## FAQ

### What is the speed limit for a car outside towns?

90 km/h on a dual carriageway, 80 km/h on a two-way road, for cars up to 28 seats (Circular 38/2024, Table 2), unless signs say otherwise.

### How far behind should I stay at 100 km/h?

At least 70 m on a dry road (80 < V ≤ 100 km/h); more in rain or fog.

### What does sign P.130 mean?

No stopping and no parking on the side of the road where the sign stands (QCVN 41:2024).
