Query current San Francisco restaurant and food-facility health inspection scores

domain: data.sfgov.org · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Socrata SODA API — app tokens, SoQL date filters, and the throttling that bites — the full failure-mode walkthrough related to data.sfgov.org, checked against official docs, with linked verified routes.

Steps

  1. Dataset tvy3-wexg, 'Health Inspection Scores (2024-Present)', is DPH's current inspection-scores dataset; the older pyih-qa8i and 6ud7-8ksb LIVES-era datasets stop around 2019 and are not being extended
  2. Query https://data.sfgov.org/resource/tvy3-wexg.json with $where on dba (business name) or permit_number
  3. Read facility_rating_status (Pass/Conditional Pass/Closure), violation_count, and violation_codes for outcome detail
  4. Check data_as_of and data_loaded_at to know the freshness of the snapshot relative to DPH's own record cutoff

Known gotchas

Related routes

Check a commissary kitchen's or catering facility's current health inspection score via San Francisco's open data API
data.sfgov.org · 5 steps · unrated
Query Chicago food establishment inspection results
data.cityofchicago.org · 4 steps · unrated
Check LA County health-inspection grade or score for a restaurant or market via the City of LA open data portal
data.lacity.org · 4 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans