Spain Electricity Prices API — REE PVPC & Wholesale Spot
Under maintenancePricing
from $3.00 / 1,000 spain ree hourly electricity price extracteds
Spain Electricity Prices API — REE PVPC & Wholesale Spot
Under maintenanceExtract official hourly Spanish electricity prices (PVPC regulated retail tariff & OMIE wholesale spot market in EUR/MWh and EUR/kWh) directly from Red Eléctrica de España (REE REData) for solar, EV charging & energy analytics.
Pricing
from $3.00 / 1,000 spain ree hourly electricity price extracteds
Rating
0.0
(0)
Developer
BR Data Hub
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Extract official hourly Spanish electricity prices (PVPC regulated retail tariff & OMIE wholesale spot market in EUR/MWh and EUR/kWh) directly from Red Eléctrica de España (REE REData) for solar, EV charging & energy analytics.
Categories: BUSINESS, AUTOMATION, AI | Billing Model: Pay-Per-Event ($0.01 start + $0.003 per ree-price-hour-extracted) | Permissions: LIMITED_PERMISSIONS (Safe for AI Agents & MCP)
Why Use spain-ree-electricity-pvpc-prices?
Accessing official international sovereign, central bank, energy market, and regulatory datasets across Japan (日本語), Europe (Español), Latin America, and Asia-Pacific normally requires parsing local-language portals, regional timezones, and custom CSV/JSON feeds.
brdatahub/spain-ree-electricity-pvpc-prices turns official public records into a clean, fast, schema-validated JSON/CSV API ready for:
- AI Agents & MCP Workflows: Plug directly into Claude Desktop, Cursor, LangChain, CrewAI, n8n, Make, or Zapier via the official Apify MCP Server.
- Quantitative, Financial & Market Intelligence: Automate daily ingestion into Snowflake, BigQuery, PostgreSQL, Google Sheets, Power BI, or internal ERPs.
- B2B Lead Generation & Compliance Automation: Enrich CRMs, underwrite risk, monitor regulatory changes, and size regional markets programmatically.
Key Capabilities
- Zero-Configuration Start: Includes sensible pre-filled defaults so automated runs and health checks succeed out of the box in seconds.
- Normalized Numeric & Date Fields: Brazilian currency, percentage, and date formats are parsed into clean standard floats and ISO strings alongside raw source fields.
- Low Compute Footprint: Optimized async Python (
httpx) container running on256 MBRAM — minimizing Apify compute unit consumption to fractions of a cent per run. - Spreadsheet & API Ready: Export results with one click as JSON, CSV, Excel (
.xlsx), XML, or Parquet.
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
lookbackDays | integer | 2 | Number of recent days of hourly Spanish electricity prices to extract. |
marketType | string | "ALL" | Choose 'ALL' (both PVPC & Spot), 'PVPC', or 'SPOT'. |
Example Input (JSON)
{"lookbackDays": 2,"marketType": "ALL"}
Output Schema & Real Sample Record
Each extracted item is pushed to the default Apify Dataset and validated against the Actor's structured dataset_schema.json and output_schema.json.
{"datetime_cet": "2026-11-12T23:45:00.000+01:00","market_series": "Precio mercado spot","series_code": "OMIE_SPOT","price_eur_mwh": 142.88,"price_eur_kwh": 0.14288,"tariff_period_es": "P2 Llano","relative_pct": 100,"currency": "EUR","source": "Red Eléctrica de España (REE REData)"}
Quick Integration Examples
1. Python (apify-client)
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_API_TOKEN")run = client.actor("brdatahub/spain-ree-electricity-pvpc-prices").call(run_input={"lookbackDays": 2,"marketType": "ALL"})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
2. Node.js / TypeScript (apify-client)
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('brdatahub/spain-ree-electricity-pvpc-prices').call({"lookbackDays": 2,"marketType": "ALL"});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
3. cURL (Synchronous REST API — Instant JSON)
curl -X POST "https://api.apify.com/v2/acts/brdatahub~spain-ree-electricity-pvpc-prices/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \-H "Content-Type: application/json" \-d '{"lookbackDays": 2, "marketType": "ALL"}'
4. AI Agents & Apify MCP Server
Add brdatahub/spain-ree-electricity-pvpc-prices as a tool in https://mcp.apify.com so LLM agents can query live official institutional data on demand with typed input/output schemas and LIMITED_PERMISSIONS sandboxing.
Pricing & Free-Plan Preview Policy
This Actor uses transparent Pay-Per-Event (PPE) pricing:
apify-actor-start:$0.01per run initializationree-price-hour-extracted:$0.003per structured record written to the dataset
Note for Apify Free-tier accounts: Users on the Apify Free plan automatically receive a clean preview sample per run and exit gracefully with a status message so you can test schema compatibility before upgrading to a paid Apify plan for full bulk extractions.
Changelog & Maintenance
- v1.0 (2026-11): Initial production release with full
input_schema.json,dataset_schema.jsontyped fields,output_schema.jsonv1 export links, and automated cloud health monitoring. - Support: Open an issue in the Issues tab on Apify Store if you need custom filters, additional fields, or enterprise SLAs.