# NYC Restaurant Health Inspection Data

**Use case:** 

Access detailed records of failed inspections and violations in NYC restaurants. Includes risk scores and compliance trends for informed decisions.

## Input

```json
{
  "jurisdiction": "nyc",
  "restaurantName": "",
  "zipCode": "",
  "dateFrom": "",
  "dateTo": "",
  "inspectionResults": [],
  "minScore": 0,
  "maxScore": 0,
  "violationCategories": [],
  "criticalViolationsOnly": false,
  "closureOnly": false,
  "reinspectionOpportunityOnly": false,
  "maxResults": 1000,
  "sortOrder": "date_desc",
  "includeViolationDetails": true,
  "includeHistoricalInspections": true,
  "keyword": "",
  "requestDelayMs": 150,
  "maxConsecutiveErrors": 5
}
```

## Output

```json
{
  "restaurant_name": {
    "label": "Restaurant name",
    "format": "string"
  },
  "city": {
    "label": "City",
    "format": "string"
  },
  "state": {
    "label": "State",
    "format": "string"
  },
  "inspection_date": {
    "label": "Inspection date",
    "format": "string"
  },
  "inspection_result": {
    "label": "Inspection result",
    "format": "string"
  },
  "inspection_grade": {
    "label": "Inspection grade",
    "format": "string"
  },
  "inspection_score": {
    "label": "Inspection score",
    "format": "number"
  },
  "critical_violation_count": {
    "label": "Critical violations",
    "format": "integer"
  },
  "risk_score": {
    "label": "Risk score",
    "format": "integer"
  },
  "lead_category": {
    "label": "Lead category",
    "format": "string"
  },
  "repeat_offender": {
    "label": "Repeat offender",
    "format": "boolean"
  },
  "recent_failure": {
    "label": "Recent failure",
    "format": "boolean"
  },
  "recent_closure": {
    "label": "Recent closure",
    "format": "boolean"
  },
  "likely_service_needs": {
    "label": "Likely service needs",
    "format": "array"
  },
  "source_url": {
    "label": "Source URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Restaurant Health Inspection Intelligence](https://apify.com/c0rrupt3d/restaurant-health-inspection-intelligence) with a specific input configuration. Visit the [Actor detail page](https://apify.com/c0rrupt3d/restaurant-health-inspection-intelligence) to learn more, explore other use cases, and run it yourself.