Civic records API

Handwashing Violation API

The Handwashing Violation API returns food-safety inspection records about failures to wash hands before handling food, with about 9,463 records. Its coverage is New York City, New York, United States. Records include dates, status, neighbourhood and coordinates, with additional population, income, housing, tree-cover, elevation and flood-zone attributes.

United States · JSON, GeoJSON, CSV, Parquet

POSThttps://api.outerview.ai/v1/stream
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "handwashing violation",
    "region_id": "143179",
    "limit": 50
  }'

Key facts

  • The API contains about 9,463 handwashing violation records.
  • Coverage is New York City, New York, United States.
  • The coverage information reports 4,000 sampled rows.
  • Records include latitude and longitude for New York City locations.

Quick start

  1. 1. Create an account and generate an API key on the developer platform.
  2. 2. Send it as a Bearer token in the Authorization header.
  3. 3. Query by place, radius or date (the example searches New York City).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/handwashing-violation/download?format=geojson

Add &region_slug=… to limit to one place. Formats: csv, geojson, parquet.

Sample records

Real records from the data, trimmed to the main fields.

10 records
CityDateStatusNeighbourhoodLatitudeLongitude
New York City2026-11-24AMN1940.751-73.971
New York City2026-11-24ABK6140.682-73.935
New York City2026-11-24ZMN2040.752-73.98
New York City2026-11-24Violations were cited in the following area(s).MN2540.71-74.008
New York City2026-11-24NQN5240.756-73.815
New York City2026-11-24NQN6240.746-73.826
New York City2026-11-24NQN7240.776-73.901
New York City2026-11-24AMN1240.8-73.968
New York City2026-11-24Violations were cited in the following area(s).MN3540.856-73.928
New York City2026-11-23NQN7040.768-73.912

Overview

This API covers handwashing violations recorded through food-safety inspections. These violations involve failing to wash hands, often before handling food.

Developers, researchers and data buyers can use the records to examine where and when these violations are recorded and combine them with location or neighbourhood analysis.

Coverage

The dataset covers New York City in New York, United States. The listed coverage is entirely within New York City, and the API contains about 9,463 records.

The coverage information also reports 4,000 sampled rows. Source data comes from city and county open-data portals.

Fields

Each record includes its source dataset, date, year, current status, city, recorded neighbourhood and latitude and longitude. These core fields are listed as filled for every record.

Additional fields include nearby population, elevation, median household income, tree canopy, flood zone and median home value. Their reported completeness ranges from 76% for home value to 94% for population and elevation.

  • sourceSource dataset
  • dateDate of the record
  • yearYear
  • latitudeLatitude
  • longitudeLongitude
  • statusCurrent status
  • cityCity
  • neighborhoodNeighbourhood recorded by the agency
  • ghsl_pop_1km_2020How many people live here (people)
  • elevation_mHeight above sea level (m)
  • acs_median_household_income_usdTypical household income (USD (2024 dollars))
  • nlcd_tree_canopy_pctTree cover (%)
  • flood_zoneFlood risk
  • acs_median_home_value_usdTypical home value (USD)

Queries

Filter records by region, radius, date or selected fields to focus analysis on a place, period or subset of attributes. Location fields support geographic analysis alongside city and neighbourhood values.

Use stream access for live queries or bulk download for whole datasets. Available formats are JSON, GeoJSON, CSV and Parquet. An API key is required; a free tier is available, with paid plans for higher limits and bulk downloads.

Use cases

Map recorded handwashing violations across New York City neighbourhoods; compare counts across dates or areas; build food-safety research datasets; combine inspection locations with population or income context; and explore whether recorded violations overlap with flood zones or other environmental attributes.

Pricing

The API offers a free tier. Paid plans are available for higher limits and bulk downloads; prices are not specified here.

Data is available in JSON, GeoJSON, CSV and Parquet. An API key is required to access the API.

Frequently asked questions

Is there an API for handwashing violations in New York City?

Yes. The Handwashing Violation API covers New York City, New York, and contains about 9,463 records. The records come from food-safety inspections and include dates, status, neighbourhood and geographic coordinates.

What does a handwashing violation record contain?

A record includes the source dataset, date, year, current status, city, neighbourhood and latitude and longitude. Additional attributes include population, elevation, median household income, tree canopy, flood zone and median home value, with varying field completeness.

How often is the handwashing violation data updated?

The available facts do not specify an update schedule. The API data comes from city and county open-data portals, so check the source information for the timing of records before relying on a particular update cadence.

Can I filter handwashing violations by neighbourhood or date?

Yes. Queries can be filtered by region and date, and the records include a neighbourhood field. You can also filter by radius or selected fields to focus on a geographic area or the attributes needed for your analysis.

Does the API include violation locations?

Yes. Records include latitude and longitude, and these fields are listed as filled for every record. You can use the coordinates to map inspection records or query by radius, alongside city and neighbourhood information.

What formats are available for handwashing violation data?

The available formats are JSON, GeoJSON, CSV and Parquet. These formats support use in applications, mapping workflows and data-analysis tools. Access requires an API key.

Can I download the full handwashing violation dataset?

Bulk downloads are available on paid plans. The API also offers a free tier, while paid plans support higher limits and bulk downloads. The dataset contains about 9,463 records.

Are population and income included with the inspection records?

Yes. Records include nearby population and median household income, as well as other contextual attributes such as elevation, tree canopy, flood zone and median home value. These attributes are not all present for every record.

Start building with the Handwashing Violation API

Free to try. Paid plans raise limits and unlock bulk downloads.