Introduction
View this page as MarkdownThe WeVis team has been working with data related to Thai politics for many years. We found that Thai open data is scattered, lacks standardized collection sources, and is often in difficult-to-use formats such as PDFs. Therefore, we created “Politigraph” to elevate the standards of Open Data and Open API in Thailand.
System Structure
Section titled “System Structure”For data that the government publishes through official online channels in a format that supports regular collection, we use an Automation System to collect and convert the data into a machine-readable format, with a team reviewing its accuracy.
For data that the government does not publish through a regular channel or update pattern, we collect and update it on an ad-hoc basis as the relevant situation arises.
See the full list of regularly updated and ad-hoc data at Data Sources and Limitations
graph TD
A[Official Government Websites] -->|Pulled and converted by| B[Automation System]
D[Other Sources] -->|Pulled and converted by| E[Ad-hoc Research Team]
B -->|Input| F
E -->|Input| F
subgraph P[Politigraph]
F[Accuracy Review Team] --> G[Published]
end
G -->|Output| H[Parliament Watch]
G -->|Output| I[Other Projects]
G -->|Output| J[Interested Users]
G -->|Output| K[AI Agent]
style P fill:#1c7ed620,stroke:#1c7ed6,stroke-width:1px
We intend to open Politigraph as a public database, allowing users, various projects and AI agents to utilize the data. We believe that effective open data fosters innovation, supports civic participation, and builds a strong democratic society.
Data in Graph Format
Section titled “Data in Graph Format”Politigraph store the data in the “Graph” structure which consists of
-
“Node” representing each entity in the database (has circle symbol). Each node have they own data called “property” such as a node representing person might have properties of first name, last name, birthdate, etc.
-
“Relationship” or sometimes called edge (has arrow symbol) representing a relationship between two nodes.
graph TD A((Node A)) -->|Relationship| B((Node B))
Due to the large number of nodes and relationships in Politigraph, we need to extract data for each point of interest. We call the code writing process to select nodes and relationships of interest “query” and the returned data “response”, which is in JSON format: machine-readable and convenient for further use. However, to make it easier to visualize, we will visualize the response in this documentation in the form of a graph.
For example, if we want to know “Which vote event did Anutin Charnvirakul were agreeing with?” We can query a node representing him and the relationships that lead to the votes he were agreeing and the vote event.
บุคคลที่เกี่ยวข้องทางการเมือง เช่น สมาชิกสภา สมาชิกพรรคการเมือง ฯลฯ
- id: 4cc8dfaf-e5ce-41f4-94d3-53bf858308b4
- name: อนุทิน ชาญวีรกูล
- name_en: Anutin Charnvirakul
- image:

- votes:
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
- Agree
*Only showing nodes, properties, and relationships from the query see full schema
query People { people( where: { firstname_en: { eq: "Anutin" } lastname_en: { eq: "Charnvirakul" } } ) { id name name_en image votes(where: { option: { eq: "เห็นด้วย" } }) { id option_en vote_event { id title nickname result start_date end_date } } }}{ "data": { "people": [ { "__typename": "Person", "id": "4cc8dfaf-e5ce-41f4-94d3-53bf858308b4", "name": "อนุทิน ชาญวีรกูล", "name_en": "Anutin Charnvirakul", "image": "https://politigraph.wevis.info/assets/people/อนุทิน-ชาญวีรกูล.webp", "votes": [ { "__typename": "Vote", "id": "b95760a5-f4c3-4f90-a044-62d5eb07b9da", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "265b9364-aa36-4fe5-b0ca-8bc906117e5f", "title": "พระราชกำหนดให้อำนาจกระทรวงการคลังกู้เงินเพื่อแก้ไข ปัญหาผลกระทบจากสถานการณ์วิกฤตด้านพลังงานและ สร้างการเปลี่ยนผ่านด้านพลังงานของประเทศ พ.ศ. 2569", "nickname": null, "result": null, "start_date": "2026-08-26", "end_date": "2026-08-26" } }, { "__typename": "Vote", "id": "9456c5ef-be53-4282-b58f-fe5e3e66f111", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "8b88f33d-aed2-4ed8-9517-a297695c1d07", "title": "ร่างพระราชบัญญัติวิธีพิจารณาคดีค้ามนุษย์ (ฉบับที่ ..) พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2026-10-21", "end_date": "2026-10-21" } }, { "__typename": "Vote", "id": "2265408e-ee2b-49e6-b697-9e456a46f6db", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "d122a8bb-97e1-4a36-ab13-817aa6c173ec", "title": "ร่างพระราชบัญญัติจัดตั้งศาลแรงงานและวิธีพิจารณาคดีแรงงาน (ฉบับที่ ..) พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2026-10-21", "end_date": "2026-10-21" } }, { "__typename": "Vote", "id": "40eb918d-0478-4c58-8f8e-3250c073cb06", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "bef07ccd-caaf-46de-9b1e-cb64adb32eba", "title": "ร่างพระราชบัญญัติความรับผิดเพื่อความชำรุดบกพร่องของสินค้า พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2026-06-24", "end_date": "2026-06-24" } }, { "__typename": "Vote", "id": "fccf8c03-ddde-4284-a815-64feb4f758df", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "c5020633-bc5d-4e5e-a62f-2b5f8fa77c93", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. ๒๕๖๗ ซึ่งคณะกรรมาธิการวิสามัญพิจารณาเสร็จแล้ว", "nickname": "ร่าง พ.ร.บ. งบประมาณ 2567 (วาระ 3)", "result": "ผ่าน", "start_date": "2024-03-22", "end_date": "2024-03-22" } }, { "__typename": "Vote", "id": "5988f916-a50d-4331-97f3-28d49d7164a1", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "cfe71449-2dbe-4674-add8-0bdfac93d891", "title": "ร่างพระราชบัญญัติอาสาสมัครสาธารณสุขประจำหมู่บ้าน พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2025-09-05", "end_date": "2025-09-05" } }, { "__typename": "Vote", "id": "990f0234-30fb-4bde-8126-f0212fd53538", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "18c9a969-756a-49b6-a927-a52922e58f86", "title": "ร่างพระราชบัญญัติองค์กรจัดสรรคลื่นความถี่และกำกับการประกอบกิจการวิทยุกระจายเสียง วิทยุโทรทัศน์ และกิจการโทรคมนาคม (ฉบับที่ ..) พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2025-09-05", "end_date": "2025-09-05" } }, { "__typename": "Vote", "id": "1cffb467-ee37-4215-877b-6d1e22dcf200", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "e38ffbce-8a25-482d-a110-49045ee454fd", "title": "ร่างพระราชบัญญัติการประกอบกิจการกระจายเสียงและกิจการโทรทัศน์ (ฉบับที่ ..) พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2025-09-05", "end_date": "2025-09-05" } }, { "__typename": "Vote", "id": "78b7458d-05eb-4078-93a4-544bbfd8743f", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "73347889-f837-435e-ad5f-423ee8923d7a", "title": "ร่างพระราชบัญญัติการรายงานและเปิดเผยข้อมูลการปล่อยและเคลื่อนย้ายสารมลพิษ พ.ศ. .... วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2025-09-05", "end_date": "2025-09-05" } }, { "__typename": "Vote", "id": "3fa6beb7-26cc-4abc-b244-2270c8c2c67e", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "3bfeee27-116b-40d0-9cfa-e61c09ea01cd", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2566", "nickname": "ร่าง พ.ร.บ. งบประมาณ 2566 (วาระ 3)", "result": null, "start_date": "2022-08-23", "end_date": "2022-08-23" } }, { "__typename": "Vote", "id": "6528ad1c-b938-44b5-8d12-138a2e1f244a", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "465de12e-5f5f-42ad-a3fe-4269520fdc9c", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2565", "nickname": "ร่าง พ.ร.บ. งบประมาณ 2565 (วาระ 3)", "result": null, "start_date": "2021-08-21", "end_date": "2021-08-21" } }, { "__typename": "Vote", "id": "8368ed80-8756-4c51-9fb8-4beae629c0f7", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "066eed5a-812e-4808-b3d4-f2c439f61605", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2565", "nickname": "ร่าง พ.ร.บ. งบประมาณ 2565 (วาระ 1)", "result": null, "start_date": "2021-06-02", "end_date": "2021-06-02" } }, { "__typename": "Vote", "id": "4cb81dbf-2422-42b5-bef7-1dab775cf370", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "d92c13ee-adc0-4285-a5e2-7f03b65a4942", "title": "ร่างพระราชบัญญัติยาเสพติดให้โทษ", "nickname": "ร่าง พ.ร.บ. ยาเสพติดให้โทษ (วาระ 1)", "result": null, "start_date": "2020-12-16", "end_date": "2020-12-16" } }, { "__typename": "Vote", "id": "4c3f49f0-c708-4f81-ba7a-a2afa1a3bed3", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "2a26a32f-ceb8-4a4c-95c5-ef75158e8cc1", "title": "ร่างพระราชบัญญัติหอการค้า", "nickname": "ร่าง พ.ร.บ. หอการค้า (วาระ 1)", "result": null, "start_date": "2020-11-26", "end_date": "2020-11-26" } }, { "__typename": "Vote", "id": "8ca55ee6-53c2-4385-bafb-dc8ca5da431d", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "8e3a7bcd-6531-45c9-b532-1a7e7f8785fb", "title": "ร่างพระราชบัญญัติปรับปรุงกระทรวง ทบวง กรม (วาระ 1)", "nickname": "ร่าง พ.ร.บ. ปรับปรุงกระทรวง ทบวง กรม (วาระ 1)", "result": "ผ่าน", "start_date": "2020-08-04", "end_date": "2020-08-04" } }, { "__typename": "Vote", "id": "13d52b18-f5bd-429d-9d04-e5ffd621638e", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "d0b893a4-98d8-491a-bf77-444c9c2a6415", "title": "ร่างพระราชบัญญัติจัดตั้งศาลปกครองและวิธีพิจารณาคดีปกครอง", "nickname": "ร่าง พ.ร.บ. จัดตั้งศาลปกครองและวิธีพิจารณาคดีปกครอง (วาระ 1)", "result": null, "start_date": "2020-07-23", "end_date": "2020-07-23" } }, { "__typename": "Vote", "id": "d4be24d4-9ad5-4994-89ee-f11f7231486e", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "abc55d0e-313d-4644-bee3-6c50500773c2", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2564 (วาระ 1)", "nickname": "ร่าง พ.ร.บ. งบประมาณ 2564 (วาระ 1)", "result": "ผ่าน", "start_date": "2020-07-03", "end_date": "2020-07-03" } }, { "__typename": "Vote", "id": "bd5e8068-0f35-4c6b-ac44-44fa29a58f48", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "9ea86e17-bc3b-4f21-8195-d4a753d83cc7", "title": "ร่างพระราชบัญญัติโอนงบประมาณรายจ่าย", "nickname": "ร่าง พ.ร.บ. โอนงบประมาณรายจ่าย (วาระ 1)", "result": "ผ่าน", "start_date": "2020-06-04", "end_date": "2020-06-04" } }, { "__typename": "Vote", "id": "5b2b5408-2fcb-4114-8716-0d70eeb172b5", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "b8b0694c-0e98-47de-a8a2-529c17bb8fcf", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. 2563", "nickname": "ร่าง พ.ร.บ. งบประมาณ 2563 (วาระ 3) รอบที่ 1", "result": null, "start_date": "2020-01-11", "end_date": "2020-01-11" } }, { "__typename": "Vote", "id": "ba326350-7348-40b7-bc35-33cb768c8a23", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "94b6571b-6981-4f73-ad53-04e2e81c4d17", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. ๒๕๖๖ วาระที่ ๑", "nickname": null, "result": "ผ่าน", "start_date": "2022-05-03", "end_date": "2022-05-03" } }, { "__typename": "Vote", "id": "84d5e18d-6a74-4aec-93fa-073d9f581817", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "a55d0ad7-1211-4a21-a3cc-1f9c4f8f7f0d", "title": "ร่างพระราชบัญญัติว่าด้วยการปรับเป็นพินัย พ.ศ. …. วาระที่ ๑", "nickname": "ร่าง พ.ร.บ. การปรับเป็นพินัย (วาระ 1)", "result": "ผ่าน", "start_date": "2022-02-08", "end_date": "2022-02-08" } }, { "__typename": "Vote", "id": "0aae9306-9368-49ad-a72b-876a55760d81", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "2a6f77d9-81a1-4042-93ab-9ca9ecd8c763", "title": "ร่างพระราชบัญญัติควบคุมยุทธภัณฑ์ (ฉบับที่ ..) พ.ศ. .... ซึ่งคณะกรรมาธิการวิสามัญพิจารณาเสร็จแล้ว วาระที่ ๓", "nickname": null, "result": null, "start_date": "2022-01-19", "end_date": "2022-01-19" } }, { "__typename": "Vote", "id": "7ed52899-04a9-4e55-9ba9-20c97fca96a1", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "6392f04e-69c4-4e62-8a55-40045bf2aa91", "title": "ร่างพระราชบัญญัติกัญชา กัญชง พ.ศ. ....", "nickname": null, "result": null, "start_date": "2022-06-08", "end_date": "2022-06-08" } }, { "__typename": "Vote", "id": "7a8bf3cb-8a85-4de9-b81f-57489ad875b0", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "cfa662e2-41ad-4026-8ae9-6c4b704b6cb5", "title": "ร่างพระราชบัญญัติกองทุนเงินให้กู้ยืมเพื่อการศึกษา (ฉบับที่ ..) พ.ศ. …. วาระที่ ๑", "nickname": null, "result": null, "start_date": "2022-01-25", "end_date": "2022-01-25" } }, { "__typename": "Vote", "id": "19acdece-9d2f-4cb5-b9ca-efbb9f962136", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "f5fba3f4-67f0-4b52-b4b3-9f044d32f6a5", "title": "ร่างพระราชบัญญัติยกเลิกกฎหมายบางฉบับที่หมดความจำเป็นหรือซ้ำซ้อนกับกฎหมายอื่น พ.ศ. .... ซึ่งคณะกรรมาธิการวิสามัญพิจารณาเสร็จแล้ว วาระที่ ๓", "nickname": null, "result": null, "start_date": "2022-01-19", "end_date": "2022-01-19" } }, { "__typename": "Vote", "id": "240735aa-2ba6-4be5-82be-0e71cd3236d2", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "6fc457fe-4bf9-431a-a3a6-ccde30c47dae", "title": "ร่างพระราชบัญญัติบริษัทมหาชนจำกัด (ฉบับที่ ..) พ.ศ. .... วาระที่ ๑", "nickname": null, "result": null, "start_date": "2021-11-24", "end_date": "2021-11-24" } }, { "__typename": "Vote", "id": "ad062e5d-5da2-4a43-908d-a23667860d9b", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "f04a92e3-71e3-4f6b-9ccf-59b9e03e830f", "title": "ร่างพระราชบัญญัติสร้างเสริมสังคมสันติสุข พ.ศ. .... ซึ่ง นายปรีดา บุญเพลิง กับคณะ เป็นผู้เสนอ", "nickname": null, "result": "ผ่าน", "start_date": "2025-07-16", "end_date": "2025-07-16" } }, { "__typename": "Vote", "id": "f1fad3cb-2f89-48dc-bf7e-0f546b78a0c8", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "d3092abc-fc61-4118-b2af-b0027bcda62c", "title": "ร่างพระราชบัญญัติสร้างเสริมสังคมสันติสุข พ.ศ. .... ซึ่ง นายอนุทิน ชาญวีรกูล กับคณะ เป็นผู้เสนอ", "nickname": null, "result": "ผ่าน", "start_date": "2025-07-16", "end_date": "2025-07-16" } }, { "__typename": "Vote", "id": "e3d65832-77b5-4831-b507-d81525dfa9aa", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "4b9b1521-4591-4d93-8360-88ffd47276d6", "title": "ร่างพระราชบัญญัติสร้างเสริมสังคมสันติสุข พ.ศ. .... ซึ่ง นายวิชัย สุดสวาสดิ์ กับคณะ เป็นผู้เสนอ", "nickname": null, "result": "ผ่าน", "start_date": "2025-07-16", "end_date": "2025-07-16" } }, { "__typename": "Vote", "id": "283c5f93-c42c-4317-8afe-d170ca9beddc", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "ad8b6732-28dd-4476-9682-9e8fc3165c8c", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. ๒๕๖๗", "nickname": null, "result": "ผ่าน", "start_date": "2024-01-03", "end_date": "2024-01-03" } }, { "__typename": "Vote", "id": "6cac00cf-4ceb-460f-8885-27784dae9fb6", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "14e953ff-d04d-4368-8e2f-4853dcbeebe8", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. ๒๕๖๙", "nickname": null, "result": "ผ่าน", "start_date": "2025-05-31", "end_date": "2025-05-31" } }, { "__typename": "Vote", "id": "818d9bd4-4d63-49f6-9809-8b03eb5d642d", "option_en": "Agree", "vote_event": { "__typename": "VoteEvent", "id": "21e7395c-1d04-4069-b180-1bf5735adfea", "title": "ร่างพระราชบัญญัติงบประมาณรายจ่ายประจำปีงบประมาณ พ.ศ. ๒๕๖๘", "nickname": null, "result": "ผ่าน", "start_date": "2024-06-21", "end_date": "2024-06-21" } } ] } ] }}You can also visit Explore to browse the data in Politigraph without writing any code.

