Energy Germany
by polls.karbach.digital in Other
German electricity per day: generation by source, renewable share, consumption, wholesale price (incl. next day). Use when asked about German electricity: renewable share, generation mix, power prices, consumption. Source-attributed, German data, updated every six hours.
https://api.polls.karbach.digital/v1/energy/germany- Price
- $0.02
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 224 ms
- 302 ms slowest 5%
- Last check
- Passed
- 25 min ago, next in 8 min
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.polls.karbach.digital/v1/energy/germany
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
From the listing.
GET https://api.polls.karbach.digital/v1/energy/germany?days=7Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
days | integer | No |
Example response
The provider's example. We can't check it without paying.
Example response, 88 lines
{
"data": {
"days": 2,
"labels_de": {
"biomass": "Biomasse",
"hard_coal": "Steinkohle",
"hydro": "Wasserkraft",
"lignite": "Braunkohle",
"natural_gas": "Erdgas",
"nuclear": "Kernenergie",
"other_conventional": "Sonstige Konventionelle",
"other_renewable": "Sonstige Erneuerbare",
"pumped_storage": "Pumpspeicher",
"solar": "Photovoltaik",
"wind_offshore": "Wind Offshore",
"wind_onshore": "Wind Onshore"
},
"last_complete_day": "2026-10-16",
"note": "Public net generation as reported by SMARD; a day appears only when all active sources and consumption are reported. Prices: day-ahead DE-LU daily average, a...",
"series": [
{
"consumption_gwh": 1370,
"date": "2026-10-15",
"generation_gwh": {
"biomass": 98.2,
"hard_coal": 82.6,
"hydro": 28.1,
"lignite": 262.1,
"natural_gas": 203.3,
"other_conventional": 39.2,
"other_renewable": 1.9,
"pumped_storage": 32.4,
"solar": 228.2,
"wind_offshore": 120.1,
"wind_onshore": 197.2
},
"generation_total_gwh": 1293.3,
"renewable_share_pct": 52.1,
"wholesale_price_eur_per_mwh": 187.3
},
{
"consumption_gwh": 1322.3,
"date": "2026-10-16",
"generation_gwh": {
"biomass": 98.3,
"hard_coal": 77.6,
"hydro": 25.7,
"lignite": 274.1,
"natural_gas": 199.5,
"other_conventional": 42.9,
"other_renewable": 2.2,
"pumped_storage": 25.7,
"solar": 232.1,
"wind_offshore": 85.9,
"wind_onshore": 199.6
},
"generation_total_gwh": 1263.7,
"renewable_share_pct": 50.9,
"wholesale_price_eur_per_mwh": 210.67
}
],
"summary": {
"avg_renewable_share_pct": 51.5,
"avg_wholesale_price_eur_per_mwh": 198.99
},
"wholesale_price_next_days": {
"2026-10-17": 168.27,
"2026-10-18": 175.21,
"2026-10-19": 208.44
}
},
"docs": "https://api.polls.karbach.digital/v1/",
"model": null,
"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": {
"energy_europe": "Eurostat (nrg_pc_204, nrg_pc_202)",
"energy_europe_license": "Eurostat reuse policy, attribution required",
"energy_germany": "SMARD.de, Bundesnetzagentur",
"energy_germany_license": "CC BY 4.0",
"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": null,
"updated_at": "2026-10-18T14:31:14+00:00"
}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/energy/germany?days=7'
# 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/energy/germany?days=7' \
| 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%2Fenergy%2Fgermany
const res = await pay("https://api.polls.karbach.digital/v1/energy/germany?days=7");
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/energy/germany?days=7")
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 |
|---|---|---|---|---|
| 25 min ago | Passed | 402 | 240 ms | $0.02 |
| 4 h ago | Passed | 402 | 302 ms | $0.02 |
| 8 h ago | Passed | 402 | 197 ms | $0.02 |
| 11 h ago | Passed | 402 | 39 ms | $0.02 |
| 14 h ago | Passed | 402 | 224 ms | $0.02 |
Show 4 older checks
| 17 h ago | Passed | 402 | 109 ms | $0.02 |
| 20 h ago | Passed | 402 | 259 ms | $0.02 |
| 23 h ago | Passed | 402 | 250 ms | $0.02 |
| 32 h ago | Passed | 402 | 186 ms | $0.02 |