Census division is the general term for a Canadian geographic subregion (such as county, municipalité régionale de comté and regional district). They are typically established to facilitate the provision of public services (such as police or ambulance), but StatCan also utilizes these regions to help disseminate and organize statistical information.

GET /census-divisions/search

Public

Returns basic attributes, such as name and type, of a given census division or all census divisions within a region.

Request Parameter Details
region_code The two letter internationally standardized ISO-3166-2 region code.
name (Optional) Census division name
Response Key type Definition
id string The unique 4-digit census division id (first two digits correspond to region)
name string Census division name
type string Census division type
land_area numeric(32,2) Land area of census division, in square kilometers (km2)
region_code string The two letter internationally standardized ISO-3166-2 region code

Example Requests


Specifying a region using the region_code will return all census divisions in that region.

GET

https://api.tm41m.com/census-divisions/search?region_code=ON

Response:
{
    "region_code": "ON",
    "id": "3501",
    "type": "UC",
    "name": "Prescott and Russell",
    "land_area": 2004.2668
}

The attributes of a single census division can be observed by specifying the name. Special characters such as spaces and accents can be passed unencoded to the request.

https://api.tm41m.com/census-divisions/search?region_code=QC&name=La Matapédia

GET

Response:
{
    "name": "La Matapédia",
    "id": "2407",
    "type": "MRC",
    "land_area": 5354.5318,
    "region_code": "QC"
}