สถานะการใช้งาน

กำลังตรวจสอบสถานะ...

Endpoints

ทุกตัวเรียกด้วย GET ที่ path api.php ระบุหลักสูตรด้วย ปีหลักสูตร/คำย่อสาขา แทน id ตัวเลข (ดูคำย่อได้จาก /help)

ใช้ทำอะไร เรียกยังไง
คำย่อสาขาทั้งหมด api.php?path=help
ข้อมูลหลักสูตร + รายวิชาทั้งหมด api.php?path=2567/TC
รายวิชาเดียว ตามรหัสวิชา api.php?path=2567/TC/21909-1001

ตัวอย่างการเรียกใช้

จาก JavaScript (fetch):

fetch('https://ct.mt-node.com/course/api.php?path=2567/TC')
  .then(res => res.json())
  .then(data => console.log(data));

จาก command line (curl):

curl "https://ct.mt-node.com/course/api.php?path=2567/TC/21909-1001"