Lookup Business Health Inspections
by win.oneshotagent.com in Other
Look up the health inspections of a New York City food service establishment: scores, grades and violations, newest first.
https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections- Price
- $0.005
- per call in USDC
- Uptime
- 99.0%
- last 30 days
- Response time
- 202 ms
- 402 ms slowest 5%
- Last check
- Passed
- 8 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections
Each call costs $0.005 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections
content-type: application/json
{
"establishment_id": "40732665",
"limit": 3
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
establishment_id | string | No | The city's establishment id (CAMIS), for example 40732665; takes precedence over name. establishment_id must be digits. |
limit | integer | No | Most inspections to return per establishment. From 1 to 20. Defaults to `5`. |
name | string | No | Part of the trade name, matched anywhere in it and ignoring case, for example Katz's Delicatessen. 2 to 100 characters. |
zipcode | string | No | Five-digit ZIP code of the establishment. zipcode must be five digits. |
Example response
The provider's example. We can't check it without paying.
Example response, 79 lines
{
"establishments": [
{
"address": "205 EAST HOUSTON STREET",
"borough": "Manhattan",
"cuisine": "Sandwiches",
"establishment_id": "40732665",
"inspections": [
{
"action": "No violations were recorded at the time of this inspection.",
"date": "2026-09-30",
"grade": null,
"grade_date": null,
"score": 0,
"type": "Inter-Agency Task Force / Initial Inspection",
"violations": []
},
{
"action": "No violations were recorded at the time of this inspection.",
"date": "2026-07-13",
"grade": null,
"grade_date": null,
"score": null,
"type": "Administrative Miscellaneous / Initial Inspection",
"violations": []
},
{
"action": "Violations were cited in the following area(s).",
"date": "2026-07-13",
"grade": null,
"grade_date": null,
"score": 20,
"type": "Cycle Inspection / Initial Inspection",
"violations": [
{
"code": "04H",
"critical": true,
"description": "Raw, cooked or prepared food is adulterated, contaminated, cross-contaminated, or not discarded in accordance with HACCP plan."
},
{
"code": "04K",
"critical": true,
"description": "Evidence of rats or live rats in establishment's food or non-food areas."
},
{
"code": "04N",
"critical": true,
"description": "Filth flies or food/refuse/sewage associated with (FRSA) flies or other nuisance pests in establishment’s food and/or non-food areas. FRSA flies include house flies, blow flies, bottle flies, flesh flies, drain flies, Phorid flies and fruit flies."
},
{
"code": "08A",
"critical": false,
"description": "Establishment is not free of harborage or conditions conducive to rodents, insects or other pests."
},
{
"code": "10B",
"critical": false,
"description": "Anti-siphonage or back-flow prevention device not provided where required; equipment or floor not properly drained; sewage disposal system in disrepair or not functioning properly. Condensation or liquid waste improperly disposed of."
},
{
"code": "10F",
"critical": false,
"description": "Non-food contact surface or equipment made of unacceptable material, not kept clean, or not properly sealed, raised, spaced or movable to allow accessibility for cleaning on all sides, above and underneath the unit."
},
{
"code": "28-05",
"critical": false,
"description": "Food adulterated or misbranded. Adulterated or misbranded food possessed, being manufactured, produced, packed, sold, offered for sale, delivered or given away"
}
]
}
],
"latitude": 40.72250411745,
"longitude": -73.987300961167,
"name": "KATZ'S DELICATESSEN",
"zipcode": "10002"
}
]
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections' \
-H 'content-type: application/json' \
--data-raw '{"establishment_id":"40732665","limit":3}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections' \
-H 'content-type: application/json' \
--data-raw '{"establishment_id":"40732665","limit":3}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwin.oneshotagent.com%2Fv1%2Ftools%2Flookup%2Fbusiness-health-inspections&method=POST
const res = await pay("https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"establishment_id": "40732665",
"limit": 3
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://win.oneshotagent.com/v1/tools/lookup/business-health-inspections",
json={
"establishment_id": "40732665",
"limit": 3,
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 8 h ago | Passed | 402 | 161 ms | $0.005 |
| 19 h ago | Passed | 402 | 245 ms | $0.005 |
| 29 h ago | Passed | 402 | 164 ms | $0.005 |
| 39 h ago | Passed | 402 | 171 ms | $0.005 |
| 2 days ago | Passed | 402 | 175 ms | $0.005 |
Show 10 older checks
| 3 days ago | Passed | 402 | 195 ms | $0.005 |
| 3 days ago | Passed | 402 | 192 ms | $0.005 |
| 5 days ago | Timed out | - | - | - |
| 6 days ago | Passed | 402 | 438 ms | $0.005 |
| 7 days ago | Passed | 402 | 206 ms | $0.005 |
| 7 days ago | Passed | 402 | 202 ms | $0.005 |
| 8 days ago | Passed | 402 | 217 ms | $0.005 |
| 8 days ago | Passed | 402 | 233 ms | $0.005 |
| 8 days ago | Passed | 402 | 145 ms | $0.005 |
| 9 days ago | Passed | 402 | 150 ms | $0.005 |