{"openapi":"3.1.0","info":{"title":"ชุดข้อมูลการแก้ไขคะแนน ปี 2568","version":"1.0.0","description":"API แบบ static ทุก endpoint เป็นไฟล์ JSON ที่เสิร์ฟจาก CDN ไม่มี rate limit ไม่ต้องใช้ API key และเปิด CORS ให้ทุก origin\n\nเอกสารต้นทางมาจากแหล่งเผยแพร่สาธารณะ ยังไม่ได้รับการยืนยันจากหน่วยงานใด และไม่ได้เป็นการระบุสถานะทางคดี ความผิด หรือคำพิพากษาของบุคคล ชื่อที่คล้ายกันอาจเป็นคนละบุคคล ควรตรวจสอบกับเอกสารต้นฉบับตามเลขหน้าที่ระบุทุกครั้ง","license":{"name":"ดูเงื่อนไขการนำไปใช้","url":"https://260816-karemairodnare.vercel.app/api"}},"servers":[{"url":"https://260816-karemairodnare.vercel.app/api/v1","description":"Production"}],"paths":{"/index.json":{"get":{"summary":"รายการ endpoint ทั้งหมด","description":"จุดเริ่มต้นสำหรับสำรวจ API ให้ URL เต็มของทุก endpoint","responses":{"200":{"description":"สำเร็จ"}}}},"/meta.json":{"get":{"summary":"ข้อมูลกำกับชุดข้อมูล","responses":{"200":{"description":"สำเร็จ"}}}},"/records.json":{"get":{"summary":"รายการทั้งหมด 3963 รายการ","responses":{"200":{"description":"สำเร็จ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCollection"}}}}}}},"/provinces.json":{"get":{"summary":"รายชื่อจังหวัด 77 รายการ","responses":{"200":{"description":"สำเร็จ"}}}},"/provinces/{slug}.json":{"get":{"summary":"รายการในจังหวัดที่ระบุ","parameters":[{"name":"slug","in":"path","required":true,"description":"slug ภาษาไทย ดูค่าที่ใช้ได้จาก /provinces.json","schema":{"type":"string"},"example":"ภูเก็ต"}],"responses":{"200":{"description":"สำเร็จ","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCollection"}}}},"404":{"description":"ไม่พบ slug นี้"}}}},"/districts.json":{"get":{"summary":"รายชื่ออำเภอ 657 รายการ","responses":{"200":{"description":"สำเร็จ"}}}},"/districts/{slug}.json":{"get":{"summary":"รายการในอำเภอที่ระบุ","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"สำเร็จ"},"404":{"description":"ไม่พบ slug นี้"}}}},"/agencies.json":{"get":{"summary":"รายชื่อหน่วยงาน 1945 รายการ","responses":{"200":{"description":"สำเร็จ"}}}},"/agencies/{slug}.json":{"get":{"summary":"รายการในหน่วยงานที่ระบุ","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"สำเร็จ"},"404":{"description":"ไม่พบ slug นี้"}}}}},"components":{"schemas":{"Meta":{"type":"object","required":["version","snapshot","notice"],"properties":{"version":{"type":"integer","example":1},"snapshot":{"type":"string","format":"date","example":"2026-08-23"},"count":{"type":"integer"},"site":{"type":"string","format":"uri"},"notice":{"type":"string","description":"ข้อความกำกับที่ควรแสดงคู่กับข้อมูลเสมอ"}}},"Source":{"type":"object","required":["file","page"],"description":"ที่มาของแถวนี้ในเอกสารต้นฉบับ มีครบทุกแถวเสมอ","properties":{"file":{"type":"string","example":"66_ภูเก็ต.pdf"},"page":{"type":"integer","minimum":1,"example":3}}},"Record":{"type":"object","required":["id","name","province","sources","url"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"maskedId":{"type":"string","description":"ตามรูปแบบที่ปรากฏในเอกสาร ไม่ใช่ตัวระบุบุคคลที่ยืนยันได้เพียงลำพัง"},"scoreChange":{"type":"integer"},"agency":{"type":"string"},"district":{"type":"string"},"province":{"type":"string"},"verificationSource":{"type":"string"},"sources":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/Source"}},"url":{"type":"string","format":"uri","description":"หน้าที่แสดงบริบทครบของรายการนี้"}}},"RecordCollection":{"type":"object","required":["_meta","records"],"properties":{"_meta":{"$ref":"#/components/schemas/Meta"},"records":{"type":"array","items":{"$ref":"#/components/schemas/Record"}}}}}}}