Skip to content
ไทย

Our API adheres to the GraphQL standard, which you can query at https://politigraph.wevis.info/graphql through a GraphQL Client or HTTP Request

We also provide

  • GraphQL Playground to try building various queries and explore the results
  • Explore the data through interactive visualization

We provide two interfaces for AI coding agent or chatbot.

Our documentation are published as machine-readable plain text following the llms.txt convention:

  • /llms.txt: an index of every documentation page and resource, with links
  • /llms-full.txt: the entire documentation plus the full GraphQL schema in a single file
  • /schema.graphql: the complete GraphQL schema (SDL)

Give your agent https://politigraph.wevis.info/llms.txt to let it pick what it needs, or https://politigraph.wevis.info/llms-full.txt to hand it everything at once.

Example prompt
Understand Politigraph via https://politigraph.wevis.info/llms.txt, then find which representative was absent from the most vote events in the current representative term. Break down the query you sent and the result you got from Politigraph.

If your agent speaks the Model Context Protocol, connect it to our MCP endpoint at https://politigraph.wevis.info/mcp instead. No authentication or API key is required.

MCP client configuration
{ "type": "http", "url": "https://politigraph.wevis.info/mcp" }

An agent on your machine can read our documentation and send the query itself, so it can answer with real data. A chatbot in the browser can only read the documentation and help you write a query, but you have to run it yourself in the GraphQL Playground. Connect the chatbot to our MCP server if you want it to return real data.

Providerllms.txtMCP server
ChatGPTReads it, drafts queriesCustom connector in developer mode, on paid plans
ClaudeReads it, drafts queriesCustom connector on every plan, web and desktop, one connector when on free
GeminiReads it, drafts queriesCustom app in Spark on AI Pro and Ultra, or through an admin on Business
PerplexityReads it, drafts queriesCustom remote connector, on paid plans
Microsoft CopilotReads it, drafts queriesOnly through an agent you build in Copilot Studio
Clientllms.txtMCP server
Claude CodeReads it and runs queriesYes
Codex CLINeeds network_access = trueYes
Gemini CLIReads it and runs queriesYes, configured under httpUrl
CursorReads it and runs queriesYes
VS Code with GitHub CopilotReads it and runs queriesYes

Last checked on 7 September 2026

Most data from the Politigraph API is publicly accessible and does not require authentication, with the following exceptions:

  • Data with the field publish_status that does not have the value PUBLISHED will be hidden from the response because it is under review and not yet ready for disclosure.
  • Any GraphQL mutation, as we prevent external parties from modifying data on our system.

Access to both of these exceptions is strictly reserved for the WeVis system administration team.

To ensure fair usage and protect the API from abuse, we enforce the following limits on GraphQL operations, both through GraphQL endpoint and MCP:

  • Rate limit: 30 requests per 10 seconds
  • Batching: 5 operations per batched request
  • Aliases: 120 aliases per operation
  • Depth: 10 levels of nested operation
  • Tokens: 10,000 tokens per operation

Exceeding these limits will result in an error response.

Certain types of data, such as “People” and individual “Votes”, contain a large number of nodes within the system. We must limit the number of nodes returned to the user to no more than 1,000 nodes per query. If you need to retrieve more data than this limit allows, please read more about using Pagination on GraphQL.

Regarding the data, the team intends to open it as Open Data under the Attribution-NonCommercial 4.0 International terms. This means you can use, modify, and build upon the data, but it cannot be used for commercial purposes or to seek profit from the work, and credit must be given to WeVis.

Regarding the source code, the team intends to develop every project as Open Source under the Attribution-NonCommercial-ShareAlike 4.0 International terms. This means you can use, modify, and build upon the work, but it cannot be used for commercial purposes or to seek profit from the work. You must provide notice and credit to the work’s owner, and the resulting work must be under the same Creative Commons license conditions as the original. WeVis Ltd. and Punch Up Ltd. are joint licensors.