# Power: API reference

5 endpoints. Base URL `https://princegeorgepulse.ca/api/v1`. Conventions (envelope, paging, fields, formats, limits) are on the [overview](https://princegeorgepulse.ca/developers/). [All endpoints](https://princegeorgepulse.ca/developers/reference/).

## GET /api/v1/power/outages {#get-power-outages}

BC Hydro outages within 150 km, nearest first and a page at a time, with totals by town, regional and provincial totals.

`nearby` is one page of the outages within `radiusKm` (nearest first; `limit`, `offset`, `links.next`); `nearbyTotals` and `byMunicipality` always count every nearby outage, so a page never under-reports a storm. `meta.total` is the number of nearby outages that match `within`. Outage outlines (`polygon`, up to 60 points each) are included unless `polygons=false`.

- Cache: 5 min (`Cache-Control: public, max-age=300, s-maxage=300, stale-while-revalidate=600`); live source, also cached on our server
- Source: [BC Hydro outage map data](https://www.bchydro.com/power-outages/app/outage-map.html)
- Licence: © BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `within` | query | number | Only outages within this many km of downtown (default: the whole radius). Example: `25`. |
| `polygons` | query | boolean | Include each outage outline (default true). |
| `limit` | query | integer | Outages per page (default 50, max 500). Example: `20`. |
| `offset` | query | integer | Outages to skip. Use `links.next` to page. |

Also accepts `fields` (sparse fieldset) and `format` (`json`, `md`).

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/power/outages?limit=10&polygons=false"
```

**Example response** (trimmed)

```json
{
  "data": {
    "nearby": [],
    "nearbyTotals": {
      "outages": 0,
      "customers": 0
    },
    "byMunicipality": [],
    "region": {
      "outages": 4,
      "customers": 9
    },
    "province": {
      "outages": 33,
      "customers": 873
    },
    "radiusKm": 150
  },
  "meta": {
    "source": "BC Hydro outage map data",
    "sourceUrl": "https://www.bchydro.com/power-outages/app/outage-map.html",
    "updatedAt": "2026-11-30T20:38:49.462Z",
    "ageSec": 179,
    "license": "© BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status",
    "attribution": "BC Hydro, via PG Pulse (princegeorgepulse.ca)",
    "total": 0,
    "count": 0,
    "limit": 10,
    "offset": 0
  },
  "links": {
    "self": "/api/v1/power/outages?limit=10&polygons=false",
    "next": null,
    "docs": "/developers/reference/power/#get-power-outages"
  }
}
```

## GET /api/v1/power/at {#get-power-at}

Is the power out at an address or point? The BC Hydro outage covering it, else the nearest ones.

Pass `address` (a street address in Prince George, located with the BC Address Geocoder) or `near=lat,lng`. `outage` is the current BC Hydro outage at the point (null when none is): `match: block` when BC Hydro's area lists the address's block of the street (`n block STREET`), `outline` when the outage outline contains the point; with the estimated restoration time (`etr`) when BC Hydro has one; `nearest` lists up to three other outages within 5 km. Outage outlines are approximate, so a point just outside one may still be in it. Only outages within the radius of /power/outages are checked.

- Cache: 5 min (`Cache-Control: public, max-age=300, s-maxage=300, stale-while-revalidate=600`); live source, also cached on our server
- Source: [BC Hydro outage map data](https://www.bchydro.com/power-outages/app/outage-map.html)
- Licence: © BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `address` | query | string | Street address in Prince George. Example: `1100 Patricia Blvd`. |
| `near` | query | string | Point as `lat,lng`. |

Also accepts `fields` (sparse fieldset) and `format` (`json`, `md`).

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/power/at?address=1100%20Patricia%20Blvd"
```

**Example response** (trimmed)

```json
{
  "data": {
    "lat": 53.9127255,
    "lng": -122.7451883,
    "address": "1100 Patricia Blvd, Prince George, BC",
    "outage": null,
    "nearest": []
  },
  "meta": {
    "source": "BC Hydro outage map data",
    "sourceUrl": "https://www.bchydro.com/power-outages/app/outage-map.html",
    "updatedAt": "2026-11-30T20:38:49.462Z",
    "ageSec": 180,
    "license": "© BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status",
    "attribution": "BC Hydro, via PG Pulse (princegeorgepulse.ca)",
    "geocoder": "BC Address Geocoder (DataBC), Open Government Licence – British Columbia"
  },
  "links": {
    "self": "/api/v1/power/at?address=1100%20Patricia%20Blvd",
    "next": null,
    "docs": "/developers/reference/power/#get-power-at"
  }
}
```

## GET /api/v1/power/outages/log {#get-power-outages-log}

Past and current BC Hydro outages near Prince George, as recorded from the outage map: area, cause, customers, start and end.

Recorded from BC Hydro's outage map on every refresh (every few minutes). `end` is the last time the outage was on the map (null while it is on), so it is accurate to the refresh interval; `customersMax` is the most customers it affected at once. Kept about 400 days; `meta.since` is when the record starts.

- Cache: 5 min (`Cache-Control: public, max-age=300, s-maxage=300, stale-while-revalidate=600`)
- Source: [BC Hydro outage map data](https://www.bchydro.com/power-outages/app/outage-map.html)
- Licence: © BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status
- Paginated: `limit` (default 50, max 500) and `offset`; also `format=csv`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `days` | query | number | How far back, 1 to 400 (default 30). Example: `7`. |
| `within` | query | number | Only within this many km of downtown. Example: `25`. |
| `limit` | query | integer | Items per page (default 50, max 500 unless noted). Example: `20`. |
| `offset` | query | integer | Items to skip. Use `links.next` to page. Example: `0`. |

Also accepts `fields` (sparse fieldset) and `format` (`json`, `md`, `csv`).

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/power/outages/log"
```

**Example response** (trimmed)

```json
{
  "data": [
    {
      "id": "bchydro:2874824",
      "municipality": "Quesnel",
      "area": "East-West of PINNACLES RD",
      "cause": "Planned work being done on our equipment",
      "customers": 7,
      "customersMax": 7,
      "start": "2026-11-30T18:29:05.000Z",
      "end": "2026-11-30T19:39:48.576Z",
      "minutes": 71,
      "distanceKm": 104,
      "lat": 52.987048,
      "lng": -122.564011,
      "…": "2 more keys"
    },
    {
      "id": "bchydro:2874758",
      "municipality": "Quesnel",
      "area": "North of DODDS AVE, West of FRASER DR, South of BLACKWATER RD, East of STUBBINGTON RD",
      "cause": "Planned work being done on our equipment",
      "customers": 75,
      "customersMax": 75,
      "start": "2026-11-30T16:47:49.000Z",
      "end": "2026-11-30T18:39:48.434Z",
      "minutes": 112,
      "distanceKm": 104,
      "lat": 52.989659,
      "lng": -122.539128,
      "…": "2 more keys"
    },
    "… 48 more"
  ],
  "meta": {
    "source": "BC Hydro outage map data",
    "sourceUrl": "https://www.bchydro.com/power-outages/app/outage-map.html",
    "updatedAt": "2026-11-30T20:41:48.867Z",
    "ageSec": 0,
    "license": "© BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status",
    "attribution": "BC Hydro, via PG Pulse (princegeorgepulse.ca)",
    "days": 30,
    "since": "2026-11-08T02:57:08.051Z",
    "total": 902,
    "count": 50,
    "limit": 50,
    "offset": 0
  },
  "links": {
    "self": "/api/v1/power/outages/log",
    "next": "/api/v1/power/outages/log?offset=50",
    "docs": "/developers/reference/power/#get-power-outages-log"
  }
}
```

## GET /api/v1/power/rates {#get-power-rates}

BC Hydro residential rates (tiered, flat and time-of-day).

- Cache: 5 min in browsers, 24 h in shared caches (`Cache-Control: public, max-age=300, s-maxage=86400, stale-while-revalidate=172800`)
- Source: [BC Hydro, residential rates (tiered, flat and time-of-day pricing pages)](https://www.bchydro.com/accounts-billing/rates-energy-use/electricity-rates/residential-rates.html)
- Licence: BC Hydro published rates, with attribution

Also accepts `fields` (sparse fieldset) and `format` (`json`, `md`).

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/power/rates"
```

**Example response** (trimmed)

```json
{
  "data": {
    "source": "BC Hydro, Residential rates (tiered rate, flat rate and time-of-day pricing pages)",
    "sourceUrl": "https://www.bchydro.com/accounts-billing/rates-energy-use/electricity-rates/residential-rates.html",
    "asOf": "2026-09-30",
    "notes": "Rates as published on bchydro.com, checked weekly; these values were first seen on 2026-09-30. Estimates exclude GST and any rate riders or regional charges; your actual bill may differ.",
    "tiered": {
      "url": "https://www.bchydro.com/accounts-billing/rates-energy-use/electricity-rates/residential-rates/tiered.html",
      "basicChargeCentsPerDay": 23.44,
      "tier1CentsPerKwh": 11.87,
      "tier2CentsPerKwh": 14.08,
      "tier1KwhPerDay": 22.1918,
      "tier1ThresholdMonthlyKwh": 675,
      "tier1ThresholdBimonthlyKwh": 1350
    },
    "flat": {
      "url": "https://www.bchydro.com/accounts-billing/rates-energy-use/electricity-rates/residential-rates/flat.html",
      "basicChargeCentsPerDay": 25,
      "energyCentsPerKwh": 12.7
    },
    "timeOfDay": {
      "url": "https://www.bchydro.com/accounts-billing/rates-energy-use/electricity-rates/residential-rates/time-of-day.html",
      "onPeakSurchargeCentsPerKwh": 5,
      "onPeakHours": "4 to 9 p.m.",
      "overnightDiscountCentsPerKwh": 5,
      "overnightHours": "11 p.m. to 7 a.m.",
      "offPeakHours": "7 a.m. to 4 p.m. and 9 to 11 p.m."
    }
  },
  "meta": {
    "source": "BC Hydro, Residential rates (tiered rate, flat rate and time-of-day pricing pages)",
    "sourceUrl": "https://www.bchydro.com/accounts-billing/rates-energy-use/electricity-rates/residential-rates.html",
    "updatedAt": "2026-10-01T04:27:28.898Z",
    "ageSec": 5242460,
    "license": "BC Hydro published rates, with attribution",
    "attribution": "BC Hydro, via PG Pulse (princegeorgepulse.ca)",
    "dataset": "bchydro-rates",
    "asOf": "2026-09-30"
  },
  "links": {
    "self": "/api/v1/power/rates",
    "next": null,
    "docs": "/developers/reference/power/#get-power-rates"
  }
}
```

## GET /api/v1/power/outages/history {#get-power-outages-history}

Recorded BC Hydro outage counts and customers affected (nearby, Northern region, province).

- Cache: 5 min (`Cache-Control: public, max-age=300, s-maxage=300, stale-while-revalidate=600`)
- Source: [PG Pulse live history: readings recorded from Open-Meteo, ECCC, Water Survey of Canada, BC Hydro, BC Wildfire Service, DriveBC, NOAA SWPC and NOAA AWC on every refresh](https://princegeorgepulse.ca/dashboard/)
- Licence: Mixed: see each item’s source

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `series` | query | string | Only some of: outages.nearby.count, outages.nearby.customers, outages.region.count, outages.region.customers, outages.province.count, outages.province.customers. |
| `from` | query | string | Start: ISO date/datetime, or a span back from `to` such as 48h, 7d or 30d (default 7d). Example: `7d`. |
| `to` | query | string | End: ISO date/datetime (default now). |
| `interval` | query | string | `raw` (every recorded reading; kept 90 days), `hour` or `day` (hourly rollups, kept indefinitely), or `auto` (raw up to 3 days, hourly up to 120 days, then daily). One of: `auto`, `raw`, `hour`, `day`. |

Also accepts `fields` (sparse fieldset) and `format` (`json`, `md`).

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/power/outages/history?from=48h"
```

**Example response** (trimmed)

```json
{
  "data": [
    {
      "series": "outages.nearby.count",
      "label": "Power outages within 150 km",
      "unit": "outages",
      "interval": "raw",
      "truncated": false,
      "points": [
        {
          "t": "2026-11-28T20:45:00.000Z",
          "value": 2
        },
        {
          "t": "2026-11-28T20:50:00.000Z",
          "value": 2
        },
        "… 573 more"
      ]
    },
    {
      "series": "outages.nearby.customers",
      "label": "Customers without power within 150 km",
      "unit": "customers",
      "interval": "raw",
      "truncated": false,
      "points": [
        {
          "t": "2026-11-28T20:45:00.000Z",
          "value": 3
        },
        {
          "t": "2026-11-28T20:50:00.000Z",
          "value": 3
        },
        "… 573 more"
      ]
    },
    "… 4 more"
  ],
  "meta": {
    "source": "BC Hydro outage map data",
    "sourceUrl": "https://www.bchydro.com/power-outages/app/outage-map.html",
    "updatedAt": "2026-11-30T20:35:00.000Z",
    "ageSec": 409,
    "license": "© BC Hydro. Public outage information, not openly licensed: shown with credit and a link to BC Hydro; check BC Hydro for current status",
    "attribution": "The upstream named in each series (`meta.series.source`), via PG Pulse (princegeorgepulse.ca)",
    "from": "2026-11-28T20:41:48.000Z",
    "to": "2026-11-30T20:41:48.000Z",
    "interval": "raw",
    "series": [
      {
        "id": "outages.nearby.count",
        "source": "BC Hydro outage map data"
      },
      {
        "id": "outages.nearby.customers",
        "source": "BC Hydro outage map data"
      },
      "… 4 more"
    ],
    "total": 6,
    "count": 6
  },
  "links": {
    "self": "/api/v1/power/outages/history?from=48h",
    "next": null,
    "docs": "/developers/reference/power/#get-power-outages-history"
  }
}
```
