Civic records API

Cockroach Infestation API

The Cockroach Infestation API returns about 5,278 inspection records concerning cockroach infestations, all from New York City. Records include dates, locations, neighbourhoods and inspection status, alongside geographic and community context. Developers and data buyers can use the records to map reported inspections, analyze patterns and combine inspection locations with selected local indicators.

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

Key facts

  • The API contains about 5,278 cockroach infestation inspection records.
  • All listed records are from New York City, New York.
  • The dataset includes 4,000 sampled rows.
  • Median home value is present in 75% 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/cockroach-infestation/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-24ZBX3940.808-73.92
New York City2026-11-24Violations were cited in the following area(s).BK9540.651-73.952
New York City2026-11-23Violations were cited in the following area(s).MN1740.765-73.982
New York City2026-11-23ZMN2340.73-74
New York City2026-11-23Violations were cited in the following area(s).QN7040.761-73.924
New York City2026-11-23AQN1740.719-73.845
New York City2026-11-23Violations were cited in the following area(s).MN3640.844-73.939
New York City2026-11-23Violations were cited in the following area(s).QN0640.727-73.786
New York City2026-11-23Violations were cited in the following area(s).MN2440.717-73.997
New York City2026-11-21ZMN3340.791-73.945

Cockroach infestation inspection data

This dataset records inspections associated with cockroach infestations, which may be indicated by live or dead roaches, droppings, egg cases or odor. The records come from city and county open-data portals.

Developers, researchers and data buyers can use the API to explore inspection locations and reported status, or incorporate the data into mapping, analysis and public-health workflows.

New York City coverage

The dataset covers the United States, with all records in New York State and New York City. It contains about 5,278 records; 4,000 rows were sampled.

Fields in each record

Inspection fields include source, date, year, status, city and neighbourhood, plus latitude and longitude. These fields are reported as fully populated. Sample statuses include “Z,” “A” and “Violations were cited in the following area(s).”

Records can also include estimated population within 1 km, elevation, median household income, tree canopy percentage, flood zone, settlement class, climate group and median home value. These contextual fields have varying completeness, from 75% for median home value to 97% 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
  • settlement_classCity, town or countryside
  • climate_groupClimate group
  • acs_median_home_value_usdTypical home value (USD)

Query and download options

Filter inspection records by region, radius, date or fields to focus on a place, period or subset of the available data. Stream records for live queries, or use a bulk download to work with the whole dataset.

Available formats are JSON, GeoJSON, CSV and Parquet.

What you can build

Map inspection locations and compare reported statuses across New York City neighbourhoods. Analyze how inspection records vary by year or date, or combine locations with population, income, housing, tree canopy and flood-zone context.

The data can support neighborhood dashboards, inspection trend analysis, location-based research, environmental health studies and data products that help users explore cockroach infestation inspections.

Access and plans

Access the API with an API key. A free tier is available for evaluation, while paid plans offer higher limits and bulk downloads; prices are not stated here.

Choose JSON, GeoJSON, CSV or Parquet according to your application or analysis workflow.

Frequently asked questions

Is there an API for cockroach infestation inspections in New York City?

Yes. The Cockroach Infestation API provides about 5,278 inspection records, all from New York City. Records include location, date, neighbourhood and status fields, with additional geographic and community context.

What does the Cockroach Infestation API record?

It records inspections associated with cockroach infestations. The data includes the inspection date and year, status, city, neighbourhood, coordinates and source, along with contextual fields such as population, elevation, income and flood zone.

How often is the cockroach infestation data updated?

The update frequency is not specified in the available dataset information. Records include a date field, but that field describes the date of each record and does not establish how often new records are added.

Can I filter cockroach inspection records by neighbourhood?

The records include a neighbourhood field, so you can focus an analysis on recorded neighbourhoods. The available information does not specify particular query syntax or parameter names.

What fields does the Cockroach Infestation API return?

Core fields include source, date, year, latitude, longitude, status, city and neighbourhood. Additional fields provide population, elevation, household income, tree canopy, flood zone, settlement class, climate group and home value context.

What formats are available for cockroach inspection data?

The data is available in JSON, GeoJSON, CSV and Parquet. These formats support application use, geospatial workflows and analysis in data tools.

Does this API cover cockroach inspections outside New York City?

No other city coverage is listed. The coverage information places all records in New York City, New York, United States.

Are all fields present in every cockroach inspection record?

No. Core fields such as date, status, city, neighbourhood and coordinates are listed as fully populated, but contextual fields vary in completeness. For example, median home value is present in 75% of records, while population and elevation are present in 97%.

Start building with the Cockroach Infestation API

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