Skip to main content

Production Total

UPDATED Thursday July 15, 10:08 PM PST

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

This endpoint retrieves the last 24h of power consumption and production breakdown of an area, which represents the physical origin of electricity broken down by production type. It can either be queried by zone identifier or by geolocation. The resolution is 15 minutes (sampled).

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/production?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 ๐Ÿ‘‡ )