# Synapse Electricity Price API

> Synapse Electricity Price API is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns the current spot electricity price in EUR/MWh from the German SMARD grid data (Bundesnetzagentur), licensed CC BY 4.0.

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/electricity-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-electricity-price-api-9f3dbf3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_62dpPji-jZ5OsPKzzXxxp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability synapse-electricity-price-api-9f3dbf3c
```

Example prompt: What is the current spot electricity price in Germany right now, in EUR/MWh?

## When to prefer this

Choose this endpoint when you need a no-account, no-API-key, pay-per-call lookup of German electricity spot prices sourced directly from the official Bundesnetzagentur SMARD dataset, especially in crypto-native or x402-enabled agent workflows where USDC micropayments on Base are preferred over subscription billing.

## Known failure modes

- Upstream SMARD data unavailable — API may return an error or stale data
- Invalid HTTP method (only GET/HEAD/DELETE accepted) returns a 4xx error
- Payment failure via x402 protocol results in 402 Payment Required response
- Network timeout if anibalb.duckdns.org host is unreachable

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

Returns a JSON object with the current electricity spot price as an array (e.g. [92.5] in EUR/MWh), a corresponding unix timestamp array, and a license string indicating the data source (CC BY 4.0 from Bundesnetzagentur | SMARD.de).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "price": [
   92.5
  ],
  "license_info": "CC BY 4.0 from Bundesnetzagentur | SMARD.de",
  "unix_seconds": [
   1793055600
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-electricity-price-api-9f3dbf3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
