# Euenergy — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 real-time and historical electricity prices across Europe with hourly granularity, including load data and city-level pricing information. Look up current rates by country or city, track price trends over time, and access comprehensive bulk historical data to analyze European energy markets.

**Category:** Finance & Markets | **Website:** [euenergy.live/](https://euenergy.live/) | **Docs:** [parse.bot/marketplace/dbad1ea4-9de9-4e96-b748-44b3089f623b/euenergy-live-api](https://parse.bot/marketplace/dbad1ea4-9de9-4e96-b748-44b3089f623b/euenergy-live-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/euenergy/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get all countries list

Returns all European countries and bidding zones with their codes and names. Multi-zone countries (Norway NO1-5, Sweden SE1-4, Denmark DK1-2) appear once per zone. Use the returned codes as input to other endpoints.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/euenergy/get-all-countries-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get bulk historical prices

Fetches daily electricity prices for all countries over a date range, organized by country code. Makes one upstream page request per day up to the limit. Returns prices in EUR/MWh and daily change percentage for each zone.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `end_date` | string | Yes | End date in YYYY-MM-DD format. |
| `limit` | integer | No | Maximum number of days to fetch in this call. |
| `start_date` | string | Yes | Start date in YYYY-MM-DD format. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/euenergy/get-bulk-historical-prices \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"end_date":"<string>","limit":"<integer>","start_date":"<string>"}'
```

### Get country cities list

Returns the list of cities within a country or bidding zone that have dedicated electricity price pages. Bidding zone codes (e.g. NO1) use the parent country's page. Each city includes its name, URL slug, and path.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_code` | string | Yes | Country or bidding zone code from get_all_countries_list (e.g. AT, DE-LU, NO1). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/euenergy/get-country-cities-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"<string>"}'
```

### Get country price history

Returns the last 30 days of daily electricity price and load history for a specific country or bidding zone. Includes price in EUR/MWh, EUR/kWh, load in MW, daily change percentage, and day-ahead flag.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_code` | string | Yes | Country or bidding zone code from get_all_countries_list (e.g. AT, DE-LU, NO1, SE3). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/euenergy/get-country-price-history \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country_code":"<string>"}'
```

### Get europe prices by date

Returns electricity prices for all European countries and bidding zones on a given date. Each entry includes the country name, zone code, price in EUR/MWh, and percentage change from the previous day. Omitting the date returns today's prices.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Date in YYYY-MM-DD format. Omitting returns today's prices. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/euenergy/get-europe-prices-by-date \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.