Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A simple wrapper for the Elexon BMRS API

Project description


A simple wrapper for the Elexon BMRS API.


  1. Install with pip (recommended):
$ pip install elexon
  1. Alternatively, you can grab the latest source code from GitHub:
$ git clone
$ python install

Getting Started

  1. Register on the ELEXON Portal.
  2. Retrieve API Key.
  3. Replace API_KEY in the example below with your API Key.
  4. Profit.


Supported Elexon BMRS Reports

For the full list of namespaces, methods, parameters and data types see


from elexon import ElexonRawClient

api = ElexonRawClient('API_KEY') # available for free from the Elexon Portal

# Actual Aggregated Generation per Type
generation = api.Transparency.B1620(SettlementDate = '2020-01-01', Period = '5')
# Alternatively, use the general request() function by passing the endpoint in with the arguments:
generation = api.request('B1620', SettlementDate = '2020-01-01', Period = '5')


There have been cases where the wrapper/API doesn't behave due to inconsistencies or errors in Elexon's documentation.

If you believe you have come across a bug, please open a GitHub issue.


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Further Reading

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for elexon, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size elexon-0.2.0-py3-none-any.whl (12.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size elexon-0.2.0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page