Access data#

Our Energy API allows you to access all the time series data which are available to you on the API Docs page. If you want a tutorial to our API using swagger please see our swagger page. For Postman setup please see our postman page.

Get metadata#

Metadata on a time series is available through the API. This includes information such as the series ID, description, unit, resolution, and the start and end dates of the series. The /api/v1/metadata endpoint provides metadata on the series and datasets available to you. Additionally, many endpoints reference other endpoints that show the allowed data values for their parameters. For example, the /api/v1/power-balance-forecast/short-term endpoint has a parameter for area, and the allowed values can be found at the /api/v1/power-balance-forecast/areas endpoint.

Retrieve data from the API#

Now lets get trough some examples of how to retrieve data from the API. What we will show first doing a request to /api/v1/power-balance-forecast/areas to get a list of allowed area that is allowed and then doing a request to /api/v1/power-balance-forecast/short-term to get the forecast data.

GET /api/v1/power-balance-forecast/short-term/areas

List of analyzed domains and codes.

Content-Type:

application/json

Example Request

curl --location --request GET 'https://energy-api.stormgeo.com/api/v1/power-balance-forecast/areas' \

Example Response

Retrieve data from the API (continued)#

for the next example we will do a request to /api/v1/power-balance-forecast/short-term to get the forecast data.

GET /api/v1/power-balance-forecast/short-term

Get short-term model result(s).

Note: You should replace <your-access-token> with the bearer token from login request.

query:
{
    "area": "string",
    "balanceCategory": "string",
    "issueTime": "string <date-time>",
    "startDate": "string <date-time>",
    "endDate": "string <date-time>"
}
Content-Type:

application/json

headers:
{"Authorization": "Bearer <your-access-token>"}

Example Request

curl --location --request GET 'https://energy-api.stormgeo.com/api/v1/power-balance-forecast/short-term?area=<area>&balanceCategory=<balanceCategory>&issueTime=<issueTime>&startDate=<startDate>&endDate=<endDate>' \
--header 'Authorization: Bearer <your-access-token>'

Example Response