Skip to main content

MTL Forecast

UPDATED Thursday July 15, 10:08 PM PST

HTTP Request
GET https://wprice.io/api/v1/present/load/loadForecast

This endpoint returns the Medium-term load forecasts from the utility and/or load-balancing authorities themselves.

Requires an API Key

This feature is only available to WattPricer Account-holders.

Query Parameters#

ParameterDescriptionExamples
zone_keyA string representing the zone identifier. We use a combination of ISO 3166-1 alpha-2 country codes, ISO 3166-2 country subdivision code, and where applicable, ISO 639-1 language codes for our locale codes. See the /zones endpoint for a list of valid zones.US-MISO
as_csv (OPTIONAL)Boolean indicating whether to return the data in CSV format.true

Example Output#

The above command returns JSON with units in MW:

returned JSON data
[{  "datetime": "2021-04-20T04:56:00+00:00Z",  "mtlForecast": 54663.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T05:56:00+00:00Z",  "mtlForecast": 50617.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T06:56:00+00:00Z",  "mtlForecast": 46543.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T07:56:00+00:00Z",  "mtlForecast": 43890.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T08:56:00+00:00Z",  "mtlForecast": 42588.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T09:56:00+00:00Z",  "mtlForecast": 42350.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T10:56:00+00:00Z",  "mtlForecast": 41916.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T11:56:00+00:00Z",  "mtlForecast": 38570.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T12:56:00+00:00Z",  "mtlForecast": 33873.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T13:56:00+00:00Z",  "mtlForecast": 34426.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T14:56:00+00:00Z",  "mtlForecast": 40530.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T15:56:00+00:00Z",  "mtlForecast": 45934.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T16:56:00+00:00Z",  "mtlForecast": 48251.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T17:56:00+00:00Z",  "mtlForecast": 49560.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T18:56:00+00:00Z",  "mtlForecast": 50323.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T19:56:00+00:00Z",  "mtlForecast": 51170.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T20:56:00+00:00Z",  "mtlForecast": 51044.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T21:56:00+00:00Z",  "mtlForecast": 49567.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T22:56:00+00:00Z",  "mtlForecast": 46144.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-20T23:56:00+00:00Z",  "mtlForecast": 40341.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-21T00:56:00+00:00Z",  "mtlForecast": 34874.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-21T01:56:00+00:00Z",  "mtlForecast": 31010.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-21T02:56:00+00:00Z",  "mtlForecast": 28133.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"},{  "datetime": "2021-04-21T03:56:00+00:00Z",  "mtlForecast": 26915.0,  "source": "misoenergy.org",  "zoneKey": "US-MISO"}]

Code samples#

cURL command
@ECHO OFF
curl -v -X GET "https://wprice.io/api/v1/present/load/loadForecast?zone_key={string}&as_csv={boolean}"-H "x-api-key: {subscription key}"
--data-ascii "{body}"

Successful Response Samples#

HTTP 200 OK#

The above commands yield data such as the following (using zone_key=US-MISO):

response for media types 'application/json' and 'text/json'
{  "hour": ["04:56:00+00:00Z", "05:56:00+00:00Z", "06:56:00+00:00Z", "07:56:00+00:00Z", "08:56:00+00:00Z", "09:56:00+00:00Z", "10:56:00+00:00Z", "11:56:00+00:00Z", "12:56:00+00:00Z", "13:56:00+00:00Z", "14:56:00+00:00Z", "15:56:00+00:00Z", "16:56:00+00:00Z", "17:56:00+00:00Z", "18:56:00+00:00Z", "19:56:00+00:00Z",  "20:56:00+00:00Z", "21:56:00+00:00Z", "22:56:00+00:00Z", "23:56:00+00:00Z", "00:56:00+00:00Z",  "01:56:00+00:00Z",  "02:56:00+00:00Z", "03:56:00+00:00Z"],  "load": [54663.0,  50617.0, 46543.0, 43890.0, 42588.0, 42350.0, 41916.0, 38570.0, 33873.0, 34426.0, 40530.0,  45934.0, 48251.0, 49560.0, 50323.0, 51170.0, 51044.0, 49567.0, 46144.0, 40341.0, 34874.0, 31010.0, 28133.0, 26915.0],  "date": ["2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20",  "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-20", "2021-04-21T",  "2021-04-21T",  "2021-04-21T", "2021-04-21T"],  "datetime": "2021-04-28T04:56:00+00:00Z",  "source": "misoenergy.org",  "updated": "2021-04-28T04:56:00+00:00Z",  "zoneKey": "US-MISO"}

Error Response Samples#

(Click to expand ๐Ÿ‘‡ )