Skip to main content

Statnett API Client

Project description

Statnett API Client

Client presents methods for reading real-time Nordic power balance data provided by the Norwegian Transmission System Operator (

The full list of topics accessible via Statnett REST API can be seen here.

Client supports reading of the following data:


To install the Client, simply use pip:

$ pip install statnett_api_client

Client initialization

Firstly, you need to initialize the client. By default, it will return data in json format. You can specify fmt parameter to receive data as pandas dataframe.

from statnett_api_client import Client

# this client will return json array
client = Client()
# this client will return pandas dataframe
client = Client(fmt='pandas')
# this client will return pandas dataframe with datetime index
client = Client(fmt='pandas', date2index=True)

By default, the time is in UTC. To add a column with Central European Time (CET), you need to specify time_cet parameter.

client = Client(fmt='pandas', time_cet=True)

Reading data

After you have set the client, you can read data from supported topics.

# read power flow 
flow = client.get('flow')
# read power balance
balance = client.get('balance')


The Client is released under MIT License.

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 statnett-api-client, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size statnett_api_client-0.1.0-py3-none-any.whl (5.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size statnett-api-client-0.1.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page