# Politigraph > Politigraph is a public GraphQL API of Thai political open data - politicians, political parties, parliamentary positions, votes and bills - stored as a graph and maintained by WeVis. - Query the API by sending a POST request to https://politigraph.wevis.info/graphql, or explore it interactively in the playground at the same URL. - MCP-capable agents can connect to https://politigraph.wevis.info/mcp instead, an anonymous read-only Streamable HTTP endpoint with tools to read the schema and run queries. - If you cannot run the query yourself, hand the user a link to https://politigraph.wevis.info/playground?query=URL_ENCODED_GRAPHQL instead. It opens the playground with that query filled in, ready to run. Add `&variables=URL_ENCODED_JSON` only if the query really needs variables. - Every page below is also available as plain markdown by appending `.md` to its URL. - Read the schema, in full or just the types involved, before writing any query, and never guess type, field or enum names. If you cannot read the schema, a query fails, or the data does not answer the question, tell the user plainly what went wrong instead of guessing or answering from memory. The complete schema is linked under Reference below. If you cannot open the links on this page, ask the user to copy the contents of https://politigraph.wevis.info/llms-full-th.txt into the chat, and do not write a query until you have the schema. - When you hand a query to the user to copy and run themselves, write it as a single self-contained document with literal values inline in the arguments, and avoid `$variables` or a separate variables object unless they are really necessary. This keeps it simple for the user. When you run the query yourself, use whichever form fits. - When answering about specific nodes, select their `id` and `links { url note }`. Cite the `links` URLs as sources and, when it fits the question, also link the Parliament Watch page given in the node `id` description, built from the returned `id` (URL-encoded). For questions about how a politician voted, link their voting history page (https://parliamentwatch.wevis.info/politicians/{id}/votes). For general questions you can also link Parliament Watch itself: how a bill becomes law (https://parliamentwatch.wevis.info/legislative-process), browsing bills in detail (https://parliamentwatch.wevis.info/bills/explore) or its landing page (https://parliamentwatch.wevis.info). Never invent a URL. - `created_at` and `updated_at` are internal system fields recording when a record was added to or edited in the database. Never use them to answer when something happened; use the domain-specific date fields instead. - These files are the original Thai documentation, the source of truth for the Thai terms used in the data. The English translation is at https://politigraph.wevis.info/llms.txt. ## Docs - [บทนำ](https://politigraph.wevis.info/introduction.md): Politigraph คือ Open API ข้อมูลการเมืองไทยโดย WeVis รวบรวมข้อมูลนักการเมือง พรรคการเมือง การลงมติ และร่างกฎหมายจากแหล่งข้อมูลทางการของภาครัฐ ให้อยู่ในรูปแบบ Machine-Readable - [ที่มาและข้อจำกัดข้อมูล](https://politigraph.wevis.info/data-source.md): รายการข้อมูลทั้งหมดในฐานข้อมูล Politigraph - [นโยบายคุ้มครองข้อมูลส่วนบุคคล](https://politigraph.wevis.info/privacy-policy.md): วิธีที่ Politigraph เก็บรวบรวม ใช้ และคุ้มครองข้อมูลส่วนบุคคลของผู้เข้าชมเว็บไซต์ ผู้ใช้งาน API และ MCP ตลอดจนบุคคลในชุดข้อมูล ## การใช้งาน - [ภาพรวมการใช้งาน](https://politigraph.wevis.info/usage.md): 3 วิธีเข้าถึงข้อมูลการเมืองไทยจาก Politigraph ได้แก่ GraphQL API, เครื่องมือบนเว็บ (Query Builder และ GraphQL Playground) และการใช้งานร่วมกับ AI Agent ด้วย llms.txt และ MCP Server - [GraphQL API](https://politigraph.wevis.info/usage/api.md): วิธี Query ข้อมูลการเมืองไทยจาก Politigraph ผ่าน GraphQL API ด้วย GraphQL Client หรือ HTTP POST Request - [เครื่องมือบนเว็บ](https://politigraph.wevis.info/usage/web-tools.md): วิธีดึงและดาวน์โหลดข้อมูลการเมืองไทยจาก Politigraph ผ่าน Query Builder และ GraphQL Playground บนหน้าเว็บ โดยไม่ต้องเขียนโค้ด - [ใช้งานร่วมกับ AI](https://politigraph.wevis.info/usage/ai.md): วิธีใช้ข้อมูลการเมืองไทยจาก Politigraph ร่วมกับ AI ด้วย llms.txt และ MCP Server พร้อมเปรียบเทียบข้อจำกัดของ ChatGPT, Claude, Gemini และ AI Agent อื่นๆ - [เงื่อนไขการใช้งาน](https://politigraph.wevis.info/usage/terms.md): ข้อจำกัดการเข้าถึงข้อมูล การจำกัดจำนวนคำขอ ความลึก Alias Token และจำนวน Node ของ Politigraph API รวมถึงสัญญาอนุญาตของข้อมูลและ Source Code ภายใต้ CC BY-NC 4.0 และ CC BY-NC-SA 4.0 ## โครงสร้างของข้อมูล - [ภาพรวมโครงสร้างข้อมูล](https://politigraph.wevis.info/schema.md): ภาพรวมโครงสร้างข้อมูล (Schema) ของ Politigraph ที่ออกแบบจากมาตรฐาน Popolo ประกอบด้วย Node และ Relationship ของบุคคล องค์กร การลงมติ ร่างกฎหมาย และอื่นๆ - [องค์กร](https://politigraph.wevis.info/schema/organization.md): โครงสร้างข้อมูลองค์กร (Organization) ใน Politigraph เช่น รัฐสภา สภาผู้แทนราษฎร วุฒิสภา คณะรัฐมนตรี และพรรคการเมือง พร้อมตัวอย่าง GraphQL Query - [การเป็นสมาชิก](https://politigraph.wevis.info/schema/membership.md): โครงสร้างข้อมูลการเป็นสมาชิกและการดำรงตำแหน่งของนักการเมืองในองค์กร (Person, Membership, Post) รวมถึงพรรคร่วมรัฐบาลและฝ่ายค้าน พร้อมตัวอย่าง GraphQL Query - [การลงมติ](https://politigraph.wevis.info/schema/vote-event.md): โครงสร้างข้อมูลการลงมติของ สส. และ สว. (VoteEvent, Vote) ใน Politigraph ตัวเลือกการออกเสียงรายบุคคล และสถานะการเผยแพร่ข้อมูล พร้อมตัวอย่าง GraphQL Query - [การเสนอและพิจารณาร่างกฎหมาย](https://politigraph.wevis.info/schema/bill.md): โครงสร้างข้อมูลร่างกฎหมาย (Bill) ใน Politigraph ครอบคลุมประเภทร่างกฎหมาย ผู้เสนอ กระบวนการนิติบัญญัติ และสถานะปัจจุบัน พร้อมตัวอย่าง GraphQL Query - [ลิงก์อ้างอิง](https://politigraph.wevis.info/schema/link.md): โครงสร้างข้อมูลลิงก์อ้างอิง (Link) ใน Politigraph ที่ใช้ตรวจสอบย้อนกลับไปยังแหล่งข้อมูลต้นทางของบุคคล การดำรงตำแหน่ง ร่างกฎหมาย และการลงมติ พร้อมตัวอย่าง GraphQL Query - [เวลาอัปเดตข้อมูล](https://politigraph.wevis.info/schema/timestamps.md): ใช้ Query timestamps ตรวจสอบว่าข้อมูลใน Politigraph ถูกเปลี่ยนแปลงล่าสุดเมื่อไหร่ และระบบ Automation ดึงข้อมูลการลงมติและร่างกฎหมายสำเร็จล่าสุดเมื่อไหร่ ## บันทึกการเปลี่ยนแปลง - [Changelog](https://politigraph.wevis.info/changelog.md): รายการการเปลี่ยนแปลงที่กระทบการใช้งาน Politigraph API เรียงตามวันที่ รวมถึงการเปลี่ยนแปลงที่ไม่รองรับของเดิมและการเลิกใช้งาน ## Reference - [Complete GraphQL schema](https://politigraph.wevis.info/schema.graphql): full SDL of every node type, property and relationship. Read it before writing queries. ## Optional - [All documentation in one file](https://politigraph.wevis.info/llms-full-th.txt): every page above plus the schema, for one-shot context - [Explore](https://politigraph.wevis.info/explore): interactive graph browser for humans - [Query Builder](https://politigraph.wevis.info/query-builder): point-and-click query builder for humans, with graph view and JSON/CSV download - [Source code](https://github.com/wevisdemo/politigraph): report data errors or issues here