{
 "columns": [
  {
   "key": "completed",
   "label": "completed"
  },
  {
   "key": "address",
   "label": "address"
  },
  {
   "key": "case_type",
   "label": "case type (city's code)"
  },
  {
   "key": "case_group",
   "label": "case group (city's code)"
  },
  {
   "key": "inspection",
   "label": "inspection"
  },
  {
   "key": "result",
   "label": "result (city's code)"
  },
  {
   "key": "case_number",
   "label": "case number"
  },
  {
   "key": "scheduled",
   "label": "scheduled"
  },
  {
   "key": "parcel_id",
   "label": "parcel id"
  },
  {
   "key": "inspection_id",
   "label": "inspection id"
  },
  {
   "key": "year",
   "label": "year"
  },
  {
   "key": "city",
   "label": "city"
  },
  {
   "key": "county",
   "label": "county"
  },
  {
   "key": "lat",
   "label": "latitude"
  },
  {
   "key": "lon",
   "label": "longitude"
  }
 ],
 "counties": [
  "Hennepin County, Minnesota"
 ],
 "formats": [
  "csv",
  "xlsx"
 ],
 "id": "code-inspections",
 "interpretation": "Pick a year and type an address for the inspections at and around it; filter `case number` to read one case from first visit to final.",
 "licence": {
  "applies_to": "the free sample rows of each download only",
  "attribution": "Brick & Mortar — https://brickandmortar.dev/",
  "authorities": [
   "City of Minneapolis"
  ],
  "basis": "Government data held by a Minnesota state agency or political subdivision, presumed public under the Minnesota Government Data Practices Act (Minn. Stat. ch. 13) and published by the agency itself.",
  "full_dataset": "sold, not licensed for redistribution",
  "id": "CC BY 4.0",
  "name": "Creative Commons Attribution 4.0 International",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "locatable": true,
 "locate_wall": null,
 "locates": "latlon",
 "market": "Minneapolis",
 "read_before_quoting": "AN INSPECTION IS NOT A VIOLATION. A row is a visit on a case — most are reinspections of the same case — and the city publishes no violation-level record: its `CaseViolations` service serves these same inspection rows, so there is one dataset here, not two. `result` and `case type` are the city's own codes, left as written. THE CITY'S FEED PUT SOME INSPECTIONS ON TWO PARCELS, ONE OF THEM ACROSS TOWN: its address match drops the directional, so '2110 LYNDALE AVE N' also landed on 2110 Lyndale Ave S. Of 375,264 rows, 21,310 were such duplicates and are dropped here, keeping the copy whose parcel's own county address agrees with the city's; 2,929 inspections still sit on several parcels because no single copy agreed, and 17,015 rows share an inspection id as a result. A YEAR IS THE COMPLETION YEAR; `open` holds the inspections not yet completed or stamped with a completion date outside the feed's window. The feed opens mid-2016, so 2016 is short, and the newest year is in progress. MINNEAPOLIS ONLY.",
 "retrieved": null,
 "rows": 353954,
 "scopes": [
  {
   "key": "y2016",
   "label": "2016",
   "rows": 3772
  },
  {
   "key": "y2017",
   "label": "2017",
   "rows": 34613
  },
  {
   "key": "y2018",
   "label": "2018",
   "rows": 46288
  },
  {
   "key": "y2019",
   "label": "2019",
   "rows": 46076
  },
  {
   "key": "y2020",
   "label": "2020",
   "rows": 26824
  },
  {
   "key": "y2021",
   "label": "2021",
   "rows": 26470
  },
  {
   "key": "y2022",
   "label": "2022",
   "rows": 30389
  },
  {
   "key": "y2023",
   "label": "2023",
   "rows": 28766
  },
  {
   "key": "y2024",
   "label": "2024",
   "rows": 35907
  },
  {
   "key": "y2025",
   "label": "2025",
   "rows": 37179
  },
  {
   "key": "y2026",
   "label": "2026",
   "rows": 31222
  },
  {
   "key": "open",
   "label": "not completed, or no usable date",
   "rows": 6448
  }
 ],
 "source": "City of Minneapolis open data — CaseInspections (Regulatory Services)",
 "subject": "353,954 inspections on Minneapolis violation cases, completed 2016 to 2026, on 353,523 rows the city tied to a parcel — the case, the kind of inspection and its result. One file per year; newest row 2026-09-23.",
 "title": "Every housing, fire and nuisance inspection",
 "urls": {
  "changes": "https://brickandmortar.dev/datasets/changes/code-inspections.json",
  "download": "https://brickandmortar.dev/api/export?dataset=code-inspections&scope={scope}&format={format}",
  "page": "https://brickandmortar.dev/datasets/code-inspections/"
 },
 "download_url": "https://brickandmortar.dev/api/export?dataset=code-inspections&src=mcp",
 "carried_by": [
  {
   "role": "landlord",
   "label": "Rental property owner",
   "q": "Every inspection the city has done at my address",
   "scope": "y2025",
   "page": "https://brickandmortar.dev/?role=landlord&q=2&src=mcp"
  }
 ],
 "see_also": "https://brickandmortar.dev/datasets/manifest.json"
}
