Skip to main content

Production Per Unit

UPDATED Thursday July 15, 10:08 PM PST

HTTP Request
GET https://wprice.io/api/v1/present/generation/productionPerUnit

This endpoint returns all (in MW)the electricity produced in the zone, broken down by production type.

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

Code samples#

cURL command
@ECHO OFF
curl -v -X GET "https://wprice.io/api/v1/present/generation/productionPerUnit?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'
{  "datetime": ["2021-05-18T17:55:00-04:00"],  "production": {"coal": [32032],                 "gas": [18803],                 "nuclear": [9609 ],                 "solar": [80],                 "unknown": [1700 ],                 "wind": [9384] },  "source": "misoenergy.org",  "storage": {},  "updated": "2021-05-18T17:55:00-04:00",  "zoneKey": "US-MISO"}

Error Response Samples#

(Click to expand ๐Ÿ‘‡ )