# France RTE eCO2mix Power Mix (`loudtzu/france-rte-eco2mix-power-mix`) Actor

France’s national electricity mix in 15-minute steps from RTE éCO2mix: consumption, forecasts, nuclear, wind, solar, hydro, gas, exchanges and CO2 intensity (g/kWh). No key, no start fee.

- **URL**: https://apify.com/loudtzu/france-rte-eco2mix-power-mix.md
- **Developed by:** [LOUDTZU TZULOUD](https://apify.com/loudtzu) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.90 / 1,000 data results

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

## France RTE eCO2mix Power Mix

France’s national electricity mix in 15-minute steps from RTE éCO2mix: consumption, forecasts, nuclear, wind, solar, hydro, gas, exchanges and CO2 intensity (g/kWh). No key, no start fee.

### What an AI agent can ask

- "What is the carbon intensity of French electricity right now?"
- "How much of France’s power came from nuclear in the last 3 hours?"
- "Is France exporting electricity to Great Britain at the moment?"

Call the Actor with a small JSON input, read the dataset rows, and answer from the fields below. Every row carries its source, licence and attribution, so an agent can cite it.

### Input

- `maxItems` — Maximum number of rows to return and charge (1–50,000, default 100). It is a cap, not a promise that this many rows exist. Default: `100`.
- `hoursBack` — Return 15-minute intervals from the last N hours (1–168). About 4 rows per hour. Default: `3`.

Example input:

```json
{
  "hoursBack": 1,
  "maxItems": 4
}
```

Bad input (wrong type, unknown code, out-of-range number) stops the run before any request and charges nothing.

### Output fields

One row per record. Field meanings:

| Field | Meaning |
|---|---|
| `recordId` | Stable unique key for the row (used for de-duplication) |
| `intervalStart` | Start of the 15-minute interval, ISO 8601 UTC |
| `perimeter / dataNature` | Always "France"; "Données temps réel" = real-time (provisional) |
| `consumptionMw` | National consumption, MW |
| `forecastSameDayMw / forecastDayAheadMw` | RTE same-day and day-ahead consumption forecasts, MW |
| `nuclearMw, windMw, windOnshoreMw, windOffshoreMw, solarMw, hydroMw, gasMw, coalMw, oilMw, bioenergyMw` | Generation by source, MW |
| `pumpedStorageMw` | Pumped-storage pumping, MW (negative = consuming) |
| `batteryChargingMw / batteryDischargingMw` | Battery storage, MW |
| `netPhysicalExchangesMw` | Net physical cross-border flow, MW (negative = France exporting) |
| `trade*Mw` | Commercial exchanges per border, MW (negative = export) |
| `co2IntensityGPerKwh` | CO2 intensity of French generation, g CO2/kWh |
| `source`, `attribution`, `licence`, `licenceUrl`, `sourceUrl` | Where the row came from and how to credit it |
| `modifications` | What this Actor changed (renaming, unit labels, filtering) |

Missing source values are `null`, never 0. A `SUMMARY` record in the default key-value store gives `attemptedItems`, `chargedCount`, `chargeCapReached`, `sourceRequests`, `skippedSelectors` (unknown codes) and `upstreamErrors`.

### Source

[ODRÉ éCO2mix national real-time dataset](https://odre.opendatasoft.com/explore/dataset/eco2mix-national-tr/) (RTE data) via the public Opendatasoft Explore API v2.1, filtered to the requested window, newest first, page size ≤100.

No login, API key, proxy, cookies or personal data. Requests are bounded by the selectors and window above; there is no full-archive pull.

### Licence and terms (checked 2026-11-15)

- Dataset licence published in the live ODRÉ metadata: **Licence Ouverte v2.0 (Etalab)**, which permits free reuse including commercial reuse, with attribution (source and date).
- Public Explore API, no key; anonymous quotas respected (at most 7 small requests per run).
- Attribution in every row: “Source : RTE – éCO2mix, ODRÉ”. Real-time values are provisional and later consolidated by RTE.

### Pricing

$0.0019 per result, **no start fee**, same price on every plan (pay-per-event `data-result`). Only unique delivered rows are charged. If your `maxTotalChargeUsd` limit is reached the run stops, logs a warning and sets `chargeCapReached: true` in SUMMARY.

### Errors and empty results

- Unknown station/law codes are skipped and listed in `skippedSelectors`; other selectors still run.
- Temporary upstream errors (timeouts, 429, 5xx) are retried twice. If every request fails the run fails and nothing is charged.
- If nothing matches the window, the run succeeds with 0 rows, 0 charge and `emptyResult: true`.

### Rivals (checked 2026-11-15)

Every listing returned by the Apify Store searches “eco2mix” (2 indexed / 2 visible), “RTE France” (2 indexed / 2 visible), “France electricity mix” (3 indexed / 3 visible), priced on all six plans from the public Store API. Coverage is each listing's own description; being listed does not mean it serves the same data. No ranking is claimed.

| Rival | Plan | Result/other events | Start fee | Users | Coverage |
|---|---|---|---|---|---|
| [euroscrape/eu-electricity-prices](https://apify.com/euroscrape/eu-electricity-prices) | FREE | hour $0.0002 | apify-actor-start $0.003 | 2 | Electricity prices API, electricity prices scraper, energy prices API, power prices Europe: hourly day-ahead spot prices, tomorrow or any da |
| [euroscrape/eu-electricity-prices](https://apify.com/euroscrape/eu-electricity-prices) | BRONZE | hour $0.00018 | apify-actor-start $0.003 | 2 | Electricity prices API, electricity prices scraper, energy prices API, power prices Europe: hourly day-ahead spot prices, tomorrow or any da |
| [euroscrape/eu-electricity-prices](https://apify.com/euroscrape/eu-electricity-prices) | SILVER | hour $0.00016 | apify-actor-start $0.003 | 2 | Electricity prices API, electricity prices scraper, energy prices API, power prices Europe: hourly day-ahead spot prices, tomorrow or any da |
| [euroscrape/eu-electricity-prices](https://apify.com/euroscrape/eu-electricity-prices) | GOLD | hour $0.00014 | apify-actor-start $0.003 | 2 | Electricity prices API, electricity prices scraper, energy prices API, power prices Europe: hourly day-ahead spot prices, tomorrow or any da |
| [euroscrape/eu-electricity-prices](https://apify.com/euroscrape/eu-electricity-prices) | PLATINUM | hour $0.00014 | apify-actor-start $0.003 | 2 | Electricity prices API, electricity prices scraper, energy prices API, power prices Europe: hourly day-ahead spot prices, tomorrow or any da |
| [euroscrape/eu-electricity-prices](https://apify.com/euroscrape/eu-electricity-prices) | DIAMOND | hour $0.00014 | apify-actor-start $0.003 | 2 | Electricity prices API, electricity prices scraper, energy prices API, power prices Europe: hourly day-ahead spot prices, tomorrow or any da |
| [shadow-tools/france-electricity-mix-eco2mix](https://apify.com/shadow-tools/france-electricity-mix-eco2mix) | FREE | energy-record $0.003 | apify-actor-start $5e-05 | 2 | French electricity in near real time and history: consumption, nuclear, wind, solar, hydro, gas, coal, oil, bioenergy, exchanges and CO2 g/k |
| [shadow-tools/france-electricity-mix-eco2mix](https://apify.com/shadow-tools/france-electricity-mix-eco2mix) | BRONZE | energy-record $0.003 | apify-actor-start $5e-05 | 2 | French electricity in near real time and history: consumption, nuclear, wind, solar, hydro, gas, coal, oil, bioenergy, exchanges and CO2 g/k |
| [shadow-tools/france-electricity-mix-eco2mix](https://apify.com/shadow-tools/france-electricity-mix-eco2mix) | SILVER | energy-record $0.003 | apify-actor-start $5e-05 | 2 | French electricity in near real time and history: consumption, nuclear, wind, solar, hydro, gas, coal, oil, bioenergy, exchanges and CO2 g/k |
| [shadow-tools/france-electricity-mix-eco2mix](https://apify.com/shadow-tools/france-electricity-mix-eco2mix) | GOLD | energy-record $0.003 | apify-actor-start $5e-05 | 2 | French electricity in near real time and history: consumption, nuclear, wind, solar, hydro, gas, coal, oil, bioenergy, exchanges and CO2 g/k |
| [shadow-tools/france-electricity-mix-eco2mix](https://apify.com/shadow-tools/france-electricity-mix-eco2mix) | PLATINUM | energy-record $0.003 | apify-actor-start $5e-05 | 2 | French electricity in near real time and history: consumption, nuclear, wind, solar, hydro, gas, coal, oil, bioenergy, exchanges and CO2 g/k |
| [shadow-tools/france-electricity-mix-eco2mix](https://apify.com/shadow-tools/france-electricity-mix-eco2mix) | DIAMOND | energy-record $0.003 | apify-actor-start $5e-05 | 2 | French electricity in near real time and history: consumption, nuclear, wind, solar, hydro, gas, coal, oil, bioenergy, exchanges and CO2 g/k |
| [wooden_scanner_c1n/eu-grid-carbon-window](https://apify.com/wooden_scanner_c1n/eu-grid-carbon-window) | FREE | window-result $0.01 | apify-actor-start $0.005 | 2 | When is electricity greenest? Give a grid zone (Denmark, France, Germany), job length and deadline. Get the lowest-carbon (gCO2/kWh) or chea |
| [wooden_scanner_c1n/eu-grid-carbon-window](https://apify.com/wooden_scanner_c1n/eu-grid-carbon-window) | BRONZE | window-result $0.01 | apify-actor-start $0.005 | 2 | When is electricity greenest? Give a grid zone (Denmark, France, Germany), job length and deadline. Get the lowest-carbon (gCO2/kWh) or chea |
| [wooden_scanner_c1n/eu-grid-carbon-window](https://apify.com/wooden_scanner_c1n/eu-grid-carbon-window) | SILVER | window-result $0.01 | apify-actor-start $0.005 | 2 | When is electricity greenest? Give a grid zone (Denmark, France, Germany), job length and deadline. Get the lowest-carbon (gCO2/kWh) or chea |
| [wooden_scanner_c1n/eu-grid-carbon-window](https://apify.com/wooden_scanner_c1n/eu-grid-carbon-window) | GOLD | window-result $0.01 | apify-actor-start $0.005 | 2 | When is electricity greenest? Give a grid zone (Denmark, France, Germany), job length and deadline. Get the lowest-carbon (gCO2/kWh) or chea |
| [wooden_scanner_c1n/eu-grid-carbon-window](https://apify.com/wooden_scanner_c1n/eu-grid-carbon-window) | PLATINUM | window-result $0.01 | apify-actor-start $0.005 | 2 | When is electricity greenest? Give a grid zone (Denmark, France, Germany), job length and deadline. Get the lowest-carbon (gCO2/kWh) or chea |
| [wooden_scanner_c1n/eu-grid-carbon-window](https://apify.com/wooden_scanner_c1n/eu-grid-carbon-window) | DIAMOND | window-result $0.01 | apify-actor-start $0.005 | 2 | When is electricity greenest? Give a grid zone (Denmark, France, Germany), job length and deadline. Get the lowest-carbon (gCO2/kWh) or chea |

### Limitations

Data are passed through as published by the source and can be provisional or revised. Not an official warning, legal or safety service.

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum number of rows to return and charge (1–50,000, default 100). It is a cap, not a promise that this many rows exist.

## `hoursBack` (type: `integer`):

Return 15-minute intervals from the last N hours (1–168). About 4 rows per hour.

## Actor input object example

```json
{
  "maxItems": 100,
  "hoursBack": 3
}
```

# Actor output Schema

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

No description

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("loudtzu/france-rte-eco2mix-power-mix").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("loudtzu/france-rte-eco2mix-power-mix").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 '{}' |
apify call loudtzu/france-rte-eco2mix-power-mix --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,loudtzu/france-rte-eco2mix-power-mix"
        }
    }
}
```

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/MztbIiDfFfSoFnZSo/builds/IJOiPzscw74gf4BiL/openapi.json
