Elections
by polls.karbach.digital in Company & people data
One German election: vote share median, 95 percent band, seats, arithmetic majorities, data quality. Use when asked who leads, who gets seats or which majorities are possible in a specific German state or federal election. Source-attributed, German data, updated every six hours.
https://api.polls.karbach.digital/v1/elections/:id- Price
- $0.02
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 207 ms
- 290 ms slowest 5%
- Last check
- Passed
- 2 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.polls.karbach.digital/v1/elections/:id
Each call costs $0.02 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
Built from the input schema. Replace the values with your own.
GET https://api.polls.karbach.digital/v1/elections/:idExample response
The provider's example. We can't check it without paying.
Example response, 122 lines
{
"data": {
"arithmetic_majorities": [
{
"coalition": "GroKo (CDU+SPD)",
"probability_arithmetic_majority": 91.7
},
{
"coalition": "CDU+AfD",
"probability_arithmetic_majority": 71.6
}
],
"data_quality": {
"inputs": {
"days_to_election": 181,
"latest_poll_days_ago": 319,
"mean_sigma_pp": 3.06,
"n_polls": 5
},
"label": "grob",
"score_1_to_10": 3
},
"election": {
"date": "2027-04-18",
"days_until": 181,
"id": "sl-2027",
"name": "Landtagswahl Saarland",
"region": "SL",
"seat_method": "dhondt",
"seats": 51
},
"parties": [
{
"ci95": [
20.9,
35.3
],
"entry_probability": 100,
"median": 27,
"name": "SPD",
"party": "SPD",
"poll_average": 27,
"seats": {
"ci95": [
11,
20
],
"mean": 15.3,
"median": 15
}
},
{
"ci95": [
18.7,
33.8
],
"entry_probability": 100,
"median": 25,
"name": "CDU",
"party": "CDU",
"poll_average": 25,
"seats": {
"ci95": [
10,
19
],
"mean": 14.2,
"median": 14
}
}
],
"recent_polls": [
{
"date": "2025-12-03",
"institute": "Infratest dimap",
"results": {
"AfD": 23,
"BSW": 3,
"CDU": 25,
"Grüne": 7,
"Linke": 7,
"SPD": 27
}
},
{
"date": "2025-04-02",
"institute": "Infratest dimap",
"results": {
"AfD": 17,
"BSW": 4,
"CDU": 27,
"FDP": 3,
"Grüne": 6,
"Linke": 8,
"SPD": 30
}
}
],
"strongest_party_probability": {
"AfD": 16.4,
"CDU": 30.2,
"SPD": 53.3
}
},
"docs": "https://api.polls.karbach.digital/v1/",
"model": {
"point_estimate": "weighted_poll_avg (Fenster 5, temporal_decay_14d + institute_quality)",
"polls_used": 5,
"simulations": 10000,
"version": "4.16"
},
"notice": "Scenario analysis based on published opinion polls. Not a prediction and not a voting recommendation. Coalitions are arithmetic majorities only, not statemen...",
"project": "Ein Projekt von Karbach.Digital (https://karbach.digital)",
"source": {
"polls": "dawum.de",
"polls_license": "ODbL 1.0",
"polls_license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
"processing": "polls.karbach.digital (Max Karbach)"
},
"uncertainty": "ci95 per party from Monte Carlo simulation; seats with ci95; data_quality shows how thin the poll base is.",
"updated_at": "2026-10-18 00:00:02"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.polls.karbach.digital/v1/elections/:id'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.polls.karbach.digital/v1/elections/:id' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.polls.karbach.digital%2Fv1%2Felections%2F%3Aid
const res = await pay("https://api.polls.karbach.digital/v1/elections/:id");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://api.polls.karbach.digital/v1/elections/:id")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 188 ms | $0.02 |
| 6 h ago | Passed | 402 | 207 ms | $0.02 |
| 9 h ago | Passed | 402 | 290 ms | $0.02 |
| 12 h ago | Passed | 402 | 44 ms | $0.02 |
| 15 h ago | Passed | 402 | 276 ms | $0.02 |
Show 4 older checks
| 19 h ago | Passed | 402 | 206 ms | $0.02 |
| 22 h ago | Passed | 402 | 228 ms | $0.02 |
| 25 h ago | Passed | 402 | 247 ms | $0.02 |
| 33 h ago | Passed | 402 | 39 ms | $0.02 |