Skip to contents

Cleaned version of the DOHMH New York City Restaurant Inspection Results dataset, with one row per violation citation. Inspections with no violations are represented by a single row with no violation code, and establishments that have not yet been inspected by a single row with a missing inspection date.

Usage

nyc_restaurant_inspections_df

Format

nyc_restaurant_inspections_df

A tibble with 295,292 rows and 26 columns:

camis

Unique identifier for the establishment. Static per restaurant permit.

dba

Establishment name ("Doing Business As"). May change at the discretion of the owner.

boro

Borough of the establishment. Note that there may be discrepancies between zip code and borough due to differences between mailing address and physical location. NA where the source records borough as "0".

building

Building number of the establishment.

street

Street name of the establishment.

zipcode

Zip code of the establishment.

phone

Phone number provided by the owner or manager.

cuisine

Cuisine of the establishment. Optional field provided by the owner or manager.

inspection_date

Date of inspection. NA for establishments that have not yet been inspected (recorded as 1900-01-01 in the source).

action

Action associated with the inspection. One of "Violations were cited in the following area(s).", "No violations were recorded at the time of this inspection.", "Establishment Closed by DOHMH. Violations were cited in the following area(s) and those requiring immediate action were addressed.", "Establishment re-opened by DOHMH.", or "Establishment re-closed by DOHMH.".

violation_code

Violation code. See nyc_violations_df.

violation_description

Violation description. Wording for a given code has changed over time.

critical_flag

"Critical", "Not Critical", or "Not Applicable". Critical violations are those most likely to contribute to foodborne illness.

score

Total score for the inspection. Lower is better. Scores are updated based on adjudication results.

grade

Grade associated with the inspection: A, B, C; N = Not yet graded; Z = Grade pending; P = Grade pending issued on re-opening following an initial inspection that resulted in a closure.

grade_date

Date the grade was issued.

inspection_type

Combination of the inspection program and the type of inspection performed, e.g. "Cycle Inspection / Initial Inspection".

gradable

Logical. TRUE if the inspection is a gradable inspection according to DOHMH guidance; see Details.

latitude

Latitude (WGS84). NA where missing or recorded as 0.

longitude

Longitude (WGS84). NA where missing or recorded as 0.

community_board

Community board (three-digit code; first digit is the borough).

council_district

City Council district.

census_tract

Census tract (six-digit code, within borough).

bin

Building Identification Number.

bbl

Borough-Block-Lot identifier (10 digits).

nta

Neighborhood Tabulation Area code.

Source

NYC Department of Health and Mental Hygiene, via NYC OpenData: https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/43nn-pn8j

Details

The dataset contains every sustained or not yet adjudicated violation citation from every full or special program inspection conducted up to three years prior to the most recent inspection, for restaurants and college cafeterias in an active status on the record date (2026-11-09). Establishments that go out of business are removed, and violations dismissed on adjudication are removed. The data are therefore not suitable for historical comparisons across years.

Letter grading began on July 27, 2010. A score below 14 on an initial or re-inspection results in an A. On re-inspection, 14–27 points results in a B and 28 or more in a C. Letter grading was paused from March 17, 2020 to July 19, 2021 due to COVID-19. Special Program and Administrative violations (codes 15–22) do not contribute to score or grade.

An inspection is flagged gradable when its inspection_type is one of Cycle Inspection or Pre-permit (Operational) Initial Inspection or Re-inspection; its action reports violations cited, no violations, or closure; and it took place on or after 2010-07-27. Scores and grades may be inconsistent with each other because of data system limitations and adjudication.

Author

Kieran Healy