The NYC Department of Health’s 43nn-pn8j dataset can be queried through the Socrata API, but current grades require the latest valid inspection, distinct restaurant counts and care with ungraded visits.
Last updated
The New York City Department of Health and Mental Hygiene publishes restaurant inspections in the DOHMH New York City Restaurant Inspection Results dataset, identified as 43nn-pn8j. Its live JSON endpoint supports SoQL queries, and light public use does not require an API key.
The dataset is a history table rather than a current-grade table. To find a restaurant’s current grade, queries should select the latest real inspection_date for its CAMIS establishment ID, exclude the 1900-01-01 placeholder date, and then read the grade and score from that inspection. The example for Dirt Candy in Manhattan lists a Grade A, score 7, inspection on November 12, 2025, as the latest graded inspection in the file’s December 1, 2026 record.
Each row represents a violation cited during an inspection, so counting rows does not count restaurants; establishments should be counted with distinct CAMIS values. A later inspection can also be ungraded, in which case the previous letter grade should not be presented as the current grade without labeling it as the last graded visit. The guide also notes that the A/B boundary is 13 points: A covers 0–13, B covers 14–27 and C covers 28 or more. A December 2, 2026 snapshot reported 21,670 Grade A restaurants, or 90.4% of letter-graded restaurants, based on a November 30 citywide update.