# Hellenic and Balkan Energy Market Tracker (`mpelas/gr-see-energy-grid-tracker`) Actor

Unifies Greek/SEE energy data from ADMIE (IPTO), HEnEx and ENTSO-E into one hourly JSON dataset: load, RES forecast vs actual, curtailment MW, clearing prices, SMP, cross-border flows, grid-stress indicator and webhook alerts.

- **URL**: https://apify.com/mpelas/gr-see-energy-grid-tracker.md
- **Developed by:** [mpelas](https://apify.com/mpelas) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 energy record pusheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Hellenic & Balkan Energy Market Tracker (Imbalance & RES Curtailment)

An [Apify Actor](https://apify.com) that collects fragmented Greek and Southeastern European electricity-market data from **three official public sources**, merges them into **one clean, hourly, UTC-normalized, analysis-ready JSON dataset**, and flags "grid stress" events such as renewable-energy curtailment or negative electricity prices.

Think of it as a translator: Greece's energy data lives on several different websites, in different formats (Excel files, XML, web pages) and **different timezones**. This Actor visits all of them, reads them, converts everything to UTC, and puts it into one uniform table you can open in Excel, Google Sheets, Power BI, or feed into your own app.

***

### What problem does it solve?

If you follow the Greek energy market — as a trader, analyst, renewable developer, battery investor, journalist, or curious citizen — you currently have to:

1. Go to **ADMIE (IPTO)** — the Greek grid operator — and manually download Excel files for electricity demand, RES generation, and forecasts.
2. Go to **HEnEx** — the Greek energy exchange — and download another Excel file for day-ahead electricity prices (15-minute resolution since the SDAC move to 15-minute MTUs).
3. Optionally go to **ENTSO-E** — the European network of grid operators — and query their API for cross-border electricity flows.

Then you have to clean, align in time, and merge all of that by hand, hour by hour.

**This Actor does all of that automatically, every run.**

***

### The three data sources explained

#### 1. ADMIE / IPTO — the Greek TSO (Transmission System Operator)

- **Website:** <https://www.admie.gr>
- **API used:** `getOperationMarketFilewRange` — a public endpoint that lists operational and market files (Excel/CSV/ZIP) by date range and `FileCategory`.
- **Timezone:** ADMIE files use **local Greek time (Europe/Athens)**. The Actor converts every hour/MTU to **UTC** with `zoneinfo`, so 23/25-hour DST days (e.g. 2026-03-29, 2026-10-25) are handled correctly.
- **What we get (verified live against the portal):**
  - `RealTimeSCADASystemLoad` — actual system load, hourly (wide .xls, hour columns 1–25).
  - `RealTimeSCADARES` — actual RES (solar+wind) injections, hourly.
  - `RealTimeSCADAImportsExports` — net flows per interconnector (AL, BG, IT, MK/FYROM, TR), hourly, signed.
  - `ISP1DayAheadLoadForecast` / `ISP1DayAheadRESForecast` (and ISP2/ISP3 vintages) — day-ahead/intraday forecasts at **15-minute MTU** resolution (96 columns), downsampled to hourly on merge.
  - `SystemRealizationSCADA`, `RESMV`, `IMBABE` — best-effort extras (per-unit realization, MV-connected RES, imbalance data). If a file's layout changes, the run records it in `run_summary.errors` instead of failing silently.
  - When several versions of a file exist (`_01`, `_02`, …), only the **latest version** is used.
- **Why it matters:** When solar and wind produce more than the grid can absorb at midday, the operator must "curtail" (switch off) renewable plants. The Actor exposes curtailment as a **documented proxy** (see below).

> Note: legacy `FileCategory` names such as `DayAheadLoadForecast`, `DayAheadRESForecast` or `ExPostImbalancePricingResults` return **no files** on the current ADMIE portal — do not use them.

#### 2. HEnEx — the Hellenic Energy Exchange

- **Website:** <https://www.enexgroup.gr>
- **Page scraped:** [Day-Ahead Market results](https://www.enexgroup.gr/markets-publications-el-day-ahead-market)
- **Timezone:** delivery MTUs are **local Athens time**; converted to UTC.
- **What we get:** the official day-ahead results file (`YYYYMMDD_EL-DAM_Results_EN_vNN.xlsx`, latest version) with **15-minute market time units (MTUs)**. The Actor aggregates the 4 quarters of each hour into one hourly record keeping:
  - `henexMCP_EUR_MWh` — average market clearing price of the hour,
  - `henexMinMCP_EUR_MWh` — lowest 15-minute quarter (so a single negative quarter is **not** hidden by the average),
  - `henexNegativeMTUCount` — how many quarters cleared below zero,
  - `henexVolumeMWh` — traded volume of the hour (as published).
- **Why it matters:** the day-ahead MCP is the benchmark wholesale price. Negative or near-zero midday prices signal oversupply (usually solar); negative quarters are the strongest stress signal.

#### 3. ENTSO-E Transparency Platform — the European grid data hub (optional)

- **URL:** <https://transparency.entsoe.eu>
- **Registration:** free security token (see guide below) → input field `entsoeApiKey`.
- **What we get:** **physical cross-border flows** (documentType `A11`, processType `A16` realised) on Greece's borders, queried in **both directions** and returned as **signed net flow (positive = into Greece)**, resolution-aware (`PT15M`/`PT30M`/`PT60M`, correct midnight rollover). Borders: `IT_GR`, `BG_GR`, `MK_GR`, `AL_GR`, `TR_GR`, using the official 16-character bidding-zone EIC codes (e.g. Greece = `10YGR-HTSO-----Y`, verified against ENTSO-E's EIC code list).
- **Why it matters:** it tells you whether Greece was importing or exporting at each hour and from which neighbour — essential for spread analysis vs. neighbouring zones.

***

### How the Actor combines the three sources

```
Step 1: FETCH          Step 2: PARSE + TZ        Step 3: MERGE            Step 4: ENRICH
┌─────────────┐       ┌───────────────────┐     ┌──────────────────┐     ┌──────────────────┐
│ ADMIE files │──────▶│ Excel/CSV (wide     │────▶│                  │     │ curtailment proxy│
│ HEnEx xlsx  │──────▶│  hourly OR 96-MTU)  │     │  One record per  │────▶│ gridStress       │
│ ENTSO-E API │──────▶│ XML (resolution-    │     │  hour, UTC       │     │ indicator +      │
└─────────────┘       │  aware, both dirs)  │     │  (15-min folded  │     │ alerts digest    │
                      │ Athens local → UTC  │     │   into hours)    │     │                  │
                      └───────────────────┘     └──────────────────┘     └──────────────────┘
```

1. **Fetch** — one ADMIE API call per category covers the whole date range; the HEnEx DAM page is scraped per day (latest file version wins); ENTSO-E is called once per day per border per direction.
2. **Parse + timezone** — ADMIE/HEnEx local Athens timestamps are converted to UTC (DST-aware); ENTSO-E is already UTC. All records land on one UTC axis.
3. **Merge** — keyed by **hour timestamp (UTC)**. 15-minute ADMIE MTU points are averaged into the hour; HEnEx quarters keep avg + min + negative count.
4. **Enrich** — curtailment proxy, grid-stress indicator, alerts.

If a source fails, the Actor records it in `run_summary.errors` and continues — one broken portal never kills the whole run.

***

### Output: one dataset item per hour

```json
{
  "timestamp": "2026-11-22T09:00:00Z",
  "marketArea": "GR",
  "resolution": "1H",
  "load": { "forecastMW": 4022.5, "actualMW": 4147.0 },
  "renewables": {
    "solarForecastMW": null,
    "solarActualMW": null,
    "windForecastMW": null,
    "windActualMW": null,
    "resTotalForecastMW": 4600.0,
    "resTotalActualMW": 3840.0,
    "estimatedCurtailmentMW": 760.0,
    "resForecastShortfallMW": 760.0,
    "resForecastErrorMW": -760.0,
    "curtailmentBasis": "proxy: resTotalForecastMW - resTotalActualMW (includes forecast error)"
  },
  "pricing": {
    "henexMCP_EUR_MWh": 42.5,
    "henexMinMCP_EUR_MWh": -3.2,
    "henexNegativeMTUCount": 1,
    "systemMarginalPrice_EUR_MWh": null,
    "imbalancePrice_EUR_MWh": 55.2
  },
  "crossBorderFlowsMW": { "BG_GR": 300.0, "IT_GR": -150.0, "MK_GR": 50.0, "AL_GR": 0.0, "TR_GR": 12.0 },
  "henexVolumeMWh": 5120.0,
  "gridStressIndicator": "HIGH",
  "sources": ["ADMIE", "HEnEx"],
  "ingestedAt": "2026-11-23T19:05:38Z"
}
```

#### Field-by-field glossary

| Field | Meaning |
|---|---|
| `timestamp` | Hour start, **UTC** ISO-8601 (`2026-11-22T09:00:00Z` = 09:00–10:00 UTC = 11:00–12:00 Athens in winter). |
| `marketArea` | Always `GR`. |
| `resolution` | Always `1H` in the output (15-minute inputs are folded into hours). |
| `load.forecastMW` / `load.actualMW` | Day-ahead load forecast vs actual system load (MW), from ADMIE ISP forecasts + SCADA. |
| `renewables.solarForecastMW` / `solarActualMW` | Solar split — filled only when an ADMIE file carries solar-labelled rows (often `null`; ADMIE's public hourly files mostly publish total RES). |
| `renewables.windForecastMW` / `windActualMW` | Wind split — same caveat. |
| `renewables.resTotalForecastMW` / `resTotalActualMW` | Total RES forecast vs actual (MW). |
| `renewables.estimatedCurtailmentMW` | **Proxy** = max(0, RES forecast − RES actual). See "Data quality" below. `null` if either input is missing. |
| `renewables.resForecastShortfallMW` | Signed gap `forecast − actual` (negative = actual above forecast). |
| `renewables.resForecastErrorMW` | `actual − forecast` — the weather/forecast error component of the gap. |
| `renewables.curtailmentBasis` | What produced `estimatedCurtailmentMW` (`proxy: ...` or `admie_dispatch_file` if a curtailment file is ever ingested). |
| `pricing.henexMCP_EUR_MWh` | Hourly **average** day-ahead market clearing price (EUR/MWh), from HEnEx 15-min MTUs. |
| `pricing.henexMinMCP_EUR_MWh` | Lowest 15-minute quarter price in the hour — catches sub-hourly negative spikes. |
| `pricing.henexNegativeMTUCount` | Number of 15-min quarters with price < 0 in the hour. |
| `pricing.systemMarginalPrice_EUR_MWh` | SMP-style marginal price, only from ADMIE files explicitly named SMP/Marginal (legacy; post-Target-Model Greece clears via HEnEx MCP). |
| `pricing.imbalancePrice_EUR_MWh` | Balancing/imbalance price (from ADMIE imbalance files, e.g. IMBABE) — **not** the same as SMP or MCP. |
| `crossBorderFlowsMW` | Signed net flow per border, **positive = into Greece**. ADMIE values are as-published (signed); ENTSO-E values are netted from both directions. Keys: `AL_GR`, `BG_GR`, `IT_GR`, `MK_GR`, `TR_GR`. |
| `henexVolumeMWh` | Traded volume of the hour as published by HEnEx. |
| `gridStressIndicator` | `HIGH` = curtailment proxy ≥ 300 MW or any negative price quarter; `MODERATE` = proxy ≥ 50 MW or price < €20/MWh; else `LOW`. |
| `sources` | Which sources contributed to this record. |
| `ingestedAt` | When the Actor created the record (UTC). |

***

### Data quality & limitations (read this before building on the data)

- **Curtailment is a proxy, not metered curtailment.** `estimatedCurtailmentMW = max(0, RES forecast − RES actual)` mixes real dispatch-down with weather forecast error. That is why the signed gap (`resForecastShortfallMW`) and the error (`resForecastErrorMW`) are separate fields, and `curtailmentBasis` tells you which one produced the number. For investment-grade curtailment figures you need ADMIE's dispatch/ISP results (e.g. the "Activated Energy" sheets of `ISP*ISPResults`), which this Actor does not parse yet.
- **Hourly grain hides sub-hourly spikes — partially.** The hourly MCP is an average, but `henexMinMCP_EUR_MWh` and `henexNegativeMTUCount` preserve the worst quarter. ADMIE 15-minute forecast points are averaged into the hour.
- **Solar/wind split is usually `null`** — ADMIE's public hourly files publish total RES; the split is only filled if a file carries solar/wind-labelled rows.
- **SMP vs MCP vs imbalance price.** The pre-2020 mandatory-pool SMP (ΟΤΣ) no longer exists; today's day-ahead price is the HEnEx MCP (SDAC-coupled), and balancing prices are separate. This Actor labels each field accordingly instead of calling everything "SMP".
- **ENTSO-E needs your own free token**, and wrong EIC codes return empty XML silently — the Actor validates that all codes are 16 chars and records request failures in `run_summary.errors`.
- **Empty-result runs are not charged**: if no source returns data, the Actor pushes one uncharged fallback record with a `note` explaining what happened, and lists per-source errors in `run_summary`.

***

### Alerts and run summary

- **Run summary** (`run_summary` key in the key-value store): records pushed, alerts, sources used, and **a per-source error list** — check it whenever data looks missing.
- **Alerts** (`alerts` key) + optional **webhook**: one **digest POST per run** (all alerts grouped by day) to avoid webhook storms on 31-day runs. Default thresholds: curtailment proxy ≥ 300 MW (`HIGH_CURTAILMENT`), hourly MCP ≤ 0 (`NEGATIVE_OR_ZERO_PRICE`, CRITICAL if any quarter was negative).

***

### Input parameters

See `.actor/input_schema.json`. Main fields:

| Field | What to enter |
|---|---|
| `dateFrom` | Start date `YYYY-MM-DD`, or `today` / `yesterday`. Defaults to yesterday. **Required.** |
| `dateTo` | End date (inclusive). Defaults to `dateFrom`. Range capped at **31 days**. |
| `includeAdmieData` | Fetch ADMIE (IPTO) files. Default `true`. |
| `admieCategories` | ADMIE `FileCategory` codes (advanced). Defaults are verified-working categories; latest file version is used automatically. |
| `includeHEnExPrices` | Fetch HEnEx day-ahead results (15-min → hourly). Default `true`. |
| `includeEntsoeFlows` | Fetch ENTSO-E net cross-border flows. Default `false` (needs token). |
| `entsoeApiKey` | Free ENTSO-E security token (required only if flows enabled). |
| `alertWebhookUrl` | Optional HTTP endpoint receiving the per-run alert digest. |
| `alertThresholds` | `{ "maxCurtailmentMW": 300.0, "minMCPPrice": 0.0 }`. |
| `proxyConfiguration` | Optional Apify proxy (some portals rate-limit datacenter IPs). |

***

### How to get a free ENTSO-E API token (step by step)

1. Go to <https://transparency.entsoe.eu> and click **Sign in / Register**.
2. Create a free account and confirm your email.
3. Log in → your name (top right) → **Account Settings**.
4. **Security Token** tab → **Generate** → copy the token.
5. Paste it into **`entsoeApiKey`** and set **`includeEntsoeFlows` = true**.

***

### Monetization (pricing)

Pay-per-event on Apify:

- **$1.00** one-time per run (`run_started`).
- **$0.005** per pushed hourly record (`energy_record_pushed`).

Example: a 7-day run ≈ 168 hourly records → $1.00 + 168 × $0.005 = **$1.84**. Empty-result fallback records are pushed **without** a charge.

***

### Local development

```bash
pip install -r requirements.txt
python -m unittest discover -s tests -v   # 28 unit tests (tz/DST, MTU, ENTSO-E XML, curtailment proxy)
apify run                                # local run
```

***

### FAQ

**Q: What timezone are the timestamps?**
All **UTC** (`Z` suffix). ADMIE and HEnEx publish local Athens time; the Actor converts to UTC, handling the 23/25-hour DST days. 09:00 UTC = 11:00 Athens in winter (EET), 12:00 in summer (EEST).

**Q: What does "flags zero/negative prices" mean?**
The hourly MCP (`pricing.henexMCP_EUR_MWh`) comes from HEnEx 15-minute quarters. An alert fires when the hourly average ≤ threshold; severity is CRITICAL if any quarter (`henexMinMCP_EUR_MWh`) was negative. ADMIE data is hourly, HEnEx prices are 15-minute — the output grain is hourly, with the worst quarter preserved.

**Q: Is `estimatedCurtailmentMW` real curtailment?**
No — it is a documented **proxy** (RES forecast − actual, floored at 0), which also contains forecast error. Use `resForecastShortfallMW`/`resForecastErrorMW` to separate the two, and check `curtailmentBasis`. Metered curtailment would need ADMIE dispatch results.

**Q: What is the difference between SMP, MCP and imbalance price?**
SMP (ΟΤΣ) was the pre-Nov-2020 pool price and no longer exists. Today's day-ahead benchmark is the HEnEx **MCP** (SDAC-coupled). **Imbalance price** is the balancing-market price ADMIE charges for deviations. The Actor keeps them as separate fields.

**Q: Why are prices sometimes negative?**
When zero-marginal-cost solar/wind exceeds what demand + exports can absorb (typically 10:00–16:00 on sunny days), the market clears at or below zero and RES gets curtailed. Negative-price hours are a strong grid-stress signal and are exactly what battery storage monetizes.

**Q: Can I get more than 31 days?**
One run is capped at 31 days; run repeatedly or schedule daily/weekly via an Apify Schedule.

**Q: The data looks empty / has a "note" field.**
No source returned data for the range (future date, portal down, missing ENTSO-E token). Check `run_summary.errors` in the key-value store — every failed request is listed there.

***

### Changelog

- **v1.2** — Correct timezone handling (ADMIE/HEnEx Athens local → UTC via zoneinfo; DST 23/25h days verified on 2026-03-29 / 2026-10-25). Replaced dead ADMIE categories with verified live ones + latest-version selection. Parse ISP 15-minute MTU forecast files. ENTSO-E: corrected 16-char EIC codes (verified against ENTSO-E's list), both flow directions netted, resolution-aware parsing with midnight rollover. HEnEx: latest `_vNN` version, hourly avg + min quarter + negative-quarter count. Curtailment is now an explicit, documented proxy (`estimatedCurtailmentMW` + `resForecastShortfallMW` + `resForecastErrorMW` + `curtailmentBasis`). Per-source errors surfaced in `run_summary`; empty-result fallback no longer charged; webhook alerts batched into one per-run digest; 28 unit tests incl. DST and golden ENTSO-E XML.
- **v1.1** — Real endpoint mappings, 15-min HEnEx aggregation, tests, live run verified.
- **v1.0** — Initial release.

***

### License & disclaimer

Data is sourced from public APIs and publications of ADMIE (IPTO), HEnEx, and ENTSO-E. The Actor only redistributes publicly available data; always check the terms of use of each source. For informational/educational purposes; not investment advice.

# Actor input Schema

## `dateFrom` (type: `string`):

First day to fetch. Accepts YYYY-MM-DD, or the keywords 'today' / 'yesterday'. Defaults to yesterday.

## `dateTo` (type: `string`):

Last day to fetch (inclusive). Defaults to dateFrom. Range is capped at 31 days.

## `includeAdmieData` (type: `boolean`):

Queries the ADMIE Operation & Market Files API (getOperationMarketFilewRange) for load, RES generation/forecast and balancing files.

## `admieCategories` (type: `array`):

ADMIE FileCategory codes to request. Verified working on the live portal (2026-11): RealTimeSCADA\* actuals, ISP1/2/3 forecasts (15-min MTU), SystemRealizationSCADA, RESMV, IMBABE. Legacy names like DayAheadLoadForecast or ExPostImbalancePricingResults return no files anymore. When several versions of a file exist (\_01, \_02...), only the latest is used.

## `includeHEnExPrices` (type: `boolean`):

Downloads the latest YYYYMMDD_EL-DAM_Results_EN_vNN xlsx package from enexgroup.gr and aggregates the 15-minute MTU clearing prices (MCP) to hourly: average, minimum quarter, and count of negative quarters, plus traded volume.

## `includeEntsoeFlows` (type: `boolean`):

Queries the ENTSO-E Transparency Platform REST API for physical flows (A11/A16) on the GR borders (IT, BG, MK, AL, TR) in BOTH directions, returned as signed net flow (positive = into Greece), resolution-aware (PT15M/PT30M/PT60M). Requires a free ENTSO-E security token.

## `entsoeApiKey` (type: `string`):

Free API token from https://transparency.entsoe.eu/. Required only when includeEntsoeFlows is true.

## `alertWebhookUrl` (type: `string`):

HTTP endpoint (Slack/Discord/custom) that receives ONE JSON digest per run (all alerts grouped by day) when thresholds are breached.

## `alertThresholds` (type: `object`):

Trigger an alert when the curtailment proxy MW exceeds maxCurtailmentMW, or the hourly MCP (EUR/MWh) falls below minMCPPrice (negative-price alert; severity CRITICAL if any 15-min quarter was negative).

## `proxyConfiguration` (type: `object`):

Optional proxy for source requests (some operator portals rate-limit datacenter IPs).

## Actor input object example

```json
{
  "dateFrom": "2026-11-17",
  "includeAdmieData": true,
  "admieCategories": [
    "RealTimeSCADASystemLoad",
    "RealTimeSCADARES",
    "RealTimeSCADAImportsExports",
    "SystemRealizationSCADA",
    "ISP1DayAheadLoadForecast",
    "ISP1DayAheadRESForecast",
    "ISP2DayAheadLoadForecast",
    "ISP2DayAheadRESForecast",
    "ISP3IntraDayLoadForecast",
    "ISP3IntraDayRESForecast",
    "RESMV",
    "IMBABE"
  ],
  "includeHEnExPrices": true,
  "includeEntsoeFlows": false,
  "alertThresholds": {
    "maxCurtailmentMW": 300,
    "minMCPPrice": 0
  },
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `run_summary` (type: `string`):

No description

## `alerts` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dateFrom": "2026-11-17"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mpelas/gr-see-energy-grid-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "dateFrom": "2026-11-17" }

# Run the Actor and wait for it to finish
run = client.actor("mpelas/gr-see-energy-grid-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dateFrom": "2026-11-17"
}' |
apify call mpelas/gr-see-energy-grid-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mpelas/gr-see-energy-grid-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gCenOYToxQJTWFlxm/builds/BtRcc2uujVBEDXs9J/openapi.json
