API · x402

Cheapest contiguous window of N hours to run a load (EV charging, heat pump, batch job)…

Cheapest contiguous window of N hours to run a load (EV charging, heat pump, batch job) on a given day in Denmark (DK1/DK2), Norway NO2, Sweden SE3/SE4 or Germany DE-LU, based on day-ahead spot prices. Source: Energinet, energidataservice.dk (CC BY 4.0).

by toll402 · verified provider · updated 2026-10-29

What it does

Cheapest contiguous window of N hours to run a load (EV charging, heat pump, batch job) on a given day in Denmark (DK1/DK2), Norway NO2, Sweden SE3/SE4 or Germany DE-LU, based on day-ahead spot prices. Source: Energinet, energidataservice.dk (CC BY 4.0).

Tags: denmark · norway · sweden · germany · electricity

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/73814.json for the price and payment options.
  3. Pay. Call GET https://toll402.io/v1/dk/power-cheapest-window. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of the listed asset on Base, Polygon, xrpl:0, eip155:5042, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
see accepts
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, xrpl:0, eip155:5042

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
——0x56024C15eEb340ef932f3E43C9F809bb306F180E120s
exactBase
eip155:8453
——0x56024C15eEb340ef932f3E43C9F809bb306F180E120s
exactPolygon
eip155:137
——0x56024C15eEb340ef932f3E43C9F809bb306F180E120s
exactxrpl:0
xrpl:0
——rGG273HhfEikfqjDyMn2Vbxzeb475c89yV120s
exactxrpl:0
xrpl:0
——rGG273HhfEikfqjDyMn2Vbxzeb475c89yV120s
exactBase
eip155:8453
——0x56024C15eEb340ef932f3E43C9F809bb306F180E120s
exacteip155:5042
eip155:5042
——0x56024C15eEb340ef932f3E43C9F809bb306F180E120s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x56024C15eEb340ef932f3E43C9F809bb306F180E",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x56024C15eEb340ef932f3E43C9F809bb306F180E",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0x56024C15eEb340ef932f3E43C9F809bb306F180E",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "xrpl:0",
    "payTo": "rGG273HhfEikfqjDyMn2Vbxzeb475c89yV",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "xrpl:0",
    "payTo": "rGG273HhfEikfqjDyMn2Vbxzeb475c89yV",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x56024C15eEb340ef932f3E43C9F809bb306F180E",
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "payTo": "0x56024C15eEb340ef932f3E43C9F809bb306F180E",
    "maxTimeoutSeconds": 120
  }
]

Examples

curl
curl "https://toll402.io/v1/dk/power-cheapest-window"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://toll402.io/v1/dk/power-cheapest-window");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://toll402.io/v1/dk/power-cheapest-window")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
toll402
Endpoint
https://toll402.io/v1/dk/power-cheapest-window
Machine-readable
/resources/73814.json