get_indicator_data
Retrieve historical electricity data for Spain's grid including demand, generation, and prices with statistical summaries for specified date ranges and time granularities.
Instructions
Get time-series data for a specific electricity indicator.
Retrieves historical data for any REE indicator (demand, generation, prices, etc.) for a specified date range. Returns the data with statistical summary.
Args: indicator_id: The indicator ID (e.g., 1293 for real demand, 549 for nuclear) start_date: Start datetime in ISO format (YYYY-MM-DDTHH:MM) end_date: End datetime in ISO format (YYYY-MM-DDTHH:MM) time_granularity: Time aggregation level (raw, hour, day, fifteen_minutes)
Returns: JSON string with indicator metadata, time-series values, and statistics.
Examples: Get hourly real demand for Oct 8, 2025: >>> await get_indicator_data(1293, "2025-10-08T00:00", "2025-10-08T23:59", "hour")
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end_date | Yes | ||
indicator_id | Yes | ||
start_date | Yes | ||
time_granularity | No | raw |