swagger_client.GenerationApi
July 10, 2024 · View on GitHub
All URIs are relative to https://data.elexon.co.uk/bmrs/api/v1
| Method | HTTP request | Description |
|---|---|---|
| generation_actual_per_type_day_total_get | GET /generation/actual/per-type/day-total | Current snapshot of actual generation by fuel type categories (AGPT/B1620) |
| generation_actual_per_type_get | GET /generation/actual/per-type | Historic actual generation automatically down-sampled (AGPT/B1620) |
| generation_actual_per_type_wind_and_solar_get | GET /generation/actual/per-type/wind-and-solar | Historic actual or estimated wind and solar power generation (AGWS/B1630) |
| generation_outturn_current_get | GET /generation/outturn/current | Current snapshot of generation by fuel type categories (FUELINST, FUELHH) |
| generation_outturn_fuelinsthhcur_get | GET /generation/outturn/FUELINSTHHCUR | This endpoint is obsolete, and this location may be removed with no further notice. |
| generation_outturn_get | GET /generation/outturn | Total generation outturn (FUELINST) |
| generation_outturn_half_hourly_interconnector_get | GET /generation/outturn/halfHourlyInterconnector | This endpoint is obsolete, and this location may be removed with no further notice. |
| generation_outturn_interconnectors_get | GET /generation/outturn/interconnectors | Historic half-hourly interconnector flows (FUELINST) |
| generation_outturn_summary_get | GET /generation/outturn/summary | Historic generation automatically down-sampled (FUELINST) |
generation_actual_per_type_day_total_get
list[InsightsApiModelsResponsesTransparencyAgptSummaryData] generation_actual_per_type_day_total_get(format=format)
Current snapshot of actual generation by fuel type categories (AGPT/B1620)
This endpoint provides aggregated AGPT (B1620) data. It returns totals and percentages for the last half hour and 24 hours for each generation type.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Current snapshot of actual generation by fuel type categories (AGPT/B1620)
api_response = api_instance.generation_actual_per_type_day_total_get(format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_actual_per_type_day_total_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
list[InsightsApiModelsResponsesTransparencyAgptSummaryData]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json, application/xml, text/xml, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_actual_per_type_get
InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesTransparencyActualGenerationBySettlementPeriod generation_actual_per_type_get(_from, to, settlement_period_from=settlement_period_from, settlement_period_to=settlement_period_to, format=format)
Historic actual generation automatically down-sampled (AGPT/B1620)
⚠ This endpoint provides a down-sampled data summary intended for visualisation purposes. Depending on the quantity of data requested, data returned may be averaged hourly, daily, weekly or monthly. Quantities are rounded to the nearest MWh. Use /datasets/AGPT for full access. This endpoint provides actual aggregated generation data per Power System Resource type (Fuel Type categories as defined by Commission Regulation (EU) No 543/2013). This endpoint filters by startTime, and groups results by settlement period.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
_from = '2013-10-20T19:20:30+01:00' # datetime |
to = '2013-10-20T19:20:30+01:00' # datetime |
settlement_period_from = 56 # int | (optional)
settlement_period_to = 56 # int | (optional)
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Historic actual generation automatically down-sampled (AGPT/B1620)
api_response = api_instance.generation_actual_per_type_get(_from, to, settlement_period_from=settlement_period_from,
settlement_period_to=settlement_period_to, format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_actual_per_type_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| _from | datetime | ||
| to | datetime | ||
| settlement_period_from | int | [optional] | |
| settlement_period_to | int | [optional] | |
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_actual_per_type_wind_and_solar_get
InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesTransparencyActualGenerationWindSolar generation_actual_per_type_wind_and_solar_get(_from, to, settlement_period_from=settlement_period_from, settlement_period_to=settlement_period_to, format=format)
Historic actual or estimated wind and solar power generation (AGWS/B1630)
This endpoint provides actual or estimated wind and solar power generation per settlement period. It returns generation with Power System Resource type Solar, Wind Onshore or Wind Offshore (Fuel Type categories as defined by Commission Regulation (EU) No 543/2013). This endpoint filters by startTime and provides a maximum data output range of 7 days.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
_from = '2013-10-20T19:20:30+01:00' # datetime |
to = '2013-10-20T19:20:30+01:00' # datetime |
settlement_period_from = 56 # int | (optional)
settlement_period_to = 56 # int | (optional)
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Historic actual or estimated wind and solar power generation (AGWS/B1630)
api_response = api_instance.generation_actual_per_type_wind_and_solar_get(_from, to,
settlement_period_from=settlement_period_from,
settlement_period_to=settlement_period_to,
format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_actual_per_type_wind_and_solar_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| _from | datetime | ||
| to | datetime | ||
| settlement_period_from | int | [optional] | |
| settlement_period_to | int | [optional] | |
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json, application/xml, text/xml, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_outturn_current_get
list[InsightsApiModelsResponsesGenerationGenerationByFuelType] generation_outturn_current_get(fuel_type=fuel_type, format=format)
Current snapshot of generation by fuel type categories (FUELINST, FUELHH)
This endpoint provides a snapshot view of the last 24 hours generation by individual fuel type categories including interconnector.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
fuel_type = ['fuel_type_example'] # list[str] | (optional)
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Current snapshot of generation by fuel type categories (FUELINST, FUELHH)
api_response = api_instance.generation_outturn_current_get(fuel_type=fuel_type, format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_outturn_current_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| fuel_type | list[str] | [optional] | |
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
list[InsightsApiModelsResponsesGenerationGenerationByFuelType]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json, application/xml, text/xml, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_outturn_fuelinsthhcur_get
generation_outturn_fuelinsthhcur_get(format=format)
This endpoint is obsolete, and this location may be removed with no further notice.
This endpoint has been moved to generation/outturn/current.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# This endpoint is obsolete, and this location may be removed with no further notice.
api_instance.generation_outturn_fuelinsthhcur_get(format=format)
except ApiException as e:
print("Exception when calling GenerationApi->generation_outturn_fuelinsthhcur_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
void (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_outturn_get
InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesDemandOutturnRollingSystemDemand generation_outturn_get(_from=_from, to=to, format=format)
Total generation outturn (FUELINST)
This endpoint provides the total generation outturn across all fuel types, derived by summing generation of all categories from the Generation by Fuel Type report. This data can be used as a proxy for rolling system demand.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
_from = '2013-10-20T19:20:30+01:00' # datetime | (optional)
to = '2013-10-20T19:20:30+01:00' # datetime | (optional)
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Total generation outturn (FUELINST)
api_response = api_instance.generation_outturn_get(_from=_from, to=to, format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_outturn_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| _from | datetime | [optional] | |
| to | datetime | [optional] | |
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json, application/xml, text/xml, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_outturn_half_hourly_interconnector_get
generation_outturn_half_hourly_interconnector_get(format=format)
This endpoint is obsolete, and this location may be removed with no further notice.
This endpoint has been moved to generation/outturn/interconnectors.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# This endpoint is obsolete, and this location may be removed with no further notice.
api_instance.generation_outturn_half_hourly_interconnector_get(format=format)
except ApiException as e:
print("Exception when calling GenerationApi->generation_outturn_half_hourly_interconnector_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
void (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_outturn_interconnectors_get
InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesGenerationHalfHourlyInterconnectorOutturn generation_outturn_interconnectors_get(publish_date_time_from=publish_date_time_from, publish_date_time_to=publish_date_time_to, settlement_date_from=settlement_date_from, settlement_date_to=settlement_date_to, settlement_period=settlement_period, interconnector_name=interconnector_name, format=format)
Historic half-hourly interconnector flows (FUELINST)
This endpoint provides the interconnector flows report derived from the Generation by Fuel Type (FUELINST) data and shows both interconnector imports and exports; the data is updated every five minutes. Settlement date parameters must be provided in the exact format yyyy-MM-dd.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
publish_date_time_from = '2013-10-20T19:20:30+01:00' # datetime | (optional)
publish_date_time_to = '2013-10-20T19:20:30+01:00' # datetime | (optional)
settlement_date_from = '2013-10-20' # date | The settlement date from filter. This must be in the format yyyy-MM-dd. (optional)
settlement_date_to = '2013-10-20' # date | The settlement date to filter. This must be in the format yyyy-MM-dd. (optional)
settlement_period = [56] # list[int] | (optional)
interconnector_name = ['interconnector_name_example'] # list[str] | (optional)
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Historic half-hourly interconnector flows (FUELINST)
api_response = api_instance.generation_outturn_interconnectors_get(publish_date_time_from=publish_date_time_from,
publish_date_time_to=publish_date_time_to,
settlement_date_from=settlement_date_from,
settlement_date_to=settlement_date_to,
settlement_period=settlement_period,
interconnector_name=interconnector_name,
format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_outturn_interconnectors_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| publish_date_time_from | datetime | [optional] | |
| publish_date_time_to | datetime | [optional] | |
| settlement_date_from | date | The settlement date from filter. This must be in the format yyyy-MM-dd. | [optional] |
| settlement_date_to | date | The settlement date to filter. This must be in the format yyyy-MM-dd. | [optional] |
| settlement_period | list[int] | [optional] | |
| interconnector_name | list[str] | [optional] | |
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json, application/xml, text/xml, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generation_outturn_summary_get
list[InsightsApiModelsResponsesGenerationOutturnGenerationBySettlementPeriod] generation_outturn_summary_get(start_time=start_time, end_time=end_time, include_negative_generation=include_negative_generation, format=format)
Historic generation automatically down-sampled (FUELINST)
⚠ This endpoint provides a down-sampled data summary intended for visualisation purposes. Use raw dataset endpoints under /datasets for full access.
Example
from __future__ import print_function
import time
import elexonpy
from elexonpy.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = elexonpy.GenerationApi()
start_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
end_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
include_negative_generation = true # bool | (optional)
format = 'format_example' # str | Response data format. Use json/xml to include metadata. (optional)
try:
# Historic generation automatically down-sampled (FUELINST)
api_response = api_instance.generation_outturn_summary_get(start_time=start_time, end_time=end_time,
include_negative_generation=include_negative_generation,
format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerationApi->generation_outturn_summary_get: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| start_time | datetime | [optional] | |
| end_time | datetime | [optional] | |
| include_negative_generation | bool | [optional] | |
| format | str | Response data format. Use json/xml to include metadata. | [optional] |
Return type
list[InsightsApiModelsResponsesGenerationOutturnGenerationBySettlementPeriod]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]