# NYC Food Service Health Inspection Lookup

> NYC Food Service Health Inspection Lookup is a paid API for AI agents from win.oneshotagent.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Retrieves New York City health inspection scores, grades, and violations for a food service establishment, sorted newest first.

## Facts

- Endpoint: POST https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nyc-food-service-health-inspection-lookup-9241d9e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OzMUdBK4xcRel-XOR_BeK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nyc-food-service-health-inspection-lookup-9241d9e1 -d '<json body>'
```

Example prompt: Can you pull up the last 5 NYC health inspection results for Katz's Delicatessen — I want to see their scores, grades, and any violations?

## When to prefer this

Choose this endpoint when you need authoritative NYC Department of Health inspection data for a specific food establishment — including scores, letter grades, and violation details. It is ideal for pre-dining safety checks, vendor vetting, compliance research, or journalism. Use the CAMIS ID for precise lookups when available; use name + ZIP for discovery. Prefer this over general web search when you need structured, machine-readable inspection records rather than user reviews or news articles.

## Known failure modes

- No establishment found matching the given name or ZIP code — returns empty result set
- Name query too short (under 2 characters) or too long (over 100 characters) — validation error
- Invalid ZIP code format (not exactly 5 digits) — validation error
- Invalid establishment_id (non-digit characters) — validation error
- Establishment exists in city records but has no inspection history yet — empty violations list
- Payment failure via x402 protocol — request rejected before processing

## How this service works

Look up the health inspections of a New York City food service establishment: scores, grades and violations, newest first.

## Output

Returns a list of health inspection records for the matched NYC food service establishment(s), ordered newest first. Each record includes the inspection date, letter grade (A/B/C/Z/P), numeric score, and any specific violations cited. Results are capped at the requested limit (default 5, max 20 per establishment).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "Part of the trade name, matched anywhere in it and ignoring case, for example Katz's Delicatessen. 2 to 100 characters."
  },
  "limit": {
   "type": "integer",
   "description": "Most inspections to return per establishment. From 1 to 20. Defaults to `5`."
  },
  "zipcode": {
   "type": "string",
   "description": "Five-digit ZIP code of the establishment. zipcode must be five digits."
  },
  "establishment_id": {
   "type": "string",
   "description": "The city's establishment id (CAMIS), for example 40732665; takes precedence over name. establishment_id must be digits."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nyc-food-service-health-inspection-lookup-9241d9e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from win.oneshotagent.com](https://www.zero.xyz/host/win.oneshotagent.com/llms.txt)
