Skip to content

Census Tracts API

Census tract boundaries and household income data from the 2021 Canadian Census (Statistics Canada).

GET /census-tracts

Returns all census tracts for the Montreal CMA with boundary polygons and income data. Used by the /income-map choropleth page.

Query Parameters

None.

Response

json
{
  "censustracts": [
    {
      "id": "uuid",
      "ctuid": "4620001.00",
      "cmaUid": "462",
      "name": "0001.00",
      "medianHouseholdIncome": 52000,
      "averageHouseholdIncome": 61500,
      "medianAfterTaxIncome": 45000,
      "averageAfterTaxIncome": 53200,
      "householdCount": 2150,
      "latitude": "45.5017000",
      "longitude": "-73.5673000",
      "boundary": { "type": "Polygon", "coordinates": [...] }
    }
  ]
}

Note: Response can be large (~1004 tracts with full GeoJSON boundaries). Intended for map rendering, not paginated.

GET /census-tracts/:ctuid

Returns a single census tract by its CTUID (e.g., 4620001.00).

Response

json
{
  "censustract": {
    "id": "uuid",
    "ctuid": "4620001.00",
    "cmaUid": "462",
    "name": "0001.00",
    "medianHouseholdIncome": 52000,
    "averageHouseholdIncome": 61500,
    "medianAfterTaxIncome": 45000,
    "averageAfterTaxIncome": 53200,
    "householdCount": 2150,
    "latitude": "45.5017000",
    "longitude": "-73.5673000",
    "boundary": { "type": "Polygon", "coordinates": [...] }
  }
}

Returns 404 if the CTUID is not found.