dk_elections_results
Pack: dk-elections · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/dk_elections_results for the schema, then POST the same URL with its arguments for the data.
Final-count results of one Danish national election or referendum by geography level, down to polling-station area: votes, percent and seats per party (or yes/no votes for a referendum), plus eligible voters, turnout and invalid votes. For landsdel and storkreds, omit area to get every unit. For opstillingskreds and afstemningsomraade, omit area to list the units and their ids (there are 92 and about 1,300+), then call again with area. Source: Statistics Denmark. Covers 2009 onward only; an earlier or unknown election returns an explicit not-covered answer.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
election | string | no | Election date YYYY-MM-DD, or a year YYYY. Default: the latest election of the given type (latest overall if no type). |
type | string | no | folketingsvalg, europa-parlamentsvalg or folkeafstemning. Needed when a date has two elections (2009-06-07 and 2014-05-25 each had a European election and a referendum). |
level | string | no | |
area | string | no | Unit name (or part of it) or unit id at that level, e.g. “Københavns Storkreds”, “1. Østerbro”, “10. Kreds, Bülowsvej”. |
within | string | no | Optional parent unit name or id, to disambiguate area names that occur under more than one parent. |
Example call
Arguments
{
"election": "2026-03-24",
"level": "storkreds",
"area": "Københavns Storkreds"
}
curl
curl -X POST https://gateway.pipeworx.io/dk-elections/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dk_elections_results","arguments":{"election":"2026-03-24","level":"storkreds","area":"Københavns Storkreds"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dk_elections_results', {
"election": "2026-03-24",
"level": "storkreds",
"area": "Københavns Storkreds"
});
Response shape
| Field | Type | Description |
|---|---|---|
source | string | |
window | string | |
election | string | |
date | string | |
type | string | |
data_as_of | string | |
level | string | |
results | array |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string"
},
"window": {
"type": "string"
},
"election": {
"type": "string"
},
"date": {
"type": "string"
},
"type": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"level": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"area": {
"type": "object",
"properties": {
"level": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": true
},
"status": {
"type": "string"
},
"last_corrected": {
"type": "string"
},
"eligible_voters": {
"type": "number"
},
"turnout_pct": {
"type": "number"
},
"valid_votes": {
"type": "number"
},
"blank_votes": {
"type": "number"
},
"other_invalid_votes": {
"type": "number"
},
"total_invalid_votes": {
"type": "number"
},
"votes_cast": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"party": {
"type": "string"
},
"letter": {
"type": "string"
},
"votes": {
"type": "number"
},
"pct": {
"type": "number"
},
"seats": {
"type": "null"
},
"constituency_seats": {
"type": "null"
},
"compensatory_seats": {
"type": "null"
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the dk-elections pack
{
"mcpServers": {
"dk-elections": {
"url": "https://gateway.pipeworx.io/dk-elections/mcp"
}
}
}
See Getting Started for client-specific install steps.