# Weather: API reference

14 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/weather {#get-weather}

Full weather payload: now, official ECCC forecast, today, yesterday, model hourly and daily, normals, alerts, almanac.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)](https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750)
- Licence: CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

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

**Example response** (trimmed)

```json
{
  "data": {
    "now": {
      "temp": -3.2,
      "feelsLike": -7,
      "feelsKind": "wind chill",
      "humidity": 100,
      "dewpoint": -3.2,
      "code": 3,
      "isDay": true,
      "condition": "Cloudy",
      "icon": "Cloud",
      "windKmh": 9,
      "windDir": 350,
      "gustKmh": null,
      "…": "12 more keys"
    },
    "official": {
      "issued": "2026-11-30T18:00:00Z",
      "hourlyIssued": "2026-11-30T18:00:00Z",
      "periods": [
        {
          "name": "Today",
          "summary": "Cloudy. Light snow beginning near noon. Wind north 20 km/h becoming light near noon. High minus 2. Wind chill minus 10 this morning and minus 4 this afternoon.",
          "short": "Light snow",
          "night": false,
          "icon": "CloudSnow",
          "high": -2,
          "low": null,
          "pop": null,
          "uv": null
        },
        {
          "name": "Tonight",
          "summary": "Snow. Amount 5 to 10 cm. Wind becoming south 20 km/h near midnight. Low minus 4. Wind chill minus 4 this evening and minus 10 overnight.",
          "short": "Snow",
          "night": true,
          "icon": "CloudSnow",
          "high": null,
          "low": -4,
          "pop": null,
          "uv": null
        },
        "… 11 more"
      ],
      "hourly": [
        {
          "t": "2026-11-30T21:00:00Z",
          "temp": -3,
          "condition": "Light snow",
          "pop": 100,
          "windKmh": 15,
          "windDir": "N",
          "gustKmh": null,
          "uv": null,
          "isDay": true,
          "icon": "CloudSnow"
        },
        {
          "t": "2026-11-30T22:00:00Z",
          "temp": -3,
          "condition": "Light snow",
          "pop": 100,
          "windKmh": 15,
          "windDir": "N",
          "gustKmh": null,
          "uv": null,
          "isDay": true,
          "icon": "CloudSnow"
        },
        "… 22 more"
      ]
    },
    "today": {
      "observedHigh": -3.1,
      "observedLow": -6.3,
      "observedPrecipMm": 0.2,
      "mode": "day",
      "forecastHigh": -2,
      "tonightLow": -4,
      "tomorrowHigh": -1,
      "tomorrowName": "Tuesday",
      "high": -2,
      "low": -6.3
    },
    "yesterday": {
      "high": -1.6,
      "low": -7.4,
      "precipMm": 0,
      "precipTrace": false,
      "gustKmh": null,
      "gustDir": null
    },
    "hourly": {
      "time": [
        "2026-11-30T13:00:00-07:00",
        "2026-11-30T14:00:00-07:00",
        "… 46 more"
      ],
      "temp": [
        0.1,
        0.8,
        "… 46 more"
      ],
      "feels": [
        -4,
        -3.3,
        "… 46 more"
      ],
      "pop": [
        0,
        0,
        "… 46 more"
      ],
      "precip": [
        0,
        0,
        "… 46 more"
      ],
      "code": [
        3,
        3,
        "… 46 more"
      ],
      "wind": [
        9.6,
        8.8,
        "… 46 more"
      ],
      "gust": [
        21.6,
        21.2,
        "… 46 more"
      ],
      "dir": [
        41,
        44,
        "… 46 more"
      ],
      "uv": [
        0.8,
        0.8,
        "… 46 more"
      ],
      "isDay": [
        1,
        1,
        "… 46 more"
      ]
    },
    "daily": [
      {
        "date": "2026-11-30",
        "code": 71,
        "max": -2,
        "min": -6.3,
        "precip": 0.7,
        "pop": 96,
        "snow": 0.49,
        "wind": 9.9,
        "gust": 21.6,
        "dir": 34,
        "uv": 0.8,
        "sunshineH": 1.4,
        "…": "3 more keys"
      },
      {
        "date": "2026-12-01",
        "code": 73,
        "max": 1.1,
        "min": -3.6,
        "precip": 2.6,
        "pop": 100,
        "snow": 1.89,
        "wind": 11.9,
        "gust": 23.4,
        "dir": 201,
        "uv": 0.95,
        "sunshineH": 5.7,
        "…": "3 more keys"
      },
      "… 14 more"
    ],
    "textForecast": [
      {
        "name": "Today",
        "summary": "Cloudy. Light snow beginning near noon. Wind north 20 km/h becoming light near noon. High minus 2. Wind chill minus 10 this morning and minus 4 this afternoon."
      },
      {
        "name": "Tonight",
        "summary": "Snow. Amount 5 to 10 cm. Wind becoming south 20 km/h near midnight. Low minus 4. Wind chill minus 4 this evening and minus 10 overnight."
      },
      "… 11 more"
    ],
    "normals": {
      "high": -3,
      "low": -11
    },
    "alerts": [],
    "sun": {
      "sunrise": "2026-11-30T16:05:00Z",
      "sunset": "2026-11-30T23:55:00Z"
    },
    "almanac": {
      "date": "2026-11-30",
      "records": {
        "high": 12.2,
        "highYear": 1941,
        "low": -32.3,
        "lowYear": 1985,
        "coldestHigh": -21.5,
        "coldestHighYear": 1985,
        "warmestLow": 5,
        "warmestLowYear": 1969,
        "precipMm": 15.5,
        "precipYear": 1964,
        "snowCm": 16.5,
        "snowYear": 1964,
        "…": "3 more keys"
      },
      "month": {
        "index": 10,
        "period": "1991–2020",
        "station": "Prince George Airport",
        "source": "Environment and Climate Change Canada, Canadian Climate Normals 1991–2020, Prince George (climate ID 1096439)",
        "sourceUrl": "https://climate.weather.gc.ca/climate_normals/results_1991_2020_e.html?searchType=stnName&txtStationName=prince+george&searchMethod=contains&txtCentralLatMin=0&txtCentralLatSec=0&txtCentralLongMin=0&txtCentralLongSec=…",
        "values": {
          "meanMax": 1.3,
          "meanMin": -5.5,
          "meanTemp": -2.1,
          "precipMm": 56.7,
          "rainMm": 26.5,
          "snowCm": 34.5,
          "precipDays": 15.8,
          "daysPrecip1mm": 11,
          "rainDays": 7.2,
          "snowDays": 10.3,
          "snowDepthCm": 3,
          "rhMorning": 86.2,
          "…": "15 more keys"
        },
        "extremes": {
          "maxTemp": "{…}",
          "minTemp": "{…}",
          "humidex": "{…}",
          "windChill": "{…}",
          "gustKmh": "{…}",
          "snowDepthCm": "{…}",
          "precipMm": "{…}"
        }
      },
      "frost": {
        "lastSpringFrost": "May 22",
        "firstFallFrost": "Sep 7",
        "frostFreeDays": 107
      }
    }
  },
  "meta": {
    "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)",
    "sourceUrl": "https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Open-Meteo.com and Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather"
  }
}
```

## GET /api/v1/weather/now {#get-weather-now}

Current conditions (official observation), today so far and yesterday.

`feelsLike` is the wind chill (at or below 0 °C with wind of at least 5 km/h) or the humidex (20 °C or warmer, humidex 25 or more), named in `feelsKind`; otherwise it equals `temp` and `feelsKind` is null. `gustKmh` is an observed gust only (`gustSource` ECCC or METAR); `modelGustKmh` is the model forecast for the hour. `visibilityKm`, `fog` and `presentWeather` come from the city page and the airport METAR.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)](https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750)
- Licence: CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/now"
```

**Example response** (trimmed)

```json
{
  "data": {
    "temp": -3.2,
    "feelsLike": -7,
    "feelsKind": "wind chill",
    "humidity": 100,
    "dewpoint": -3.2,
    "code": 3,
    "isDay": true,
    "condition": "Cloudy",
    "icon": "Cloud",
    "windKmh": 9,
    "windDir": 350,
    "gustKmh": null,
    "…": "16 more keys"
  },
  "meta": {
    "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)",
    "sourceUrl": "https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Open-Meteo.com and Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/now",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-now"
  }
}
```

## GET /api/v1/weather/official {#get-weather-official}

Environment Canada forecast: text periods (today, tonight, ...) with high/low, POP and UV, and the official 24-hour hourly forecast.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada, city page weather bc-79](https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750)
- Licence: Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/official"
```

**Example response** (trimmed)

```json
{
  "data": {
    "issued": "2026-11-30T18:00:00Z",
    "hourlyIssued": "2026-11-30T18:00:00Z",
    "periods": [
      {
        "name": "Today",
        "summary": "Cloudy. Light snow beginning near noon. Wind north 20 km/h becoming light near noon. High minus 2. Wind chill minus 10 this morning and minus 4 this afternoon.",
        "short": "Light snow",
        "night": false,
        "icon": "CloudSnow",
        "high": -2,
        "low": null,
        "pop": null,
        "uv": null
      },
      {
        "name": "Tonight",
        "summary": "Snow. Amount 5 to 10 cm. Wind becoming south 20 km/h near midnight. Low minus 4. Wind chill minus 4 this evening and minus 10 overnight.",
        "short": "Snow",
        "night": true,
        "icon": "CloudSnow",
        "high": null,
        "low": -4,
        "pop": null,
        "uv": null
      },
      "… 11 more"
    ],
    "hourly": [
      {
        "t": "2026-11-30T21:00:00Z",
        "temp": -3,
        "condition": "Light snow",
        "pop": 100,
        "windKmh": 15,
        "windDir": "N",
        "gustKmh": null,
        "uv": null,
        "isDay": true,
        "icon": "CloudSnow"
      },
      {
        "t": "2026-11-30T22:00:00Z",
        "temp": -3,
        "condition": "Light snow",
        "pop": 100,
        "windKmh": 15,
        "windDir": "N",
        "gustKmh": null,
        "uv": null,
        "isDay": true,
        "icon": "CloudSnow"
      },
      "… 22 more"
    ]
  },
  "meta": {
    "source": "Environment and Climate Change Canada, city page weather bc-79",
    "sourceUrl": "https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/official",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-official"
  }
}
```

## GET /api/v1/weather/observations {#get-weather-observations}

Past 24 hours observed at the airport, hour by hour: temperature, dew point, humidity, wind, precipitation, snow depth, pressure, visibility, fog.

Hourly SWOB observations from the airport auto station, with the lowest METAR visibility, present weather and highest gust in each hour. `today` is the observed high, low and precipitation since local midnight.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (SWOB realtime observations, stations 1096453 and 1096454); NOAA Aviation Weather Center (METAR CYXS)](https://api.weather.gc.ca/collections/swob-realtime)
- Licence: Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/); Public domain (US Government work, NOAA Aviation Weather Center)
- Paginated: `limit` (default 25, max 30) and `offset`; also `format=csv`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `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/weather/observations"
```

**Example response** (trimmed)

```json
{
  "data": [
    {
      "t": "2026-11-30T20:00:00.000Z",
      "temp": -3.1,
      "tempMax": -3.1,
      "tempMin": -3.8,
      "dewpoint": -4.2,
      "humidity": 92,
      "windKmh": 11.4,
      "windMaxKmh": 19.2,
      "windDir": 338,
      "precipMm": 0,
      "snowDepthCm": 0,
      "pressureKpa": 100.4,
      "…": "4 more keys"
    },
    {
      "t": "2026-11-30T19:00:00.000Z",
      "temp": -3.8,
      "tempMax": -3.6,
      "tempMin": -4.2,
      "dewpoint": -4.7,
      "humidity": 93,
      "windKmh": 16.7,
      "windMaxKmh": 26,
      "windDir": 360,
      "precipMm": 0.2,
      "snowDepthCm": 0,
      "pressureKpa": 100.4,
      "…": "4 more keys"
    },
    "… 23 more"
  ],
  "meta": {
    "source": "Environment and Climate Change Canada (SWOB realtime observations, stations 1096453 and 1096454); NOAA Aviation Weather Center (METAR CYXS)",
    "sourceUrl": "https://api.weather.gc.ca/collections/swob-realtime",
    "updatedAt": "2026-11-30T20:34:49.591Z",
    "ageSec": 422,
    "license": "Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/); Public domain (US Government work, NOAA Aviation Weather Center)",
    "attribution": "Environment and Climate Change Canada and NOAA Aviation Weather Center, via PG Pulse (princegeorgepulse.ca)",
    "total": 25,
    "count": 25,
    "limit": 25,
    "offset": 0
  },
  "links": {
    "self": "/api/v1/weather/observations",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-observations"
  }
}
```

## GET /api/v1/weather/observations/summary {#get-weather-observations-summary}

Observed today so far, pressure trend, snow depth, latest METAR and hours of fog in the past 24 hours.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (SWOB realtime observations, stations 1096453 and 1096454); NOAA Aviation Weather Center (METAR CYXS)](https://api.weather.gc.ca/collections/swob-realtime)
- Licence: Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/); Public domain (US Government work, NOAA Aviation Weather Center)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/observations/summary"
```

**Example response** (trimmed)

```json
{
  "data": {
    "airport": {
      "name": "Prince George Airport (auto)",
      "id": "1096453",
      "elevationM": 680
    },
    "today": {
      "high": -3.1,
      "highAt": "2026-11-30T20:00:00.000Z",
      "low": -6.3,
      "lowAt": "2026-11-30T09:00:00.000Z",
      "precipMm": 0.2,
      "hours": 13
    },
    "pressureTrend": {
      "trend": "falling",
      "changeKpa": -0.1,
      "t": "2026-11-30T20:00:00.000Z"
    },
    "snowDepthCm": 0,
    "metar": {
      "t": "2026-11-30T20:00:00.000Z",
      "visibilityKm": 14.5,
      "weather": null,
      "gustKmh": null,
      "raw": "METAR CYXS 302000Z AUTO 35005KT 9SM OVC140 M03/M03 A2952 RMK SLP035"
    },
    "fogHours24": 3
  },
  "meta": {
    "source": "Environment and Climate Change Canada (SWOB realtime observations, stations 1096453 and 1096454); NOAA Aviation Weather Center (METAR CYXS)",
    "sourceUrl": "https://api.weather.gc.ca/collections/swob-realtime",
    "updatedAt": "2026-11-30T20:34:49.591Z",
    "ageSec": 422,
    "license": "Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/); Public domain (US Government work, NOAA Aviation Weather Center)",
    "attribution": "Environment and Climate Change Canada and NOAA Aviation Weather Center, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/observations/summary",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-observations-summary"
  }
}
```

## GET /api/v1/weather/inversion {#get-weather-inversion}

Inversion watch: the airport (plateau) vs a valley station, now and for the past 24 hours.

`diff` is valley minus airport in °C. In well-mixed air the lower valley station is slightly warmer; when it is colder, cold air is pooling in the valley (a temperature inversion), which traps smoke and pollution. `state`: strong (≤ −3), inversion (≤ −1), weak (below 0), mixed.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (SWOB realtime observations, stations 1096453 and 1096454); NOAA Aviation Weather Center (METAR CYXS)](https://api.weather.gc.ca/collections/swob-realtime)
- Licence: Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/); Public domain (US Government work, NOAA Aviation Weather Center)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/inversion"
```

**Example response** (trimmed)

```json
{
  "data": {
    "airport": {
      "name": "Prince George Airport (auto)",
      "id": "1096453",
      "elevationM": 680,
      "t": "2026-11-30T20:33:00.000Z",
      "temp": -2.6,
      "humidity": 90,
      "windKmh": 10.5,
      "snowDepthCm": 0
    },
    "valley": {
      "name": "Massey (downtown, in the Bowl)",
      "id": "1096454",
      "elevationM": 602,
      "t": "2026-11-30T20:33:00.000Z",
      "temp": -0.4,
      "humidity": 75,
      "windKmh": 2.4,
      "snowDepthCm": null
    },
    "diff": 2.2,
    "state": "mixed",
    "hours": [
      {
        "t": "2026-11-29T20:00:00.000Z",
        "airport": -3.1,
        "valley": -2.2,
        "diff": 0.9
      },
      {
        "t": "2026-11-29T21:00:00.000Z",
        "airport": -2.6,
        "valley": -1.1,
        "diff": 1.5
      },
      "… 23 more"
    ]
  },
  "meta": {
    "source": "Environment and Climate Change Canada (SWOB realtime observations, stations 1096453 and 1096454); NOAA Aviation Weather Center (METAR CYXS)",
    "sourceUrl": "https://api.weather.gc.ca/collections/swob-realtime",
    "updatedAt": "2026-11-30T20:34:49.591Z",
    "ageSec": 422,
    "license": "Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/); Public domain (US Government work, NOAA Aviation Weather Center)",
    "attribution": "Environment and Climate Change Canada and NOAA Aviation Weather Center, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/inversion",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-inversion"
  }
}
```

## GET /api/v1/weather/radar {#get-weather-radar}

Radar and lightning frame times (last 3 hours) for the ECCC GeoMet WMS layers, with the map bounding box.

Request a frame with a WMS GetMap call to `wms` (version 1.3.0, CRS EPSG:4326, bbox lat/lng order) with `layers` set to a layer id and `time` to one of its times. Tiles are served by ECCC; this endpoint only lists what is available.

- Cache: 5 min (`Cache-Control: public, max-age=300, s-maxage=300, stale-while-revalidate=600`); live source, also cached on our server
- Source: [Environment and Climate Change Canada, MSC GeoMet (1 km radar composite and lightning density)](https://eccc-msc.github.io/open-data/msc-geomet/readme_en/)
- Licence: Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/radar"
```

**Example response** (trimmed)

```json
{
  "data": {
    "wms": "https://geo.weather.gc.ca/geomet",
    "bbox": [
      51.7171,
      -126.3497,
      "… 2 more"
    ],
    "layers": [
      {
        "id": "RADAR_1KM_RRAI",
        "label": "Rain",
        "times": [
          "2026-11-30T17:36:00Z",
          "2026-11-30T17:42:00Z",
          "… 29 more"
        ]
      },
      {
        "id": "RADAR_1KM_RSNO",
        "label": "Snow",
        "times": [
          "2026-11-30T17:36:00Z",
          "2026-11-30T17:42:00Z",
          "… 29 more"
        ]
      }
    ],
    "lightning": {
      "id": "Lightning_2.5km_Density",
      "times": [
        "2026-11-30T17:30:00Z",
        "2026-11-30T17:40:00Z",
        "… 17 more"
      ]
    }
  },
  "meta": {
    "source": "Environment and Climate Change Canada, MSC GeoMet (1 km radar composite and lightning density)",
    "sourceUrl": "https://eccc-msc.github.io/open-data/msc-geomet/readme_en/",
    "updatedAt": "2026-11-30T20:41:52.188Z",
    "ageSec": 0,
    "license": "Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Environment and Climate Change Canada (MSC GeoMet), via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/radar",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-radar"
  }
}
```

## GET /api/v1/weather/almanac {#get-weather-almanac}

Today in Prince George weather history: records for the date and this month's 1991–2020 normals and extremes.

- Cache: 5 min in browsers, 1 h in shared caches (`Cache-Control: public, max-age=300, s-maxage=3600, stale-while-revalidate=7200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada, daily climate records (LTCE) and Canadian Climate Normals 1991–2020](https://climate.weather.gc.ca/)
- Licence: Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/almanac"
```

**Example response** (trimmed)

```json
{
  "data": {
    "date": "2026-11-30",
    "records": {
      "high": 12.2,
      "highYear": 1941,
      "low": -32.3,
      "lowYear": 1985,
      "coldestHigh": -21.5,
      "coldestHighYear": 1985,
      "warmestLow": 5,
      "warmestLowYear": 1969,
      "precipMm": 15.5,
      "precipYear": 1964,
      "snowCm": 16.5,
      "snowYear": 1964,
      "…": "3 more keys"
    },
    "month": {
      "index": 10,
      "period": "1991–2020",
      "station": "Prince George Airport",
      "source": "Environment and Climate Change Canada, Canadian Climate Normals 1991–2020, Prince George (climate ID 1096439)",
      "sourceUrl": "https://climate.weather.gc.ca/climate_normals/results_1991_2020_e.html?searchType=stnName&txtStationName=prince+george&searchMethod=contains&txtCentralLatMin=0&txtCentralLatSec=0&txtCentralLongMin=0&txtCentralLongSec=…",
      "values": {
        "meanMax": 1.3,
        "meanMin": -5.5,
        "meanTemp": -2.1,
        "precipMm": 56.7,
        "rainMm": 26.5,
        "snowCm": 34.5,
        "precipDays": 15.8,
        "daysPrecip1mm": 11,
        "rainDays": 7.2,
        "snowDays": 10.3,
        "snowDepthCm": 3,
        "rhMorning": 86.2,
        "…": "15 more keys"
      },
      "extremes": {
        "maxTemp": {
          "value": 18.8,
          "date": "2016-11-08"
        },
        "minTemp": {
          "value": -41.7,
          "date": "1955-11-26"
        },
        "humidex": {
          "value": 18.6,
          "date": "2016-11-08"
        },
        "windChill": {
          "value": -48.2,
          "date": "1985-11-26"
        },
        "gustKmh": {
          "value": 121,
          "date": "1960-11-19",
          "dir": "S"
        },
        "snowDepthCm": {
          "value": 39,
          "date": "1986-11-19"
        },
        "precipMm": {
          "value": 28.4,
          "date": "1972-11-01"
        }
      }
    },
    "frost": {
      "lastSpringFrost": "May 22",
      "firstFallFrost": "Sep 7",
      "frostFreeDays": 107
    },
    "normalToday": {
      "high": -3,
      "low": -11
    },
    "sun": {
      "sunrise": "2026-11-30T16:05:00Z",
      "sunset": "2026-11-30T23:55:00Z"
    }
  },
  "meta": {
    "source": "Environment and Climate Change Canada, daily climate records (LTCE) and Canadian Climate Normals 1991–2020",
    "sourceUrl": "https://climate.weather.gc.ca/",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/almanac",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-almanac"
  }
}
```

## GET /api/v1/weather/hourly {#get-weather-hourly}

Hourly forecast (one row per hour: temp, feels, pop, precip, code, wind, gust, dir, uv, isDay).

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)](https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750)
- Licence: CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)
- Paginated: `limit` (default 48, max 400) and `offset`; also `format=csv`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `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/weather/hourly?limit=3"
```

**Example response** (trimmed)

```json
{
  "data": [
    {
      "time": "2026-11-30T13:00:00-07:00",
      "temp": 0.1,
      "feels": -4,
      "pop": 0,
      "precip": 0,
      "code": 3,
      "wind": 9.6,
      "gust": 21.6,
      "dir": 41,
      "uv": 0.8,
      "isDay": 1
    },
    {
      "time": "2026-11-30T14:00:00-07:00",
      "temp": 0.8,
      "feels": -3.3,
      "pop": 0,
      "precip": 0,
      "code": 3,
      "wind": 8.8,
      "gust": 21.2,
      "dir": 44,
      "uv": 0.8,
      "isDay": 1
    },
    "… 1 more"
  ],
  "meta": {
    "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)",
    "sourceUrl": "https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Open-Meteo.com and Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)",
    "total": 48,
    "count": 3,
    "limit": 3,
    "offset": 0
  },
  "links": {
    "self": "/api/v1/weather/hourly?limit=3",
    "next": "/api/v1/weather/hourly?limit=3&offset=3",
    "docs": "/developers/reference/weather/#get-weather-hourly"
  }
}
```

## GET /api/v1/weather/daily {#get-weather-daily}

Daily forecast (up to 14 days) plus the ECCC text forecast.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)](https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750)
- Licence: CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/daily"
```

**Example response** (trimmed)

```json
{
  "data": {
    "days": [
      {
        "date": "2026-11-30",
        "code": 71,
        "max": -2,
        "min": -6.3,
        "precip": 0.7,
        "pop": 96,
        "snow": 0.49,
        "wind": 9.9,
        "gust": 21.6,
        "dir": 34,
        "uv": 0.8,
        "sunshineH": 1.4,
        "…": "3 more keys"
      },
      {
        "date": "2026-12-01",
        "code": 73,
        "max": 1.1,
        "min": -3.6,
        "precip": 2.6,
        "pop": 100,
        "snow": 1.89,
        "wind": 11.9,
        "gust": 23.4,
        "dir": 201,
        "uv": 0.95,
        "sunshineH": 5.7,
        "…": "3 more keys"
      },
      "… 14 more"
    ],
    "textForecast": [
      {
        "name": "Today",
        "summary": "Cloudy. Light snow beginning near noon. Wind north 20 km/h becoming light near noon. High minus 2. Wind chill minus 10 this morning and minus 4 this afternoon."
      },
      {
        "name": "Tonight",
        "summary": "Snow. Amount 5 to 10 cm. Wind becoming south 20 km/h near midnight. Low minus 4. Wind chill minus 4 this evening and minus 10 overnight."
      },
      "… 11 more"
    ]
  },
  "meta": {
    "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)",
    "sourceUrl": "https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Open-Meteo.com and Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/weather/daily",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-daily"
  }
}
```

## GET /api/v1/weather/alerts {#get-weather-alerts}

Active ECCC weather alerts for Prince George.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)](https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750)
- Licence: CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)

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

**Example request**

```bash
curl "https://princegeorgepulse.ca/api/v1/weather/alerts"
```

**Example response** (trimmed)

```json
{
  "data": [],
  "meta": {
    "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)",
    "sourceUrl": "https://weather.gc.ca/en/location/index.html?coords=53.917,-122.750",
    "updatedAt": "2026-11-30T20:34:49.565Z",
    "ageSec": 422,
    "license": "CC BY 4.0, Open-Meteo.com (https://open-meteo.com/en/licence); Environment and Climate Change Canada Data Servers End-use Licence (https://eccc-msc.github.io/open-data/licence/readme_en/)",
    "attribution": "Open-Meteo.com and Environment and Climate Change Canada, via PG Pulse (princegeorgepulse.ca)",
    "total": 0,
    "count": 0
  },
  "links": {
    "self": "/api/v1/weather/alerts",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-alerts"
  }
}
```

## GET /api/v1/airport {#get-airport}

Prince George airport (CYXS) flying conditions: latest METAR, recent observations and the TAF.

- Cache: 5 min in browsers, 10 min in shared caches (`Cache-Control: public, max-age=300, s-maxage=600, stale-while-revalidate=1200`); live source, also cached on our server
- Source: [NOAA Aviation Weather Center (METAR and TAF for CYXS)](https://aviationweather.gov/data/metar/?ids=CYXS)
- Licence: Public domain (US Government work, NOAA Aviation Weather Center)

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

**Example request**

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

**Example response** (trimmed)

```json
{
  "data": {
    "metar": {
      "time": "2026-11-30T20:00:00.000Z",
      "raw": "METAR CYXS 302000Z AUTO 35005KT 9SM OVC140 M03/M03 A2952 RMK SLP035",
      "category": "VFR",
      "tempC": -3,
      "windDir": 350,
      "windKt": 5,
      "gustKt": null,
      "visSm": 9,
      "ceilingFt": 14000,
      "clouds": "overcast at 14,000 ft"
    },
    "history": [
      {
        "time": "2026-11-30T20:00:00.000Z",
        "category": "VFR",
        "raw": "METAR CYXS 302000Z AUTO 35005KT 9SM OVC140 M03/M03 A2952 RMK SLP035",
        "tempC": -3,
        "windKt": 5,
        "gustKt": null,
        "visSm": 9,
        "ceilingFt": 14000
      },
      {
        "time": "2026-11-30T19:00:00.000Z",
        "category": "VFR",
        "raw": "METAR CYXS 301900Z AUTO 01008KT 9SM CLR M04/M04 A2953 RMK SLP039",
        "tempC": -4,
        "windKt": 8,
        "gustKt": null,
        "visSm": 9,
        "ceilingFt": null
      },
      "… 4 more"
    ],
    "taf": {
      "issued": "2026-11-30T18:40:00.000Z",
      "raw": "TAF CYXS 301840Z 3019/0107 01010KT P6SM SCT140 BKN240 FM302200 35008KT P6SM BKN080 TEMPO 3022/0101 5SM -SN BKN040 FM010100 35008KT 2SM -SN OVC012 TEMPO 0101/0107 6SM -SN OVC025 PROB30 0101/0107 1SM -SN OVC008 RMK FCST…"
    }
  },
  "meta": {
    "source": "NOAA Aviation Weather Center (METAR and TAF for CYXS)",
    "sourceUrl": "https://aviationweather.gov/data/metar/?ids=CYXS",
    "updatedAt": "2026-11-30T20:41:49.478Z",
    "ageSec": 3,
    "license": "Public domain (US Government work, NOAA Aviation Weather Center)",
    "attribution": "NOAA Aviation Weather Center, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/airport",
    "next": null,
    "docs": "/developers/reference/weather/#get-airport"
  }
}
```

## GET /api/v1/weather/history {#get-weather-history}

Recorded weather observations: temperature, feels like, humidity, dew point, wind, gusts, pressure, precipitation, visibility, snow depth, valley temperature and the inversion.

- 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: weather.temp, weather.feels_like, weather.humidity, weather.wind, weather.gust, weather.pressure, weather.precip, weather.dewpoint, weather.visibility, weather.snow_depth, weather.valley_temp, weather.inversion. |
| `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/weather/history?from=48h"
```

**Example response** (trimmed)

```json
{
  "data": [
    {
      "series": "weather.temp",
      "label": "Temperature",
      "unit": "°C",
      "interval": "raw",
      "truncated": false,
      "points": [
        {
          "t": "2026-11-28T21:00:00.000Z",
          "value": 2.3
        },
        {
          "t": "2026-11-28T22:00:00.000Z",
          "value": 2.7
        },
        "… 92 more"
      ]
    },
    {
      "series": "weather.feels_like",
      "label": "Feels like",
      "unit": "°C",
      "interval": "raw",
      "truncated": false,
      "points": [
        {
          "t": "2026-11-28T21:00:00.000Z",
          "value": 2.3
        },
        {
          "t": "2026-11-28T22:00:00.000Z",
          "value": 2.7
        },
        "… 92 more"
      ]
    },
    "… 10 more"
  ],
  "meta": {
    "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",
    "sourceUrl": "https://princegeorgepulse.ca/dashboard/",
    "updatedAt": "2026-11-30T20:00:00.000Z",
    "ageSec": 2512,
    "license": "Mixed: see each item’s source",
    "attribution": "The upstream named in each series (`meta.series.source`), via PG Pulse (princegeorgepulse.ca)",
    "from": "2026-11-28T20:41:51.000Z",
    "to": "2026-11-30T20:41:51.000Z",
    "interval": "raw",
    "series": [
      {
        "id": "weather.temp",
        "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)"
      },
      {
        "id": "weather.feels_like",
        "source": "Environment and Climate Change Canada (city page weather bc-79, weather alerts, SWOB observations); NOAA Aviation Weather Center (METAR); Open-Meteo forecast API (model detail)"
      },
      "… 10 more"
    ],
    "total": 12,
    "count": 12
  },
  "links": {
    "self": "/api/v1/weather/history?from=48h",
    "next": null,
    "docs": "/developers/reference/weather/#get-weather-history"
  }
}
```

## GET /api/v1/airport/history {#get-airport-history}

Recorded CYXS METAR values: temperature, wind, gusts, visibility, ceiling, flight category.

- 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: airport.temp, airport.wind, airport.gust, airport.visibility, airport.ceiling, airport.category. |
| `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/airport/history?from=48h"
```

**Example response** (trimmed)

```json
{
  "data": [
    {
      "series": "airport.temp",
      "label": "Airport temperature (METAR)",
      "unit": "°C",
      "interval": "raw",
      "truncated": false,
      "points": [
        {
          "t": "2026-11-28T20:56:00.000Z",
          "value": 2
        },
        {
          "t": "2026-11-28T21:00:00.000Z",
          "value": 2
        },
        "… 125 more"
      ]
    },
    {
      "series": "airport.wind",
      "label": "Airport wind (METAR)",
      "unit": "kt",
      "interval": "raw",
      "truncated": false,
      "points": [
        {
          "t": "2026-11-28T20:56:00.000Z",
          "value": 12
        },
        {
          "t": "2026-11-28T21:00:00.000Z",
          "value": 12
        },
        "… 125 more"
      ]
    },
    "… 4 more"
  ],
  "meta": {
    "source": "NOAA Aviation Weather Center (METAR and TAF for CYXS)",
    "sourceUrl": "https://aviationweather.gov/data/metar/?ids=CYXS",
    "updatedAt": "2026-11-30T20:00:00.000Z",
    "ageSec": 2512,
    "license": "Public domain (US Government work, NOAA Aviation Weather Center)",
    "attribution": "The upstream named in each series (`meta.series.source`), via PG Pulse (princegeorgepulse.ca)",
    "from": "2026-11-28T20:41:51.000Z",
    "to": "2026-11-30T20:41:51.000Z",
    "interval": "raw",
    "series": [
      {
        "id": "airport.temp",
        "source": "NOAA Aviation Weather Center (METAR and TAF for CYXS)"
      },
      {
        "id": "airport.wind",
        "source": "NOAA Aviation Weather Center (METAR and TAF for CYXS)"
      },
      "… 4 more"
    ],
    "total": 6,
    "count": 6
  },
  "links": {
    "self": "/api/v1/airport/history?from=48h",
    "next": null,
    "docs": "/developers/reference/weather/#get-airport-history"
  }
}
```
