# Restaurant Health Inspections - NYC, Chicago, Austin (`perskekits/restaurant-health-inspections`) Actor

Latest restaurant and food-business health inspections from official NYC, Chicago and Austin open data: result, score, grade, violations, closures, address and phone. Filter failed or closed inspections. Leads for pest control and food-safety consultants.

- **URL**: https://apify.com/perskekits/restaurant-health-inspections.md
- **Developed by:** [PerskeKits](https://apify.com/perskekits) (community)
- **Categories:** Lead generation, Business
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Restaurant Health Inspections - NYC, Chicago, Austin

Recent restaurant health inspections from official city open data in New York City, Chicago and Austin - with results, scores, grades and violation details.

**Popular searches this Actor covers:** restaurant inspection data, health inspection scraper, NYC restaurant grades, failed health inspections list, food safety violations data.

### What can you use it for?

- Pest control, cleaning and food-safety consultants (target failed inspections)
- Restaurant tech and supplier sales
- Journalists and food bloggers
- Consumer apps and research

### Quick start (one click)

Press **Start** - the default input returns results in about a minute for a few cents. Example input:

```json
{
  "cities": [
    "new-york",
    "chicago"
  ],
  "daysBack": 7,
  "onlyFailed": false,
  "maxItemsPerCity": 20
}
```

### Example output

| city | businessName | inspectionDate | result | score | violationCount |
|---|---|---|---|---|---|
| New York | SMILING PIZZA | 2026-10-27 | Violations cited | 12 | 2 |
| New York | FIFTH AVE DINER | 2026-10-27 | Violations cited | 13 | 3 |
| New York | CLEARY GOTTLIEB | 2026-10-27 | Violations cited | 11 | 3 |

Full records contain more fields (see the Output / Dataset tab). Download as **CSV, Excel, JSON** or use the Apify API, schedules and integrations (Zapier, Make, Google Sheets, webhooks).

### Pricing

Pay only for what you get (pay per event):

- **$0.003 per inspection** returned
- **$0.005 per run start**

Examples: 100 inspections = $0.305; 1,000 inspections = $3.00. Apify free plan credits cover small runs.

### FAQ

**Can I get only failed inspections?**
Yes - set onlyFailed to true.

**Cities?**
New York, Chicago, Austin.

**Is this legal?**
It collects publicly available data only. You are responsible for using it in line with applicable laws (e.g. CAN-SPAM, GDPR, TCPA) and the source's terms.

**Can I schedule it?**
Yes - use Apify Schedules to run it daily and get new records automatically, then send them to Google Sheets, Slack or your CRM via integrations.

**Need a custom field, source or done-for-you list?**
Open an issue on the Issues tab - feature requests are welcome.

### Technical details

The latest **restaurant and food-business health inspections** from official city open data, with **one clean row per inspection**: result, score, grade, closure status and the full list of violations. In NYC each violation is a separate source row; they're merged per inspection.

**Who uses it:** pest control (violations like mice, roaches and flies), food-safety consultants and trainers, commercial cleaning, kitchen equipment repair, grease trap services, POS and restaurant software, local journalists and food-delivery platforms.

### Sources

| City | Dataset | Notes |
|---|---|---|
| New York City | data.cityofnewyork.us `43nn-pn8j` DOHMH inspections | Score, grade, critical flags, phone, cuisine; updated daily |
| Chicago | data.cityofchicago.org `4ijn-s7e5` Food Inspections | Pass/Fail result, risk level, facility type, violation comments; updated daily |
| Austin, TX | data.austintexas.gov `ecmv-9xxi` Inspection Scores | Score only; **published with a ~4-5 week delay** (not in the default cities) |

### Output

`city`, `state`, `inspectionId`, `businessName`, `akaName`, `licenseNumber`, `facilityType` (NYC cuisine or Chicago facility type), `address`, `borough`, `zip`, `phone` (NYC), `inspectionDate`, `inspectionType`, `result`, `failed`, `score`, `grade`, `riskLevel`, `violationCount`, `criticalViolationCount` (NYC), `violations` (code, description, critical or comments), `latitude`, `longitude`, `source`.

`failed` is `true` when NYC closed the establishment or the score is 28+ (C range; in NYC a higher score is worse), when Chicago's result is Fail, or when Austin's score is under 70.

```json
{"city": "New York", "businessName": "XIN LI", "facilityType": "Chinese", "address": "801 59 STREET", "borough": "Brooklyn", "phone": "(718) 851-8086",
 "inspectionDate": "2026-10-27", "result": "Violations cited", "score": 12, "grade": "A", "violationCount": 3, "criticalViolationCount": 1,
 "violations": [{"code": "04N", "description": "Filth flies or food/refuse/sewage associated with (FRSA) flies ...", "critical": true}]}
```

### Input

| Field | Default | Notes |
|---|---|---|
| `cities` | new-york, chicago | Add `austin` for Austin scores |
| `daysBack` | 7 | |
| `dateFrom` / `dateTo` | - | Exact inspection-date range |
| `onlyFailed` | false | Only failed or closed inspections (see above) |
| `facilityTypeKeyword` | - | e.g. `Pizza`, `Bakery`, `Grocery` (NYC and Chicago) |
| `maxItemsPerCity` | 20 | Newest first |

### Pricing

Pay per result: one `result` event per inspection.

# Actor input Schema

## `cities` (type: `array`):

Cities to pull inspections from.

## `daysBack` (type: `integer`):

Inspections in the last N days (ignored if Date from is set).

## `dateFrom` (type: `string`):

Optional start of the inspection-date range.

## `dateTo` (type: `string`):

Optional end of the inspection-date range.

## `onlyFailed` (type: `boolean`):

NYC: closed by DOHMH or score 28+ (C range). Chicago: result Fail. Austin: score under 70.

## `facilityTypeKeyword` (type: `string`):

NYC cuisine or Chicago facility type, e.g. Pizza, Bakery, Grocery, Restaurant.

## `maxItemsPerCity` (type: `integer`):

Newest inspections first.

## Actor input object example

```json
{
  "cities": [
    "new-york",
    "chicago"
  ],
  "daysBack": 7,
  "onlyFailed": false,
  "maxItemsPerCity": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cities": [
        "new-york",
        "chicago"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("perskekits/restaurant-health-inspections").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "cities": [
        "new-york",
        "chicago",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("perskekits/restaurant-health-inspections").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cities": [
    "new-york",
    "chicago"
  ]
}' |
apify call perskekits/restaurant-health-inspections --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,perskekits/restaurant-health-inspections"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mezQtCKFGGFxglESn/builds/Zq9QJKqDk23Ch3zMb/openapi.json
