# Smard — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Monitor Germany's electricity day-ahead spot market prices in real-time at 15-minute intervals to track energy costs and market trends. Get accurate pricing data directly from the Federal Network Agency (Bundesnetzagentur) to optimize energy purchasing decisions and analyze power market dynamics.

**Category:** Finance & Markets | **Website:** [www.smard.de/](https://www.smard.de/) | **Docs:** [parse.bot/marketplace/47d321f5-12af-4368-9864-3f2ee404a88a/smard-de-api](https://parse.bot/marketplace/47d321f5-12af-4368-9864-3f2ee404a88a/smard-de-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-smard-de-api-47d321f5/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_spot_prices

Fetch German energy day-ahead spot prices at 15-minute resolution for a given date range. Returns timestamped prices in EUR/MWh from the EPEX SPOT market for the specified bidding zone. Data is sourced weekly; the endpoint fetches all relevant weekly chunks and filters to the requested range. Each request makes 1 index call plus 1 data call per overlapping week (typically 1-2 for a week-long range).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date_from` | string | No | Start date in ISO format YYYY-MM-DD (UTC). Omitting defaults to 7 days before today. |
| `date_to` | string | No | End date in ISO format YYYY-MM-DD (UTC, inclusive of the full day). Omitting defaults to today. |
| `region` | string | No | Bidding zone or TSO area. Omitting defaults to DE (Germany). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smard-de-api-47d321f5/get_spot_prices \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_from":"<string>","date_to":"<string>","region":"<string>"}'
```
