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

NameTypeRequiredDescription
partystringyesParty 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.
typestringnofolketingsvalg (default), europa-parlamentsvalg or folkeafstemning.
levelstringno
areastringnoUnit name or part of it. Required when level is not country.
withinstringnoOptional parent unit name or id, to disambiguate.
from_yearnumbernoOptional 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

FieldTypeDescription
sourcestring
windowstring
data_as_ofstring
levelstring
countnumber
rowsarray
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.

Regenerated from source · build November 21, 2026