dk_elections_turnout
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_turnout for the schema, then POST the same URL with its arguments for the data.
Voter turnout for Danish national elections: eligible voters, votes cast, turnout percent and invalid votes, for the whole country or one named area. Give election for one election; omit it for turnout across all elections of the type (default Folketing) from 2009. Source: Statistics Denmark. Before 2009 is not covered.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
election | string | no | Election date YYYY-MM-DD or year. Omit for all elections of the type. |
type | string | no | folketingsvalg (default when election is omitted), europa-parlamentsvalg or folkeafstemning. |
level | string | no | |
area | string | no | Unit name or part of it. Required when level is not country. |
within | string | no | Optional parent unit name or id, to disambiguate. |
Example call
Arguments
{
"type": "folketingsvalg"
}
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_turnout","arguments":{"type":"folketingsvalg"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dk_elections_turnout', {
"type": "folketingsvalg"
});
Response shape
| Field | Type | Description |
|---|---|---|
source | string | |
window | string | |
data_as_of | string | |
level | string | |
count | number | |
rows | array |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string"
},
"window": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"level": {
"type": "string"
},
"count": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"type": {
"type": "string"
},
"election": {
"type": "string"
},
"area": {
"type": "string"
},
"area_id": {
"type": "null"
},
"status": {
"type": "string"
},
"eligible_voters": {
"type": "number"
},
"votes_cast": {
"type": "number"
},
"turnout_pct": {
"type": "number"
},
"valid_votes": {
"type": "number"
},
"blank_votes": {
"type": "number"
},
"invalid_votes": {
"type": "number"
}
},
"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.