# School Year Calendar API

> Vietnam school-year dates by province and level: back-to-school, opening, semester ends, Tết holiday for pupils, "is it a school day?", .ics export.

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

Combines the national framework of Decision 2308/QĐ-BGDĐT (6/8/2026, from 2026–2027 on: opening ceremony on 5/9, pupils back at most 1 week before — 2 weeks for grades 1, 9 and 12 —, semester I ends before 18/1, the year ends before 31/5, 35 weeks, THPT graduation exam on 11–12/6) with the provincial school-year decisions published so far: back-to-school dates per level and for the early grades, semester dates and the Tết holiday for pupils where set.

`province` + `level` (`preschool`, `primary`, `lower_secondary`, `upper_secondary`) returns the dates, the decision and its source, and a `status`: `official`, `partial` (some dates such as Tết not published yet) or `framework_only`. `date=` answers whether pupils go to school that day (school year, Tết holiday, public holidays of the Labour Code, Sundays; Saturdays depend on the school). `format=ics` exports the milestones as a calendar. Without `province` the list of 34 provinces with their status is returned; `coverage` counts the provinces entered.

Provinces publish their decisions in August and the Tết dates between November and January; the table is reviewed monthly during the school year.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `province` | query | string | no |  | Province name or code (34 provinces); empty = list all. |
| `level` | query | string | no | `primary` | `preschool`, `primary`, `lower_secondary`, `upper_secondary`. |
| `year` | query | string | no | `2026-2027` | School year (2026-2027 … 2030-2031; provincial dates for 2026-2027). |
| `date` | query | string | no |  | Check whether pupils go to school that day. |
| `format` | query | string | no |  | `ics` to download the milestones. |

## Example request

```bash
curl "https://apibox.io.vn/v1/vn-school-calendar?province=C%E1%BA%A7n%20Th%C6%A1&level=upper_secondary&date=2027-02-05" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "school_year": "2026-2027",
  "framework": {
    "decision": "QĐ 2308/QĐ-BGDĐT (06/8/2026)",
    "opening": "2026-09-05",
    "back_earliest": "2026-08-29",
    "back_earliest_grades_1_9_12": "2026-08-22",
    "hk1_end_before": "2027-01-18",
    "year_end_before": "2027-05-31",
    "completion_recognition_before": "2027-06-30",
    "admissions_done_before": "2027-07-31",
    "thpt_exam": [
      "2027-06-11",
      "2027-06-12"
    ],
    "weeks": {
      "total": 35,
      "hk1": 18,
      "hk2": 17
    }
  },
  "coverage": {
    "provinces_with_decision": 5,
    "provinces_with_tet_dates": 2,
    "total_provinces": 34,
    "school_year": "2026-2027"
  },
  "legal": [
    {
      "ref": "Quyết định 2308/QĐ-BGDĐT ngày 06/8/2026 ban hành Khung kế hoạch thời gian năm học (áp dụng từ năm học 2026–2027)",
      "effective_from": "2026-08-06"
    }
  ],
  "reviewed": "2026-11-11",
  "disclaimer": "Reference only; each school publishes its own timetable. Check the provincial Department of Education.",
  "disclaimer_vi": "Thông tin tham khảo; lịch cụ thể do Sở GD&ĐT và nhà trường công bố.",
  "province": "Thành phố Cần Thơ",
  "province_code": "92",
  "level": "upper_secondary",
  "level_vi": "Trung học phổ thông",
  "status": "official",
  "decision": "Quyết định 4103/QĐ-UBND (8/2026) — Cần Thơ",
  "source": "https://thsp.ctu.edu.vn/images/upload/DOANTHANHNIEN/Quyt-nh-4103-K-hoch-thi-gian-nm-hc-2026-2027-thnh-ph-Cn-Th.pdf",
  "dates": {
    "back_to_school": "2026-08-29",
    "back_to_school_early_grades": "2026-08-22",
    "early_grades": "lớp 12",
    "opening": "2026-09-05",
    "hk1_start": "2026-09-07",
    "hk1_end_before": "2027-01-17",
    "hk2_start": "2027-01-18",
    "hk2_end_before": "2027-05-31",
    "year_end_before": "2027-05-31"
  },
  "tet_holiday": {
    "from": "2027-02-01",
    "to": "2027-02-10",
    "days": 10
  },
  "check": {
    "date": "2027-02-05",
    "school_day": false,
    "reason": "Tết holiday for pupils.",
    "holiday": {
      "key": "tet",
      "name_vi": "Tết Nguyên đán",
      "name_en": "Lunar New Year (Tết)",
      "source": "estimated"
    }
  }
}
```

## Use cases

- Show the Tết break and term dates in a school or contact-book app
- Plan extra classes and tutoring around the school calendar
- Let a family calendar subscribe to the school-year milestones (.ics)
- Answer "do pupils in my province go to school on this day?" in a chatbot

## FAQ

### Which provinces are covered?

All 34 get the national framework; provinces whose decisions are entered (coverage field) also get their own dates and Tết holiday. More are added as decisions are published.

### When is the Tết holiday 2027 for pupils?

It depends on the province: e.g. Cần Thơ 1–10/2/2027, Hà Tĩnh 2–12/2/2027; provinces that have not decided yet show null with a note.

### Are Saturdays school days?

It depends on each school (many teach 5 days a week), so the date check returns null with a note for Saturdays.
