Skip to main content

Nodes

UPDATED Thursday July 15, 10:08 PM PST

HTTP Request
GET https://wprice.io/api/v1/present/zones/zoneInfo

This endpoint returns information on the nodes within a given zone (or if given geolocation, returns information on the closest node).

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/zones/zoneInfo?zone_key={string}&as_csv={boolean}"-H "x-api-key: {subscription key}"
--data-ascii "{body}"

Successful Response Samples#

HTTP 200 OK#

Above commands returns a json object containing all zones:

response for media types 'application/json' and 'text/json'

{  "US-MISO-Beluga": {    "name": "Beluga",    "operator": "Chugach Electric Assn Inc",    "county": "Kenai Peninsula",    "state": "AK",    "latitude": 61.1861,    "longitude": -151.0356,    "mainFuelCode": 3,    "mainFuelPercent": 100,    "capacity_rounded": 312.4,    "totalGen": 16667,    "capFactor": 0.0061  },  "US-MISO-Weston": {    "name": "Weston",    "operator": "Wisconsin Public Service Corp",    "county": "Marathon",    "state": "WI",    "latitude": 44.8606,    "longitude": -89.6553,    "mainFuelCode": 0,    "mainFuelPercent": 100,    "capacity_rounded": 1103.4,    "totalGen": 3850863,    "capFactor": 0.3984  }}

Error Response Samples#

(Click to expand ๐Ÿ‘‡ )