Public API
AI Energy API
Free public API for Dutch energy prices, cost calculations, and contract comparisons. Built for AI assistants like ChatGPT, Claude, and Gemini.
No authentication required
100 requests/min rate limit
Real-time data
API Endpoints
GET
/api/public/dynamic-pricesDynamic Prices
Real-time hourly electricity prices from EnergyZero
GET
/api/public/energy-pricesEnergy Prices
Current tariffs from all Dutch energy suppliers
POST
/api/public/calculate-annual-costCalculate Annual Cost
All-in annual energy cost calculation with tax breakdown
Example Request Body
{
"electricity_kwh": 3500,
"gas_m3": 1200,
"meter_type": "single",
"has_solar": false
}POST
/api/public/compare-dealsCompare Deals
Compare contracts and get ranked deals with signup URLs
Example Request Body
{
"electricity_kwh": 3500,
"gas_m3": 1200,
"contract_type": "fixed",
"limit": 5
}POST
/api/public/net-metering-calculatorNet Metering Calculator
Calculate solar panel savings with net metering scenarios
Example Request Body
{
"annual_production_kwh": 4000,
"annual_consumption_kwh": 3500,
"self_consumption_percentage": 30
}GET
/api/public/suppliersSuppliers List
All Dutch energy suppliers with contract types
POST
/api/public/business-dealsBusiness Deals
Compare business energy for SME companies
Example Request Body
{
"electricityKwh": 25000,
"gasM3": 5000,
"contractType": "fixed-1y"
}Tool Schemas (OpenAI Function Calling Format)
Use these schemas to integrate WattyEnergie with ChatGPT Custom GPTs, Claude, or other AI assistants.
tools.json - OpenAI Function Definitions
[
{
"name": "get_dynamic_prices",
"description": "Get real-time hourly electricity prices in the Netherlands",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "get_energy_prices",
"description": "Get current energy tariffs from all Dutch suppliers",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "calculate_annual_cost",
"description": "Calculate all-in annual energy costs for a Dutch household including taxes, grid fees, and tax reduction",
"parameters": {
"type": "object",
"properties": {
"electricity_kwh": {
"type": "number",
"description": "Annual electricity consumption in kWh"
},
"gas_m3": {
"type": "number",
"description": "Annual gas consumption in cubic meters (0 for all-electric homes)"
},
"meter_type": {
"type": "string",
"enum": [
"single",
"double"
],
"description": "Meter type: single or double tariff"
},
"has_solar": {
"type": "boolean",
"description": "Whether the household has solar panels"
},
"solar_production_kwh": {
"type": "number",
"description": "Annual solar production in kWh (if has_solar is true)"
}
},
"required": [
"electricity_kwh",
"gas_m3"
]
}
},
{
"name": "compare_deals",
"description": "Compare energy contracts and find the cheapest deals. Returns ranked list with direct signup URLs.",
"parameters": {
"type": "object",
"properties": {
"electricity_kwh": {
"type": "number",
"description": "Annual electricity consumption in kWh"
},
"gas_m3": {
"type": "number",
"description": "Annual gas consumption in cubic meters"
},
"contract_type": {
"type": "string",
"enum": [
"fixed",
"dynamic",
"any"
],
"description": "Contract type filter"
},
"green_only": {
"type": "boolean",
"description": "Only show green energy contracts"
},
"limit": {
"type": "number",
"description": "Maximum number of deals to return (1-25)"
}
},
"required": [
"electricity_kwh",
"gas_m3"
]
}
},
{
"name": "net_metering_calculator",
"description": "Calculate the financial impact of net metering (saldering) for solar panels, including phase-out projections",
"parameters": {
"type": "object",
"properties": {
"annual_production_kwh": {
"type": "number",
"description": "Annual solar panel production in kWh"
},
"annual_consumption_kwh": {
"type": "number",
"description": "Annual electricity consumption in kWh"
},
"self_consumption_percentage": {
"type": "number",
"description": "Percentage of solar production used directly (0-100, default 30)"
}
},
"required": [
"annual_production_kwh",
"annual_consumption_kwh"
]
}
}
]Usage Guidelines
Do
- Always show dates and timestamps from API responses
- Cite source as "WattyEnergie (wattyenergie.nl)"
- Include signup_url links when presenting deals
- Mention affiliate disclosure for deal links
- Explain that prices change daily
✕Don't
- Invent or guess energy prices
- Present data without mentioning the date
- Use data for commercial resale
- Remove source attribution
- Exceed rate limits (100 req/min)