Skip to content
PG Pulse
PG Pulse

Try searching for

From PG PulseYour business could be hereA banner at the top of every page of PG Pulse, seen by people across Prince George every day.Advertise here

Local knowledge for your AI tools

Connect Cursor, VS Code, Codex or Claude Code. Free MCP access, no key needed.

Connect your AI assistant
View as MarkdownFree, no key needed

City: API reference

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

GET /api/v1/holidays #

Statutory holidays, with what changes in the city on each one (buses, garbage pickup).

Statutory holidays for BC (this year and next) from the Canada Holidays API, each with changes: how transit runs (from the BC Transit GTFS schedule) and whether each garbage zone’s pickup moves that week (from the City’s collection calendar, which rolls pickups back a day after a holiday). status values: transit none | sunday | saturday | normal | holiday | special | unknown; garbage normal | moved | none | unknown (unknown = the schedule for that date isn’t published yet). Refreshed daily.

ParameterInTypeDescription
yearqueryintegerCalendar year (default: from today on). Example: 2026.
upcomingquerybooleanOnly today and later (default true unless year is set).

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

Example request

bash
curl "https://princegeorgepulse.ca/api/v1/holidays"

Example response (trimmed)

json
{
  "data": [
    {
      "date": "2026-12-25",
      "observed": "2026-12-25",
      "name": "Christmas Day",
      "nameFr": "Noël",
      "federal": true,
      "weekday": "Friday",
      "observedWeekday": "Friday",
      "daysAway": 25,
      "source": "Canada Holidays API (canada-holidays.ca), compiled from provincial and federal statutes",
      "sourceUrl": "https://canada-holidays.ca/provinces/BC",
      "license": "MIT licence, Paul Craig (https://github.com/pcraig3/hols/blob/main/LICENSE)",
      "fetchedAt": "2026-11-30T11:50:13.169Z",
      "…": "1 more keys"
    },
    {
      "date": "2027-01-01",
      "observed": "2027-01-01",
      "name": "New Year’s Day",
      "nameFr": "Jour de l’An",
      "federal": true,
      "weekday": "Friday",
      "observedWeekday": "Friday",
      "daysAway": 32,
      "source": "Canada Holidays API (canada-holidays.ca), compiled from provincial and federal statutes",
      "sourceUrl": "https://canada-holidays.ca/provinces/BC",
      "license": "MIT licence, Paul Craig (https://github.com/pcraig3/hols/blob/main/LICENSE)",
      "fetchedAt": "2026-11-30T11:50:13.169Z",
      "…": "1 more keys"
    },
    "… 10 more"
  ],
  "meta": {
    "source": "Canada Holidays API (canada-holidays.ca), compiled from provincial and federal statutes; transit from BC Transit open data (GTFS schedule); garbage from the City collection calendar (Recycle Coach)",
    "sourceUrl": "https://canada-holidays.ca/",
    "updatedAt": "2026-11-30T11:50:13.169Z",
    "ageSec": 14076,
    "license": "MIT licence, Paul Craig (https://github.com/pcraig3/hols/blob/main/LICENSE). Changes: each item’s own source and licence",
    "attribution": "Canada Holidays API, BC Transit, City collection calendar, via PG Pulse (princegeorgepulse.ca)",
    "total": 12,
    "count": 12,
    "limit": 50,
    "offset": 0
  },
  "links": {
    "self": "/api/v1/holidays",
    "next": null,
    "docs": "/developers/reference/city/#get-holidays"
  }
}

GET /api/v1/holidays/next #

Today’s or the next statutory holiday, with what changes.

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

Example request

bash
curl "https://princegeorgepulse.ca/api/v1/holidays/next"

Example response (trimmed)

json
{
  "data": {
    "date": "2026-12-25",
    "observed": "2026-12-25",
    "name": "Christmas Day",
    "nameFr": "Noël",
    "federal": true,
    "weekday": "Friday",
    "observedWeekday": "Friday",
    "daysAway": 25,
    "source": "Canada Holidays API (canada-holidays.ca), compiled from provincial and federal statutes",
    "sourceUrl": "https://canada-holidays.ca/provinces/BC",
    "license": "MIT licence, Paul Craig (https://github.com/pcraig3/hols/blob/main/LICENSE)",
    "fetchedAt": "2026-11-30T11:50:13.169Z",
    "…": "1 more keys"
  },
  "meta": {
    "source": "Canada Holidays API (canada-holidays.ca), compiled from provincial and federal statutes; transit from BC Transit open data (GTFS schedule); garbage from the City collection calendar (Recycle Coach)",
    "sourceUrl": "https://canada-holidays.ca/",
    "updatedAt": "2026-11-30T11:50:13.169Z",
    "ageSec": 14076,
    "license": "MIT licence, Paul Craig (https://github.com/pcraig3/hols/blob/main/LICENSE). Changes: each item’s own source and licence",
    "attribution": "Canada Holidays API, BC Transit, City collection calendar, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/holidays/next",
    "next": null,
    "docs": "/developers/reference/city/#get-holidays-next"
  }
}

GET /api/v1/holidays/calendar #

Every holiday with a page, statutory or not: dates this year and next, and what changes.

The holiday calendar behind /holidays/<slug>/: statutory holidays in BC and other days people plan around (Easter Monday, Boxing Day, Halloween, Mother’s Day, Lunar New Year...). Dates are computed from each day’s rule; statutory comes from the Canada Holidays API, checked against the province’s own list (checks). labourCode: a general holiday under the Canada Labour Code. changes: bus and garbage changes for the next occurrence where they are worked out.

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

Example request

bash
curl "https://princegeorgepulse.ca/api/v1/holidays/calendar"

Example response (trimmed)

json
{
  "data": {
    "days": [
      {
        "slug": "christmas-eve",
        "name": "Christmas Eve",
        "path": "/holidays/christmas-eve/",
        "about": "December 24.",
        "rule": "December 24 every year",
        "labourCode": false,
        "thisYear": {
          "year": 2026,
          "date": "2026-12-24",
          "observed": "2026-12-24",
          "statutory": false,
          "daysAway": 24,
          "weekday": "Thursday",
          "from": "source"
        },
        "nextYear": {
          "year": 2027,
          "date": "2027-12-24",
          "observed": "2027-12-24",
          "statutory": false,
          "daysAway": 389,
          "weekday": "Friday",
          "from": "source"
        },
        "next": {
          "year": 2026,
          "date": "2026-12-24",
          "observed": "2026-12-24",
          "statutory": false,
          "daysAway": 24,
          "weekday": "Thursday",
          "from": "source"
        },
        "changes": [
          "{…}"
        ]
      },
      {
        "slug": "christmas-day",
        "name": "Christmas Day",
        "path": "/holidays/christmas-day/",
        "about": "December 25.",
        "rule": "December 25 every year",
        "labourCode": true,
        "thisYear": {
          "year": 2026,
          "date": "2026-12-25",
          "observed": "2026-12-25",
          "statutory": true,
          "daysAway": 25,
          "weekday": "Friday",
          "from": "source"
        },
        "nextYear": {
          "year": 2027,
          "date": "2027-12-25",
          "observed": "2027-12-27",
          "statutory": true,
          "daysAway": 390,
          "weekday": "Saturday",
          "from": "source"
        },
        "next": {
          "year": 2026,
          "date": "2026-12-25",
          "observed": "2026-12-25",
          "statutory": true,
          "daysAway": 25,
          "weekday": "Friday",
          "from": "source"
        },
        "changes": [
          "{…}",
          "{…}",
          "… 4 more"
        ]
      },
      "… 20 more"
    ],
    "checks": [
      {
        "year": 2026,
        "status": "match",
        "problems": [],
        "source": "B.C. Employment Standards: statutory holidays",
        "sourceUrl": "https://www2.gov.bc.ca/gov/content/employment-business/employment-standards-advice/employment-standards/statutory-holidays",
        "checkedAt": "2026-11-30T11:50:13.169Z"
      },
      {
        "year": 2027,
        "status": "match",
        "problems": [],
        "source": "B.C. Employment Standards: statutory holidays",
        "sourceUrl": "https://www2.gov.bc.ca/gov/content/employment-business/employment-standards-advice/employment-standards/statutory-holidays",
        "checkedAt": "2026-11-30T11:50:13.169Z"
      }
    ]
  },
  "meta": {
    "source": "Canada Holidays API (canada-holidays.ca), compiled from provincial and federal statutes; transit from BC Transit open data (GTFS schedule); garbage from the City collection calendar (Recycle Coach)",
    "sourceUrl": "https://canada-holidays.ca/",
    "updatedAt": "2026-11-30T11:50:13.169Z",
    "ageSec": 14076,
    "license": "MIT licence, Paul Craig (https://github.com/pcraig3/hols/blob/main/LICENSE). Changes: each item’s own source and licence",
    "attribution": "Canada Holidays API, BC Transit, City collection calendar, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/holidays/calendar",
    "next": null,
    "docs": "/developers/reference/city/#get-holidays-calendar"
  }
}

GET /api/v1/time #

The time zone in Prince George: offset, last and next clock change, the time in nearby places.

The city’s IANA zone and its offset now, the last and next clock change (nextChange is null when the clocks no longer change), the official rule statement when the module has one, a year of daylight on the zone’s clock and on the former rule’s (latest sunrise, earliest sunset, days dark at 8 a.m. and by 5 p.m.; times are local HH:MM), and the places the page compares (hours ahead now, in mid-January and in mid-July; negative = behind). tzdataStale: true means the server’s time-zone rules disagree with the official statement: computed fields are then null.

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

Example request

bash
curl "https://princegeorgepulse.ca/api/v1/time"

Example response (trimmed)

json
{
  "data": {
    "city": "Prince George",
    "timeZone": "America/Vancouver",
    "zoneName": "Pacific time (PCT)",
    "localTime": "2026-11-30T08:44:49-07:00",
    "utcOffset": "-07:00",
    "utcOffsetMinutes": -420,
    "label": "UTC-7",
    "clocksChange": false,
    "lastChange": {
      "at": "2026-03-08T03:00:00-07:00",
      "from": "-08:00",
      "to": "-07:00",
      "direction": "forward"
    },
    "nextChange": null,
    "rule": {
      "date": "2026-11-01",
      "headline": "Clocks in B.C. do not go back on November 1, 2026",
      "text": "B.C. has adopted permanent year-round daylight saving time, now called Pacific time (PCT): seven hours behind UTC (UTC-7) all year. The last time change was on March 8, 2026, when clocks moved ahead an hour. On Novemb…",
      "source": "https://www2.gov.bc.ca/gov/content/governments/celebrating-british-columbia/daylight-saving-time",
      "sourceLabel": "Province of B.C.: B.C.’s new time zone (Pacific time)"
    },
    "formerRule": {
      "timeZone": "America/Los_Angeles",
      "where": "Washington, Oregon and California"
    },
    "…": "3 more keys"
  },
  "meta": {
    "source": "Computed by PG Pulse from the IANA time zone database and NOAA solar position equations; rule statement from Province of B.C.: B.C.’s new time zone (Pacific time)",
    "sourceUrl": "https://www2.gov.bc.ca/gov/content/governments/celebrating-british-columbia/daylight-saving-time",
    "updatedAt": "2026-11-30T15:44:49.433Z",
    "ageSec": 0,
    "license": "Computed values: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); IANA time zone database: public domain; NOAA equations: public domain (US Government work); rule statement: the government page linked in `rul…",
    "attribution": "PG Pulse, IANA time zone database, NOAA, via PG Pulse (princegeorgepulse.ca)"
  },
  "links": {
    "self": "/api/v1/time",
    "next": null,
    "docs": "/developers/reference/city/#get-time"
  }
}

GET /api/v1/time/sun #

Sunrise, sunset and first and last light in Prince George, on the current clock and the former rule’s.

Computed for the city centre with NOAA’s solar position equations (within about a minute; hills make the visible sunrise later). Without from: the days the page shows (today, the shortest and longest days ahead, the change day). With from: days consecutive days. First and last light are civil dawn and dusk (the sun 6° below the horizon). formerRule gives the same moments on the clock of a zone still on the old rule, on days that clock differs. Empty when the server’s time-zone rules are out of date.

ParameterInTypeDescription
fromquerystringFirst day, YYYY-MM-DD (default: the page’s key days). Example: 2026-12-21.
daysqueryintegerNumber of days from from, 1 to 366 (default 1). Example: 7.

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

Example request

bash
curl "https://princegeorgepulse.ca/api/v1/time/sun"

Example response (trimmed)

json
{
  "data": [
    {
      "date": "2026-11-30",
      "label": "Today",
      "firstLight": "2026-11-30T08:23:00-07:00",
      "sunrise": "2026-11-30T09:05:00-07:00",
      "sunset": "2026-11-30T16:54:00-07:00",
      "lastLight": "2026-11-30T17:36:00-07:00",
      "daylightMinutes": 469,
      "formerRule": {
        "timeZone": "America/Los_Angeles",
        "sunrise": "2026-11-30T08:05:00-08:00",
        "sunset": "2026-11-30T15:54:00-08:00"
      }
    },
    {
      "date": "2026-12-21",
      "label": "Around the shortest day",
      "firstLight": "2026-12-21T08:44:00-07:00",
      "sunrise": "2026-12-21T09:28:00-07:00",
      "sunset": "2026-12-21T16:51:00-07:00",
      "lastLight": "2026-12-21T17:35:00-07:00",
      "daylightMinutes": 443,
      "formerRule": {
        "timeZone": "America/Los_Angeles",
        "sunrise": "2026-12-21T08:28:00-08:00",
        "sunset": "2026-12-21T15:51:00-08:00"
      }
    },
    "… 3 more"
  ],
  "meta": {
    "source": "Computed by PG Pulse from the IANA time zone database and NOAA solar position equations; rule statement from Province of B.C.: B.C.’s new time zone (Pacific time)",
    "sourceUrl": "https://www2.gov.bc.ca/gov/content/governments/celebrating-british-columbia/daylight-saving-time",
    "updatedAt": "2026-11-30T15:44:49.630Z",
    "ageSec": 0,
    "license": "Computed values: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); IANA time zone database: public domain; NOAA equations: public domain (US Government work); rule statement: the government page linked in `rul…",
    "attribution": "PG Pulse, IANA time zone database, NOAA, via PG Pulse (princegeorgepulse.ca)",
    "total": 5,
    "count": 5
  },
  "links": {
    "self": "/api/v1/time/sun",
    "next": null,
    "docs": "/developers/reference/city/#get-time-sun"
  }
}

Add PG Pulse to your home screen

Your browser installs apps from its Share menu.

  1. Tap Share in the browser toolbar (at the bottom of the screen on iPhone, at the top on iPad).
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add. PG Pulse opens from its icon like any other app.