Politica Electoral

by Unknown

Not rated
Website

About

API de datos electorales del mundo democrático: partidos políticos, perfiles ideológicos y programas electorales.

Details

Author
Unknown
Categories
Database, Other, API

A political-data API covering the democratic world: parties, politicians, public figures, events, congressional votes, institutions, parliamentary procedures and political concepts. Available as an MCP (Model Context Protocol) server over HTTP for AI-agent integrations, plus a REST API at/api/v1/*and per-page raw Markdown twins ({any-page}.md).

All content is inSpanish. (An English pilot existed until August 2026; legacy/en/profile URLs now return301to their Spanish twin, every other/en/URL returns404.)

MCP2024-11-05over HTTP (JSON-RPC 2.0).

POST /mcp-server Content-Type: application/json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_parties_list", "arguments": { "country": "es" } } }
# 1. Initialize curl -X POST https://www.politicaelectoral.com/mcp-server \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"my-client","version":"1.0"}}}' # 2. Notify ready (no response expected) curl -X POST https://www.politicaelectoral.com/mcp-server \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"notifications/initialized","params":{}}' # 3. List available tools curl -X POST https://www.politicaelectoral.com/mcp-server \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'

Thecountryargument is always anISO 3166-1 alpha-2code.

The server exposes25 tools, grouped by purpose:

- Discovery & search:summarize_country,search
-
Parties & politicians:get_parties_list,get_party_profile,get_politicians_list,get_politician_profile,compare_parties,compare_politicians
-
Elections:get_elections_list,get_election_regions,get_election_region,get_election_region_parties,get_election_region_party
-
Public figures:get_public_figures_list,get_public_figure
-
Congress votes (Spain):get_votes_list,get_vote
-
Institutions, procedures & concepts:get_institutions_list,get_institution,get_procedures_list,get_procedure,get_political_concepts_list,get_political_concept
-
Events:get_events_list,get_event

All tool examples below use thetools/callJSON-RPC method:

{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "<TOOL>", "arguments": { ... } } }

High-level political summary: head of government, main parties, last/next elections, recent events, totals per resource type.

{ "name": "summarize_country", "arguments": { "country": "es" } }

Free-text cross-resource search (politicians, parties, public figures, events, votes, institutions, procedures, concepts), ranked by score.

{ "name": "search", "arguments": { "country": "es", "q": "sanchez", "limit": 5 } }
{ "name": "get_parties_list", "arguments": { "country": "es" } }

Ideological and historical profile of a party (Markdown).

{ "name": "get_party_profile", "arguments": { "country": "es", "party": "psoe" } }

List of politicians in a country, optionally filtered by party.

{ "name": "get_politicians_list", "arguments": { "country": "es", "party": "psoe" } }

Detailed profile of a politician: trajectory, current role and ideological positioning (Markdown).

{ "name": "get_politician_profile", "arguments": { "country": "es", "politician": "pedro-sanchez" } }

Side-by-side comparison of two parties of the same country.

{ "name": "compare_parties", "arguments": { "country": "es", "party_a": "pp", "party_b": "psoe" } }

Side-by-side comparison of two politicians.

{ "name": "compare_politicians", "arguments": { "country": "es", "politician_a": "pedro-sanchez", "politician_b": "alberto-nunez-feijoo" } }

List of elections available for a country, with type (generales,autonomicas,europeas) and date.

{ "name": "get_elections_list", "arguments": { "country": "es" } }

List of regions (autonomous communities, states, etc.) available for a specific election.

{ "name": "get_election_regions", "arguments": { "country": "es", "election": "generales-2023" } }

Overview landing for a specific election + region: context, participating parties, key data.

{ "name": "get_election_region", "arguments": { "country": "es", "election": "generales-2023", "region": "nacional" } }

List of parties with electoral content for a specific election + region.

{ "name": "get_election_region_parties", "arguments": { "country": "es", "election": "generales-2023", "region": "nacional" } }

Electoral programme summary for a party in a specific election + region (Markdown).

{ "name": "get_election_region_party", "arguments": { "country": "es", "election": "generales-2023", "region": "nacional", "party": "pp" } }

Non-politician public figures with political relevance: monarchs, journalists, business leaders, advisors, judges, prosecutors, etc.

{ "name": "get_public_figures_list", "arguments": { "country": "gb", "kind": "monarca" } }
{ "name": "get_public_figure", "arguments": { "country": "gb", "slug": "king-charles-iii" } }
{ "name": "get_votes_list", "arguments": { "country": "es" } }

Detailed analysis of a vote: result, party-by-party breakdown, context.

{ "name": "get_vote", "arguments": { "country": "es", "vote": "ley-amnistia-2024" } }

State institutions (parliament, government, judiciary, control bodies, advisory bodies).

{ "name": "get_institution", "arguments": { "country": "es", "institution": "tribunal-constitucional" } }

Parliamentary procedures (e.g. investiture, motion of no confidence).

{ "name": "get_procedure", "arguments": { "country": "es", "procedure": "mocion-de-censura" } }

get_political_concepts_list·get_political_concept

Political concepts (separation of powers, D'Hondt method, blank vs null vote, etc.).

{ "name": "get_political_concept", "arguments": { "country": "es", "concept": "division-de-poderes" } }

Major political events: scandals, crises, foreign-policy episodes, constitutional reforms, etc.

{ "name": "get_events_list", "arguments": { "country": "es" } }
{ "name": "get_event", "arguments": { "country": "es", "event": "atentados-11m-2004" } }
get_elections_list(country) → pick election slug get_election_regions(country, election) → pick region slug get_election_region_parties(...) → pick party slug get_election_region_party(...) → programme as Markdown
get_parties_list(country) → pick party slug get_party_profile(country, ...) → ideological profile as Markdown
search(country, q="<term>") → ranked mixed-resource results

Every public page also serves a raw Markdown version by appending.mdto the URL.

/es/{country-es}/partido/{slug}.md → party profile /es/{country-es}/politicos/{slug}.md → politician profile /es/{country-es}/personajes/{slug}.md → public figure profile /es/{country-es}/eventos/{slug}.md → political event /es/{country-es}/votaciones/{slug}.md → Congress vote (Spain) /es/{country-es}/instituciones/{slug}.md → state institution /es/{country-es}/procedimientos/{slug}.md → parliamentary procedure /es/{country-es}/conceptos-politicos/{slug}.md → political concept /es/{country-es}/{election}/{region}.md → election landing /es/{country-es}/{election}/{region}/{party}.md → party programme summary
https://www.politicaelectoral.com/es/espana/politicos/pedro-sanchez.md https://www.politicaelectoral.com/es/reino-unido/personajes/king-charles-iii.md https://www.politicaelectoral.com/es/eeuu/partido/republicano.md

If there is no published.mdfor that slug the URL returns404.

In addition to MCP, the same data is exposed as a REST API rooted at/api/v1/. Spec:/openapi.json. Interactive docs:/api/docs.

# List parties for Spain curl 'https://www.politicaelectoral.com/api/v1/parties?country=es' # Politician profile curl 'https://www.politicaelectoral.com/api/v1/politicians/pedro-sanchez?country=es' # Free-text search curl 'https://www.politicaelectoral.com/api/v1/search?q=sanchez&country=es&limit=5'

countryis always ISO-2.langdefaults toesand is the only supported value (anything else returns400).

Data is sourced from each party's official electoral programmes. Profiles and analysis are generated with AI from public sources. Free use for non-commercial projects with attribution.

Access charity and nonprofit organization data from the IRS database via CharityAPI.org.

Enhanced Medication Information MCP Server

Provides real-time access to FDA drug data, including shortages, labeling, and recalls, via the openFDA API.

A Centralized MCP Server for Fetching Data from Many Countries' Govs

Access NCBI's suite of APIs, including E-utilities, BLAST, PubChem, and PMC services.

Access the ChEMBL chemical database for drug discovery, chemical informatics, and bioactivity research using specialized tools via its REST API.

Access Reactome pathway and systems biology data via its live API.

NIH clinical trials and FDA adverse event reports. 4 MCP tools for health research.

Structured iGaming reference data — slot specs, RTP variants, providers, regulators, news and jobs.

Slingshot MCP introduces Slingshot Aerospace’s space data platform in your AI chat—explore satellites, orbits, and Portal insights through Slingshot’s hosted server.

Access and interact with Allen Institute for Neural Dynamics (AIND) metadata directly within your IDE.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.