# Data sources

Generated by `scripts/fetch_data.py` from `data/manifest.json`. Do not edit by hand.
"Retrieved" is the date the current numbers were first downloaded; a re-fetch that finds the
same numbers leaves the date (and the files) alone. Raw downloads are in `data/raw/`, untouched.

## A. Asking and paid rent — Statistics Canada table 46-10-0092-01

- Table: "Asking rent and paid rent prices, by rental unit type and number of bedrooms, experimental estimates" (product ID 46100092)
- Endpoint: `GET https://www150.statcan.gc.ca/t1/wds/rest/getFullTableDownloadCSV/46100092/en` → `https://www150.statcan.gc.ca/n1/tbl/csv/46100092-eng.zip`; release date from `POST .../getCubeMetadata`
- Latest StatCan release: 2026-09-09 · Retrieved: 2026-11-14
- Filters: GEO = "Toronto, Census metropolitan area (CMA)"; Rental unit type = "Apartment - 1 bedroom" and "Apartment - 2 bedrooms"; Estimates = "Average asking rent" and "Average paid rent"; REF_DATE ≥ 2019-01 (quarterly)
- Paid rent is in this same table (Estimates = "Average paid rent"), so no second table is needed. The Daily of Sept 9, 2026 (https://www150.statcan.gc.ca/n1/daily-quotidien/260909/dq260909c-eng.htm) quotes the same Q2 2026 Toronto figures.
- Raw: `data/raw/46100092-eng.zip`, `data/raw/46100092_cube_metadata.json` · Processed: `statcan_rents.csv`, `statcan_rents.json`
- Used by: "But aren't rents falling?" text (peak year, asking minus paid gap) and the asking vs. paid chart (2-bedroom). 1-bedroom is fetched but not charted.

## B. Turnover vs. non-turnover rents — CMHC Rental Market Survey, Table 6.0

- Page: https://www.cmhc-schl.gc.ca/professionals/housing-markets-data-and-research/housing-data/data-tables/rental-market/rental-market-report-data-tables
- The page's geography/edition dropdown calls `GET https://www.cmhc-schl.gc.ca/api/Sitecore/PubsAndReports/GetEditionList` and `GetFileDetails` (cityId = Canada). Table 6.0 is only in the Canada ("all centres") workbook; the Toronto workbook has turnover *rates* but not these rents.
- Workbooks used (every edition that has the table):
  - 2025 edition (published December 11, 2025): https://assets.cmhc-schl.gc.ca/sites/cmhc/professional/housing-markets-data-and-research/housing-data-tables/rental-market/rental-market-report-data-tables/2025/rmr-canada-2025-en.xlsx?rev=11bbba5e-64a5-4dcd-a81f-7252c2b12537 — sheet `Table 6.0`, "6.0 Average Rent for Turnover and Non-turnover Units  Privately Initiated Apartment Structures of Three Units and Over - Provinces and Major Centres"
  - 2024 edition (published December 17, 2024): https://assets.cmhc-schl.gc.ca/sites/cmhc/professional/housing-markets-data-and-research/housing-data-tables/rental-market/rental-market-report-data-tables/2024/rmr-canada-2024-en.xlsx?rev=7dcf3c22-1bec-47b5-a8f6-90d3d7a0cfea — sheet `Table 6.0`, "6.0 Average Rent and Average Change in Rent for Turnover and Non-turnover Units, Two Bedrooms Only   Privately Initiated Apartment Structures of Three Units and Over - Provinces and Major Centres"
  - 2023 edition (published January 31, 2024): https://assets.cmhc-schl.gc.ca/sites/cmhc/professional/housing-markets-data-and-research/housing-data-tables/rental-market/rental-market-report-data-tables/2023/rmr-canada-2023-en.xlsx?rev=1a17baec-1321-4187-942b-847eef396682 — sheet `Table 6.0`, "6.0 Average Rent and Average Change in Rent for Turnover and Non-turnover Units, Two Bedrooms Only   Privately Initiated Apartment Structures of Three Units and Over - Provinces and Major Centres"
  - 2022 edition (published January 26, 2023): https://assets.cmhc-schl.gc.ca/sites/cmhc/professional/housing-markets-data-and-research/housing-data-tables/rental-market/rental-market-report-data-tables/2022/rmr-canada-2022-en.xlsx?rev=f63f0463-58c5-4174-b14d-7acef593127d — sheet `Table 6.0`, "6.0 Average Rent and Average Change in Rent for Turnover and Non-turnover Units, Two Bedrooms Only   Privately Initiated Apartment Structures of Three Units and Over - Provinces and Major Centres"
- Latest edition: 2025, released December 11, 2025, period 2025-10 · Retrieved: 2026-11-14
- Filters: row "Toronto CMA"; universe: Privately initiated apartment structures of three units and over. Quality codes kept in the processed file (a Excellent, b Very good, c Good, d Poor (use with caution)).
- The 2025 edition reports all unit sizes (Oct 2024 and Oct 2025). The 2022–2024 editions report 2-bedroom units only, so the multi-year series (`two_bedroom_series`) is 2-bedroom only, Oct 2021–Oct 2025. Editions without Table 6.0: 2021, 2020, 2019.
- Raw: `data/raw/rmr-canada-*.xlsx`, `data/raw/cmhc_editions.json` · Processed: `cmhc_turnover.csv`, `cmhc_turnover.json`
- Used by: hero number, the two stat cards, the gap chart, the calculator and the MPP letter.

## C. Homeownership rate by age, 2011 vs. 2021 — Statistics Canada, The Daily, Sept 21, 2022

- URL: https://www150.statcan.gc.ca/n1/daily-quotidien/220921/dq220921b-eng.htm · Retrieved: 2026-11-14
- Geography: Canada. Ages 25–29, 30–34, 70–74.
- No data table with these rates is linked from the release (it links 46-10-0053-01, property ownership, and 34-10-0066-01, building permits), so the rates are read from the release text. The script finds the three sentences in the page and stops if any is missing.
- Raw: `data/raw/dq220921b-eng.htm` · Processed: `homeownership.json`
- Used by: the homeownership chart.

## D. Fertility — Statistics Canada table 13-10-0418-01

- Table: "Crude birth rate, age-specific fertility rates and total fertility rate (live births)" (product ID 13100418)
- Endpoint: `GET https://www150.statcan.gc.ca/t1/wds/rest/getFullTableDownloadCSV/13100418/en` → `https://www150.statcan.gc.ca/n1/tbl/csv/13100418-eng.zip`
- Latest StatCan release: 2026-09-23 · Retrieved: 2026-11-14
- Filters: GEO = "Ontario, place of residence of mother"; Characteristics = "Total fertility rate per female" and "Age-specific fertility rate, females 20 to 24 years"; years 2021–2025
- Units: TFR: children per female; age-specific rate: live births per 1,000 females aged 20 to 24. The 20–24 change is a change in the *rate*, not in the number of births.
- Raw: `data/raw/13100418-eng.zip`, `data/raw/13100418_cube_metadata.json` · Processed: `fertility.csv`, `fertility.json`
- Used by: the fertility callout.

## E. Landlord and Tenant Board applications — Tribunals Ontario open data

- Page: https://tribunalsontario.ca/en/about/open-data/ (dataset "LTB – Applications Received by e-File"; one .xlsx per quarter, links read from the page)
- Granularity found: quarterly (Ontario government fiscal quarters, April–March year); geography: Ontario (province-wide; no regional split in this dataset)
- Measure: total applications received, all filing methods (column 'total apps received - all filing methods'), rows L1, L2, T2, T6 and (from Jan–Mar 2022) Other
- Coverage: 2017-04-01 to 2026-06-30 (latest file: Q1 2026-27) · Retrieved: 2026-11-14
- Not parsed (kept in raw): 26 1 2017-01-01_2017-03-31 LTB Applications Received by e-File - 2016-2017.xlsx — multi-quarter or unrecognised layout; kept in raw only
- Data quirks: no file for Apr–Jun 2018 or Jul–Sep 2021; the Oct–Dec 2021 file only covers Oct 1–Dec 7, 2021; two older sheets have header dates that contradict their file names (file names used; each case is in the `note` field). 'Other' application types are only reported from Jan–Mar 2022 onward, so a total of all rows is not comparable over time. L1 is reported in every quarter. Numbers are subject to change (Tribunals Ontario note in every file).
- After Bill 60 (in force 2026-09-21): no post-change quarter is published yet. Shown on the site as pending.
- Raw: `data/raw/tribunals_open_data.htm`, `data/raw/ltb_efile/*.xlsx` · Processed: `ltb_applications.csv`, `ltb_applications.json`
- Used by: "Evictions for arrears: before and after Bill 60".

## F. Toronto shelters — City of Toronto Open Data (CKAN)

- Base: `https://ckan0.cf.opendata.inter.prod-toronto.ca/api/3/action/`
- Toronto Shelter System Flow: `datastore_search?resource_id=fb32967d-ee16-4d46-a880-0614c18f2137` (all records, limit 500 + offset). Kept population_group "All Population" and "Families". Latest month: 2026-09; dataset refreshed 2026-10-15 20:04:37.617705.
- Daily Shelter & Overnight Service Occupancy & Capacity: `package_show?id=daily-shelter-overnight-service-occupancy-capacity` → current-year datastore resource `42714176-4f05-44e6-b157-2b57f29b856a`; records for the latest OCCUPANCY_DATE (2026-11-13). Occupancy % = (sum OCCUPIED_BEDS + sum OCCUPIED_ROOMS) ÷ (sum CAPACITY_ACTUAL_BED + sum CAPACITY_ACTUAL_ROOM); beds and rooms are also reported separately.
- Retrieved: 2026-11-14 (re-fetched daily)
- Raw: `data/raw/toronto_shelter_system_flow_pages.json`, `data/raw/daily_shelter_occupancy_latest_day.json`, `data/raw/daily_shelter_occupancy_package.json` · Processed: `shelter_flow.csv`, `shelter_flow.json`, `shelter_occupancy.json`
- Used by: "Toronto's shelters, updated automatically".

## Figures on the page that are not from these datasets

These are legal facts written into the page text, not data series:
- 2026 rent increase guideline 2.1% and the Nov 15, 2018 exemption: https://www.ontario.ca/page/rent-increase-guideline (checked 2026-11-14; the page also lists 1.9% for 2027).
- Bill 60, N4 payment window 14 → 7 days, in force Sept 21, 2026: https://www.ola.org/en/legislative-business/bills/parliament-44/session-1/bill-60 (ola.org refused automated access; not machine-checked).
- New York HSTPA 2019 (S6458): https://www.nysenate.gov/legislation/bills/2019/S6458 (not machine-checked).
