NYC Restaurant Health Inspections Scraper avatar
NYC Restaurant Health Inspections Scraper

Pricing

Pay per usage

Go to Apify Store
NYC Restaurant Health Inspections Scraper

NYC Restaurant Health Inspections Scraper

Search NYC restaurant health inspection grades and violations. Get grades, inspection dates, and violation details. For food safety research.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Fortuitous Pirate

Fortuitous Pirate

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Share

NYC Restaurant Inspections Scraper

Apify actor that fetches NYC DOHMH Restaurant Inspection Results from the NYC Open Data Socrata API.

Data Source

Input Parameters

ParameterTypeDescription
boroughstringFilter by NYC borough (Manhattan, Brooklyn, Queens, Bronx, Staten Island)
gradestringFilter by inspection grade (A, B, C, N, P, Z)
cuisineTypestringFilter by cuisine (e.g., "Chinese", "Italian")
inspectionDateFromstringInspections on/after this date (YYYY-MM-DD)
inspectionDateTostringInspections on/before this date (YYYY-MM-DD)
maxItemsintegerMaximum records to fetch (default: 1000, max: 50000)

Output Schema

Each record contains:

FieldDescription
camisUnique restaurant identifier
dbaBusiness name (Doing Business As)
boroBorough (Manhattan, Brooklyn, Queens, Bronx, Staten Island)
buildingBuilding number
streetStreet name
zipcodeZIP code
phonePhone number
cuisine_descriptionType of cuisine
inspection_dateDate of inspection (ISO format)
actionAction taken by DOHMH
violation_codeViolation code if any
violation_descriptionDescription of violation
critical_flag"Critical" or "Not Critical"
scoreInspection score (lower is better)
gradeLetter grade (A, B, C, N, P, Z)
grade_dateDate grade was assigned
inspection_typeType of inspection
latitudeLatitude coordinate
longitudeLongitude coordinate

Grade Meanings

  • A: Score 0-13
  • B: Score 14-27
  • C: Score 28+
  • N: Not Yet Graded (pending adjudication)
  • P: Grade Pending (new restaurant, reinspection needed)
  • Z: Grade Pending (reinspection scheduled)

Rate Limits

The Socrata API allows 1,000 requests per hour without an app token. This actor includes a 1-second delay between requests to stay well within limits.

Local Testing

npm install
node src/main.js

Check output in storage/datasets/default/.

Example Usage

Fetch A-graded Italian restaurants in Manhattan from 2025:

{
"borough": "Manhattan",
"grade": "A",
"cuisineType": "Italian",
"inspectionDateFrom": "2025-01-01",
"maxItems": 100
}