> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Statistics Canada Web Data Service

> Statistics Canada tables (cubes) and time series: table lists and metadata, the latest data points of a series, and data by release-date range, from the keyless Web Data Service.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/statcan.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=be919929e8c8257b5643e93ab1c971a7)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

8

Auth

None

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide)

## Notes

* Keyless. Limits: 25 requests per second per IP, 50 per second across the server.
* Most methods are reads over POST whose body is a JSON array of request objects; this entry sends one object per call. Answers carry status SUCCESS or FAILED per object.
* A table is a productId (8 digits, e.g. 35100003); a series is a vectorId (the number after 'v', e.g. 32164132) or a productId plus a 10-part coordinate of member ids (1.12.0.0.0.0.0.0.0.0).
* Data is released every business day at 8:30 Eastern; between midnight and 8:30 some methods return nothing, and tables being updated can answer 409.
* In Census tables (productIds starting 9810) zeros are fillers, so a FAILED status or responseStatusCode 2 can be normal.

## Endpoints

GET

List all tables

Every table (cube) with its productId, in the lighter of the two list forms.

[Open](#statcan-cubes-list)

GET

List tables changed on a date

The tables updated on one day.

[Open](#statcan-cubes-changed)

POST

Get a table's metadata

Metadata of one table, including its dimensions and their members.

[Open](#statcan-cube-metadata)

POST

Get a series' metadata by vector

Metadata of one series, including its table and coordinate.

[Open](#statcan-series-info)

POST

Get a series' latest data points by vector

The last N reference periods of one series.

[Open](#statcan-series-latest)

POST

Get a series' latest data points by table and coordinate

The last N reference periods of the series at a coordinate of a table.

[Open](#statcan-series-latest-by-coordinate)

POST

Get series data released in a date range

Data points of several series whose release time falls between two times.

[Open](#statcan-series-by-release-range)

GET

Get a full-table CSV download link

A URL to a ZIP of the whole table as CSV, in the 'object' field.

[Open](#statcan-cube-download-csv)

### List all tables

GET

`/getAllCubesListLite`

`statcan.cubes.list`

Every table (cube) with its productId, in the lighter of the two list forms.

Input

No inputs.

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query)

```python Python theme={null}
router.call_data_api("statcan.cubes.list")
```

```text MCP theme={null}
call_data_api(endpoint="statcan.cubes.list")
```

> [!NOTE]
>
> * One large answer of every table; filter it locally.

### List tables changed on a date

GET

`/getChangedCubeList/{date}`

`statcan.cubes.changed`

The tables updated on one day.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`date` required</td><td>string</td><td>path</td><td>ISO date, today or earlier. Example `2017-12-07`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query)

```python Python theme={null}
router.call_data_api("statcan.cubes.changed", {'date': '2017-12-07'})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.cubes.changed", params={"date": "2017-12-07"})
```

### Get a table's metadata

POST

`/getCubeMetadata`

`statcan.cube.metadata`

Metadata of one table, including its dimensions and their members.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`productId` required</td><td>integer</td><td>body</td><td>Table id, 8 digits. Example `35100003`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata)

```python Python theme={null}
router.call_data_api("statcan.cube.metadata", {'productId': 35100003})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.cube.metadata", params={"productId": 35100003})
```

> [!NOTE]
>
> * A read over POST; the body goes as a one-item array.

### Get a series' metadata by vector

POST

`/getSeriesInfoFromVector`

`statcan.series.info`

Metadata of one series, including its table and coordinate.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`vectorId` required</td><td>integer</td><td>body</td><td>Series vector id, without the 'v'. Example `32164132`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata)

```python Python theme={null}
router.call_data_api("statcan.series.info", {'vectorId': 32164132})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.series.info", params={"vectorId": 32164132})
```

> [!NOTE]
>
> * A read over POST; the body goes as a one-item array.

### Get a series' latest data points by vector

POST

`/getDataFromVectorsAndLatestNPeriods`

`statcan.series.latest`

The last N reference periods of one series.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`vectorId` required</td><td>integer</td><td>body</td><td>Series vector id, without the 'v'. Example `32164132`</td></tr>
    <tr><td>`latestN` required</td><td>integer</td><td>body</td><td>How many latest periods. Example `3`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [Banco Central do Brasil (SGS)](https://docs.webrouter.net/data-apis/bcb.md#bcb-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-regional-data), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-debt-to-penny), [UNESCO Institute for Statistics Data API](https://docs.webrouter.net/data-apis/unesco-uis.md#unesco-uis-indicators-data), [WHO Global Health Observatory](https://docs.webrouter.net/data-apis/who-gho.md#who-gho-indicator-data)

```python Python theme={null}
router.call_data_api("statcan.series.latest", {'vectorId': 32164132, 'latestN': 3})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.series.latest", params={"vectorId": 32164132, "latestN": 3})
```

> [!NOTE]
>
> * A read over POST; the body goes as a one-item array.

### Get a series' latest data points by table and coordinate

POST

`/getDataFromCubePidCoordAndLatestNPeriods`

`statcan.series.latest_by_coordinate`

The last N reference periods of the series at a coordinate of a table.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`productId` required</td><td>integer</td><td>body</td><td>Table id, 8 digits. Example `35100003`</td></tr>
    <tr><td>`coordinate` required</td><td>string</td><td>body</td><td>Ten dot-separated member ids, one per dimension, zero-padded. Example `1.12.0.0.0.0.0.0.0.0`</td></tr>
    <tr><td>`latestN` required</td><td>integer</td><td>body</td><td>How many latest periods. Example `3`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [Banco Central do Brasil (SGS)](https://docs.webrouter.net/data-apis/bcb.md#bcb-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-regional-data), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-debt-to-penny), [UNESCO Institute for Statistics Data API](https://docs.webrouter.net/data-apis/unesco-uis.md#unesco-uis-indicators-data), [WHO Global Health Observatory](https://docs.webrouter.net/data-apis/who-gho.md#who-gho-indicator-data)

```python Python theme={null}
router.call_data_api("statcan.series.latest_by_coordinate", {'productId': 35100003, 'coordinate': '1.12.0.0.0.0.0.0.0.0', 'latestN': 3})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.series.latest_by_coordinate", params={"productId": 35100003, "coordinate": "1.12.0.0.0.0.0.0.0.0", "latestN": 3})
```

> [!NOTE]
>
> * A read over POST; the body goes as a one-item array.

### Get series data released in a date range

POST

`/getBulkVectorDataByRange`

`statcan.series.by_release_range`

Data points of several series whose release time falls between two times.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`vectorIds` required</td><td>array</td><td>body</td><td>Vector ids as strings. Example `["74804", "1"]`</td></tr>
    <tr><td>`startDataPointReleaseDate` required</td><td>string</td><td>body</td><td>YYYY-MM-DDTHH:MM. Example `2015-12-01T08:30`</td></tr>
    <tr><td>`endDataPointReleaseDate` required</td><td>string</td><td>body</td><td>YYYY-MM-DDTHH:MM. Example `2018-03-31T19:00`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide) · Same job: [Banco Central do Brasil (SGS)](https://docs.webrouter.net/data-apis/bcb.md#bcb-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-regional-data), [US Treasury Fiscal Data](https://docs.webrouter.net/data-apis/treasury-fiscal-data.md#treasury-fiscal-data-debt-to-penny), [UNESCO Institute for Statistics Data API](https://docs.webrouter.net/data-apis/unesco-uis.md#unesco-uis-indicators-data), [WHO Global Health Observatory](https://docs.webrouter.net/data-apis/who-gho.md#who-gho-indicator-data)

```python Python theme={null}
router.call_data_api("statcan.series.by_release_range", {'vectorIds': ['74804', '1'], 'startDataPointReleaseDate': '2015-12-01T08:30', 'endDataPointReleaseDate': '2018-03-31T19:00'})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.series.by_release_range", params={"vectorIds": ["74804", "1"], "startDataPointReleaseDate": "2015-12-01T08:30", "endDataPointReleaseDate": "2018-03-31T19:00"})
```

> [!NOTE]
>
> * A read over POST. The range is on release dates, not reference periods.

### Get a full-table CSV download link

GET

`/getFullTableDownloadCSV/{productId}/{lang}`

`statcan.cube.download_csv`

A URL to a ZIP of the whole table as CSV, in the 'object' field.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`productId` required</td><td>integer</td><td>path</td><td>Table id, 8 digits. Example `14100287`</td></tr>
    <tr><td>`lang` required</td><td>string</td><td>path</td><td>Language. One of `en`, `fr` Example `en`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.statcan.gc.ca/en/developers/wds/user-guide)

```python Python theme={null}
router.call_data_api("statcan.cube.download_csv", {'productId': 14100287, 'lang': 'en'})
```

```text MCP theme={null}
call_data_api(endpoint="statcan.cube.download_csv", params={"productId": 14100287, "lang": "en"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.