{
 "metadata": {
  "source": "CT Office of Policy and Management — Municipal Fiscal Indicators, Uniform Chart of Accounts",
  "dataset_id": "e2qt-k238",
  "dataset_name": "Municipal Fiscal Indicators: Uniform Chart of Accounts, 2020-2023",
  "landing_page": "https://data.ct.gov/d/e2qt-k238",
  "source_url": "https://data.ct.gov/resource/e2qt-k238.json",
  "pulled": "2026-08-25",
  "dataset_last_updated": "2026-03-03",
  "recipe": "python Data/fetch_ct_ucoa.py (Python 3, standard library, no API key)",
  "row_count_source": 17632,
  "fiscal_year_note": "OPM year Y = the fiscal year ending June 30 of year Y. 2023 = FY 2022-23.",
  "basis_note": "Audited actual expenditures cross-walked to the state Uniform Chart of Accounts, split into salaries/wages, employee benefits, and all other costs. Same basis as ct_ucoa_town_indicators.json — actuals across funds, not the adopted budget.",
  "structure_note": "`function_totals` holds each town's function-level subtotal rows (the source's '<Function> Total' and 'Total Expenditures' rows), so figures are not double counted. `target_departments` holds every row the source publishes for Ansonia, including department detail.",
  "town_scope_note": "`function_totals` covers Ansonia and its hand-built peer groups only, to keep the browser download small. All 170 entities are in Data/ct_ucoa/mfi_ucoa_by_function_2020-2023.csv.",
  "gap_note": "The source omits some town-years entirely; those years are absent rather than zero. Missing for Ansonia: 2020.",
  "merge_note": "`function_totals` is not in this file. It is statewide and identical for every town, so it is published once at /data/ct_ucoa_function_totals.json and merged onto this payload at runtime by TownCharts.load(). `target_departments` below is this town's own department detail and appears nowhere else."
 },
 "target": "Ansonia",
 "years": [
  "2020",
  "2021",
  "2022",
  "2023"
 ],
 "fiscal_years": [
  "19-20",
  "20-21",
  "21-22",
  "22-23"
 ],
 "target_departments": {
  "2021": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1456430,
    "benefits": 5038992,
    "other": 13988361,
    "total": 20483783
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1456430,
    "benefits": 5038992,
    "other": 13988361,
    "total": 20483783
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 4925211,
    "benefits": 0,
    "other": 2153942,
    "total": 7079153
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 4122088,
    "benefits": 0,
    "other": 1474253,
    "total": 5596341
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 21409,
    "benefits": 0,
    "other": 286540,
    "total": 307949
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 781714,
    "benefits": 0,
    "other": 393149,
    "total": 1174863
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1549821,
    "benefits": 0,
    "other": 2208035,
    "total": 3757856
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1549821,
    "benefits": 0,
    "other": 612458,
    "total": 2162279
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1595577,
    "total": 1595577
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 139688,
    "total": 139688
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 139688,
    "total": 139688
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 731177,
    "benefits": 0,
    "other": 88988,
    "total": 820165
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 369101,
    "benefits": 0,
    "other": 64543,
    "total": 433644
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 76155,
    "benefits": 0,
    "other": 11085,
    "total": 87240
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 285921,
    "benefits": 0,
    "other": 13360,
    "total": 299281
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 31572042,
    "total": 31572042
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 31572042,
    "total": 31572042
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": null,
    "benefits": null,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": null,
    "benefits": null,
    "other": 1812377,
    "total": 1812377
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": null,
    "benefits": null,
    "other": 1812377,
    "total": 1812377
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": null,
    "benefits": null,
    "other": 660568,
    "total": 660568
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": null,
    "benefits": null,
    "other": 660568,
    "total": 660568
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 392340,
    "total": 392340
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 392340,
    "total": 392340
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 8662639,
    "benefits": 5038992,
    "other": 53016341,
    "total": 66717972
   }
  ],
  "2022": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1583783,
    "benefits": 5722548,
    "other": 4588411,
    "total": 11894742
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1583783,
    "benefits": 5722548,
    "other": 4588411,
    "total": 11894742
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 5899842,
    "benefits": 0,
    "other": 1024127,
    "total": 6923969
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5187692,
    "benefits": 0,
    "other": 432340,
    "total": 5620032
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 27659,
    "benefits": 0,
    "other": 258600,
    "total": 286259
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 684491,
    "benefits": 0,
    "other": 333187,
    "total": 1017678
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1658370,
    "benefits": 0,
    "other": 2550965,
    "total": 4209335
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1658370,
    "benefits": 0,
    "other": 874265,
    "total": 2532635
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1676700,
    "total": 1676700
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 128870,
    "total": 128870
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 128870,
    "total": 128870
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 711953,
    "benefits": 0,
    "other": 128259,
    "total": 840212
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 355547,
    "benefits": 0,
    "other": 89759,
    "total": 445306
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 75066,
    "benefits": 0,
    "other": 4560,
    "total": 79626
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 281340,
    "benefits": 0,
    "other": 33940,
    "total": 315280
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 35976811,
    "total": 35976811
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 35976811,
    "total": 35976811
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 2301205,
    "total": 2301205
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 2301205,
    "total": 2301205
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 910842,
    "total": 910842
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 910842,
    "total": 910842
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 599208,
    "total": 599208
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 599208,
    "total": 599208
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 9853948,
    "benefits": 5722548,
    "other": 48208698,
    "total": 63785194
   }
  ],
  "2023": [
   {
    "function": "General Government Total",
    "department": "General Government Total",
    "wages": 1631296,
    "benefits": 5943653,
    "other": 4406903,
    "total": 11981852
   },
   {
    "function": "General Government",
    "department": "General Government",
    "wages": 1631296,
    "benefits": 5943653,
    "other": 4406903,
    "total": 11981852
   },
   {
    "function": "Public Safety Total",
    "department": "Public Safety Total",
    "wages": 6105529,
    "benefits": 0,
    "other": 1597824,
    "total": 7703353
   },
   {
    "function": "Public Safety",
    "department": "Police",
    "wages": 5266496,
    "benefits": 0,
    "other": 496342,
    "total": 5762838
   },
   {
    "function": "Public Safety",
    "department": "Fire",
    "wages": 28659,
    "benefits": 0,
    "other": 294901,
    "total": 323560
   },
   {
    "function": "Public Safety",
    "department": "Other Public Safety",
    "wages": 810374,
    "benefits": 0,
    "other": 806581,
    "total": 1616955
   },
   {
    "function": "Public Works Total",
    "department": "Public Works Total",
    "wages": 1848097,
    "benefits": 0,
    "other": 2636982,
    "total": 4485079
   },
   {
    "function": "Public Works",
    "department": "Highways/Streets",
    "wages": 1848097,
    "benefits": 0,
    "other": 531982,
    "total": 2380079
   },
   {
    "function": "Public Works",
    "department": "Waste Management",
    "wages": 0,
    "benefits": 0,
    "other": 1925000,
    "total": 1925000
   },
   {
    "function": "Public Works",
    "department": "Sewer",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Public Works",
    "department": "Other Public Works",
    "wages": 0,
    "benefits": 0,
    "other": 180000,
    "total": 180000
   },
   {
    "function": "Health and Welfare Total",
    "department": "Health and Welfare Total",
    "wages": 0,
    "benefits": 0,
    "other": 130991,
    "total": 130991
   },
   {
    "function": "Health and Welfare",
    "department": "Public Health Admin",
    "wages": 0,
    "benefits": 0,
    "other": 130991,
    "total": 130991
   },
   {
    "function": "Health and Welfare",
    "department": "Social Services",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Health and Welfare",
    "department": "Other Health & Welfare",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Culture and Recreation Total",
    "department": "Culture and Recreation Total",
    "wages": 660216,
    "benefits": 0,
    "other": 223420,
    "total": 883636
   },
   {
    "function": "Culture and Recreation",
    "department": "Libraries",
    "wages": 348971,
    "benefits": 0,
    "other": 108253,
    "total": 457224
   },
   {
    "function": "Culture and Recreation",
    "department": "Recreation",
    "wages": 84511,
    "benefits": 0,
    "other": 16563,
    "total": 101074
   },
   {
    "function": "Culture and Recreation",
    "department": "Other Culture/Recreation",
    "wages": 226734,
    "benefits": 0,
    "other": 98604,
    "total": 325338
   },
   {
    "function": "Education Total",
    "department": "Education Total",
    "wages": 0,
    "benefits": 0,
    "other": 40697071,
    "total": 40697071
   },
   {
    "function": "Education",
    "department": "Board of Education",
    "wages": 0,
    "benefits": 0,
    "other": 40697071,
    "total": 40697071
   },
   {
    "function": "Education",
    "department": "Regional School District",
    "wages": 0,
    "benefits": 0,
    "other": 0,
    "total": 0
   },
   {
    "function": "Debt Service Total",
    "department": "Debt Service Total",
    "wages": 0,
    "benefits": 0,
    "other": 2288846,
    "total": 2288846
   },
   {
    "function": "Debt Service",
    "department": "Debt Service",
    "wages": 0,
    "benefits": 0,
    "other": 2288846,
    "total": 2288846
   },
   {
    "function": "Capital Outlay Total",
    "department": "Capital Outlay Total",
    "wages": 0,
    "benefits": 0,
    "other": 453102,
    "total": 453102
   },
   {
    "function": "Capital Outlay",
    "department": "Capital Outlay",
    "wages": 0,
    "benefits": 0,
    "other": 453102,
    "total": 453102
   },
   {
    "function": "Other Total",
    "department": "Other Total",
    "wages": 0,
    "benefits": 0,
    "other": 412679,
    "total": 412679
   },
   {
    "function": "Other",
    "department": "Other",
    "wages": 0,
    "benefits": 0,
    "other": 412679,
    "total": 412679
   },
   {
    "function": "Total Expenditures",
    "department": "Total Expenditures",
    "wages": 10245138,
    "benefits": 5943653,
    "other": 52847818,
    "total": 69036609
   }
  ]
 }
}