Civic records API

Food Contamination API

The Food Contamination API returns food contamination inspection records, with about 51,000 records in its current coverage. Records include dates, status, neighbourhoods and coordinates, alongside geographic and demographic context. Developers and data buyers can use the data to explore inspection patterns and build location-aware applications focused on New York City.

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": "food contamination",
    "region_id": "143179",
    "limit": 50
  }'

Key facts

  • The API contains about 51,000 food contamination inspection records.
  • Coverage includes New York City, New York, United States.
  • The coverage facts describe a sample of 4,000 rows.
  • Median household income is present in 96% of records.
  • Median home value is present in 79% of records.

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/food-contamination/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-24ABK6040.651-73.952
New York City2026-11-24AMN1240.793-73.968
New York City2026-11-24Violations were cited in the following area(s).QN5540.686-73.827
New York City2026-11-24Violations were cited in the following area(s).MN3440.803-73.935
New York City2026-11-24ABX2840.878-73.903
New York City2026-11-24ZMN2040.752-73.98
New York City2026-11-24Violations were cited in the following area(s).MN0340.811-73.943
New York City2026-11-24AQN5540.687-73.823
New York City2026-11-24ABK6140.682-73.935
New York City2026-11-24Violations were cited in the following area(s).MN1540.769-73.989

Food contamination inspection data

This API provides records related to food contamination, a topic that includes food described as spoiled, dirty, moldy, leaking or improperly covered. The data is based on inspections and comes from city and county open-data portals.

Developers, researchers and data buyers can use the records to explore inspection status and location, or combine them with other geographic and community information.

Coverage in New York City

The available coverage is in the United States, New York State and New York City. The dataset contains about 51,000 records; the coverage facts also describe a sample of 4,000 rows.

Records include city, neighbourhood and coordinates, supporting analysis across locations within New York City.

Fields in each record

Inspection and location fields include source, date, year, latitude, longitude, status, city, neighbourhood and settlement class. These describe the source dataset, record date, current status and recorded location.

Context fields include population within one kilometre, tree canopy percentage, flood zone, elevation and climate group. Median household income is present in 96% of records, median home value in 79%, and the other listed fields are filled in 99% or 100% of records.

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

Query and download options

Filter records by region, radius, date or selected fields to focus an analysis on a place or time period. Stream records for live queries, or use a bulk download when you need a whole dataset.

Available formats are JSON, GeoJSON, CSV and Parquet. An API key provides access; a free tier is available, with paid plans for higher limits and bulk downloads.

What you can build

Map inspection records by neighbourhood to compare where contamination-related records appear across New York City.

Track record dates and statuses to build inspection monitoring dashboards or review changes over time.

Combine inspection locations with flood-zone, elevation and tree-canopy fields to examine environmental context.

Compare records with population and household-income context for research into how inspection patterns vary by area.

Create data pipelines or downloadable analysis datasets using JSON, GeoJSON, CSV or Parquet.

Formats and access

The API offers JSON, GeoJSON, CSV and Parquet formats and requires an API key. A free tier is available for getting started.

Paid plans support higher limits and bulk downloads. Plan pricing is not specified here.

Frequently asked questions

Is there an API for food contamination inspection data in New York City?

Yes. The Food Contamination API provides inspection records for New York City, with about 51,000 records in its current coverage. Records include dates, status, neighbourhoods and coordinates, along with geographic and demographic context fields.

What fields does the Food Contamination API return?

The API returns fields including source, date, year, latitude, longitude, status, city, neighbourhood and settlement class. It also includes population, tree canopy, flood zone, elevation, climate group, median household income and median home value context.

Can I filter food contamination records by neighbourhood?

Records include a neighbourhood value recorded by the agency, as well as city and coordinates. The query options support filtering by region, radius, date or selected fields, so you can focus analysis on a location or time period.

How often is the food contamination data updated?

An update schedule is not specified in the available API information. Records include a date field, which lets users inspect the dates represented in the dataset, but that field does not establish how frequently new records are added.

What does the status field mean in the inspection data?

The status field contains the current status recorded for an entry. Sample values include A, Z and the text “Violations were cited in the following area(s).” The provided information does not define the meaning of every status value.

Which formats are available for food contamination records?

The available formats are JSON, GeoJSON, CSV and Parquet. These options support working with records as structured data, geographic data or files for analysis.

Can I download the whole food contamination dataset?

Bulk downloads are available on paid plans. The API also supports streaming for live queries, and the listed formats include JSON, GeoJSON, CSV and Parquet. Plan pricing and specific download limits are not provided here.

Where does the food contamination data come from?

The data comes from city and county open-data portals. The available coverage is New York City, New York, in the United States; the records are based on inspections.

Start building with the Food Contamination API

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