dk_elections_party_over_time
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_party_over_time for the schema, then POST the same URL with its arguments for the data.
One party’s vote and seat results across Danish national elections 2009 to the latest, for the whole country or for one named area at any level (areas are matched across elections by NAME; boundaries change, so a polling-area match is best effort and flagged). Party by letter (A, V, Ø) or name text (Socialdemokratiet, Liberal Alliance). Defaults to Folketing elections. Source: Statistics Denmark. Before 2009 is not covered.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
party | string | yes | Party letter (A, B, C, F, I, M, O, V, Ø, Å, Æ …) or part of the party name. Letters were reassigned over time: a letter query returns the party that held it in each election, with its name. |
type | string | no | folketingsvalg (default), 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. |
from_year | number | no | Optional first year, 2009 or later. |
Example call
Arguments
{
"party": "A",
"level": "storkreds",
"area": "Københavns Storkreds",
"from_year": 2015
}
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_party_over_time","arguments":{"party":"A","level":"storkreds","area":"Københavns Storkreds","from_year":2015}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dk_elections_party_over_time', {
"party": "A",
"level": "storkreds",
"area": "Københavns Storkreds",
"from_year": 2015
});
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": "string"
},
"party": {
"type": "string"
},
"letter": {
"type": "string"
},
"votes": {
"type": "number"
},
"pct": {
"type": "number"
},
"seats": {
"type": [
"null",
"number"
]
},
"valid_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.