Usage Overview
View this page as MarkdownYou can use 🗄️ Politigraph to access the data you need in 3 ways
1. GraphQL API
Section titled “1. GraphQL API”💻 — Query → 🗄️ — Data → 💻Best for integrating Politigraph data into a website, application, or other workflow by writing a GraphQL query and sending it to the API to fetch the data you need.
2. Web Tools
Section titled “2. Web Tools”Best for pulling data out of Politigraph with a UI that helps you build queries, view results, and download the data right away without writing any code. There are 2 tools to choose from.
2.1 Query Builder 🏗️
Section titled “2.1 Query Builder 🏗️”👦 — Pick the data → 🏗️ — Query → 🗄️ — Data → 🏗️ — Result → 👦Best for people just getting started with Politigraph. Simply click to pick the data you want to build a GraphQL query and view the result with a Visualization.
2.2 GraphQL Playground 🛝
Section titled “2.2 GraphQL Playground 🛝”👦 — Write Query → 🛝 — Query → 🗄️ — Data → 🛝 — Result → 👦For more advanced users. Write more complex queries and use the full power of GraphQL.
3. Use It with AI 🤖
Section titled “3. Use It with AI 🤖”Best for pulling data out of Politigraph to answer a question or help analyze it, without writing a GraphQL query yourself. AI can help in 2 ways, through llms.txt and MCP.
3.1 Have AI Write the GraphQL Query with llms.txt
Section titled “3.1 Have AI Write the GraphQL Query with llms.txt”👦 — Ask (Prompt) → 🤖 — Drafts the query → 👦 — Build Query → 🛝 — Query → 🗄️ — Data → 🛝 — Result → 👦Best for users of web AI chat, which may be limited in calling external data. You need to run the query AI drafts in the GraphQL Playground, as in option 2.2.
3.2 Let AI Fetch the Data Directly Through MCP
Section titled “3.2 Let AI Fetch the Data Directly Through MCP”👦 — Ask (Prompt) → 🤖 — Query → 🗄️ — Analyzes data → 🤖 — Answer → 👦Best for an on-device AI agent that supports connecting to external systems through the Model Context Protocol (MCP). The agent can answer with the results right away.

