swagger_client.GenerationApi

July 10, 2024 · View on GitHub

All URIs are relative to https://data.elexon.co.uk/bmrs/api/v1

MethodHTTP requestDescription
generation_actual_per_type_day_total_getGET /generation/actual/per-type/day-totalCurrent snapshot of actual generation by fuel type categories (AGPT/B1620)
generation_actual_per_type_getGET /generation/actual/per-typeHistoric actual generation automatically down-sampled (AGPT/B1620)
generation_actual_per_type_wind_and_solar_getGET /generation/actual/per-type/wind-and-solarHistoric actual or estimated wind and solar power generation (AGWS/B1630)
generation_outturn_current_getGET /generation/outturn/currentCurrent snapshot of generation by fuel type categories (FUELINST, FUELHH)
generation_outturn_fuelinsthhcur_getGET /generation/outturn/FUELINSTHHCURThis endpoint is obsolete, and this location may be removed with no further notice.
generation_outturn_getGET /generation/outturnTotal generation outturn (FUELINST)
generation_outturn_half_hourly_interconnector_getGET /generation/outturn/halfHourlyInterconnectorThis endpoint is obsolete, and this location may be removed with no further notice.
generation_outturn_interconnectors_getGET /generation/outturn/interconnectorsHistoric half-hourly interconnector flows (FUELINST)
generation_outturn_summary_getGET /generation/outturn/summaryHistoric 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

NameTypeDescriptionNotes
formatstrResponse 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

NameTypeDescriptionNotes
_fromdatetime
todatetime
settlement_period_fromint[optional]
settlement_period_toint[optional]
formatstrResponse data format. Use json/xml to include metadata.[optional]

Return type

InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesTransparencyActualGenerationBySettlementPeriod

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

NameTypeDescriptionNotes
_fromdatetime
todatetime
settlement_period_fromint[optional]
settlement_period_toint[optional]
formatstrResponse data format. Use json/xml to include metadata.[optional]

Return type

InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesTransparencyActualGenerationWindSolar

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

NameTypeDescriptionNotes
fuel_typelist[str][optional]
formatstrResponse 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

NameTypeDescriptionNotes
formatstrResponse 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

NameTypeDescriptionNotes
_fromdatetime[optional]
todatetime[optional]
formatstrResponse data format. Use json/xml to include metadata.[optional]

Return type

InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesDemandOutturnRollingSystemDemand

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

NameTypeDescriptionNotes
formatstrResponse 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

NameTypeDescriptionNotes
publish_date_time_fromdatetime[optional]
publish_date_time_todatetime[optional]
settlement_date_fromdateThe settlement date from filter. This must be in the format yyyy-MM-dd.[optional]
settlement_date_todateThe settlement date to filter. This must be in the format yyyy-MM-dd.[optional]
settlement_periodlist[int][optional]
interconnector_namelist[str][optional]
formatstrResponse data format. Use json/xml to include metadata.[optional]

Return type

InsightsApiModelsResponsesResponseWithMetadata1InsightsApiModelsResponsesGenerationHalfHourlyInterconnectorOutturn

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

NameTypeDescriptionNotes
start_timedatetime[optional]
end_timedatetime[optional]
include_negative_generationbool[optional]
formatstrResponse 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]