# Kansas City Dangerous Buildings Scraper (`zerobreak/kansas-city-dangerous-buildings-scraper`) Actor

Kansas City Dangerous Buildings Scraper is a Python tool to extract building addresses, case statuses, violation codes, parcel numbers, and owner details from municipal code enforcement registries. It exports structured urban hazard datasets into clean CSV or JSON format

- **URL**: https://apify.com/zerobreak/kansas-city-dangerous-buildings-scraper.md
- **Developed by:** [ZeroBreak](https://apify.com/zerobreak) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Kansas City Dangerous Buildings Scraper — Distressed Property and Building Case Records

![Kansas City Dangerous Buildings Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/kansas-city-dangerous-buildings-scraper-cover.png)

Collect publicly available dangerous building case records from Kansas City, Missouri. Retrieve property addresses, case numbers, case status, parcel identifiers, council districts, and neighborhood information. Filter records, explore dataset metadata, and export structured results as JSON, CSV, Excel, and other supported formats.

### Overview

This actor collects records from the Kansas City Dangerous Buildings List dataset.

It supports full dataset collection, filtered searches, and dataset metadata retrieval. Use it to organize distressed property and building case information into an Apify dataset for property research, lead discovery, and neighborhood analysis.

### Features

- Collect Kansas City dangerous building case records.
- Retrieve case numbers and property addresses.
- Extract case opening dates and case statuses.
- Collect parcel identification numbers (PINs).
- Retrieve council district and neighborhood information.
- Include geographic coordinates when available.
- Filter records by case status or other available dataset fields.
- Retrieve dataset column names, types, and descriptions.
- Export results in JSON, CSV, Excel, and other supported formats.

### Collection Modes

**All Rows**

Collects dangerous building records from the public dataset, up to the configured item limit.

**Filtered Rows**

Collects records matching supplied filter conditions. Use this mode to narrow results by case status or other available dataset fields.

**Dataset Metadata**

Retrieves information about the dataset's columns, including their names, types, and descriptions.

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Collection mode: `rows`, `filtered`, or `metadata`. |
| `maxItems` | Integer | Maximum number of records to collect. |
| `orderBy` | String | Field or expression used to order collected records. |
| `where` | String | Optional filter condition for the filtered mode. |
| `requestDelaySecs` | Number | Delay between collection requests in seconds. |

### Example Input

**Collect dangerous building records**

```json id="j8w3kp"
{
  "mode": "rows",
  "maxItems": 50,
  "orderBy": ":id",
  "requestDelaySecs": 1
}
```

**Filter ongoing cases**

```json id="n5q2vd"
{
  "mode": "filtered",
  "where": "statusofcase='Ongoing Case'",
  "maxItems": 25,
  "requestDelaySecs": 1
}
```

### What Data Does This Actor Extract?

| Field | Description |
|---|---|
| `casenumber` | Dangerous building case number. |
| `address` | Property street address. |
| `zip_code` | Property ZIP code. |
| `case_opened` | Date the case was opened. |
| `statusofcase` | Current case status shown in the dataset. |
| `pin` | Property identification number. |
| `council_district` | Associated council district. |
| `location` | Formatted property location. |
| `case_location` | Geographic point containing longitude and latitude coordinates. |
| `neighborhood` | Neighborhood associated with the property. |
| `scraped_at` | Date and time when the record was collected. |

**Note:** Case details and property information may change. A listed property should not automatically be considered currently dangerous, vacant, or available for purchase. Verify the latest case information before making property or investment decisions.

### Example Output

```json id="b6z4mt"
{
  "casenumber": "2025-00344",
  "address": "3808 Central St",
  "zip_code": "64111",
  "case_opened": "2025-12-16T00:00:00.000",
  "statusofcase": "Ongoing Case",
  "pin": "132294",
  "council_district": "4",
  "location": "3808 Central St, Kansas City, MO, 64111",
  "case_location": {
    "type": "Point",
    "coordinates": [
      -94.58946,
      39.05808
    ]
  },
  "neighborhood": "HANOVER PLACE",
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Distressed Property Research:** Identify properties associated with dangerous building cases.
- **Real Estate Lead Discovery:** Build property research lists using publicly available case records.
- **Neighborhood Analysis:** Explore dangerous building cases across Kansas City neighborhoods.
- **Property Due Diligence:** Review case statuses and property identifiers before further investigation.
- **Geographic Research:** Use location coordinates to analyze property distribution.
- **Data Management:** Organize building case records in spreadsheets, databases, and internal tools.

### Working with Your Dataset

After the actor completes a run:

1. Open the actor's **Dataset** tab.
2. Review the collected dangerous building records.
3. Export the results as JSON, CSV, Excel, or another supported format.
4. Use the exported data for property research, reporting, and neighborhood analysis.

### FAQ

**Who is this actor for?**

It is useful for real estate professionals, property researchers, investors, analysts, and developers who need structured Kansas City dangerous building records.

**Can I filter for ongoing cases?**

Yes. Use filtered mode with a condition matching the `statusofcase` field, such as `statusofcase='Ongoing Case'`.

**Does the dataset include property locations?**

Yes. Records can include property addresses, formatted locations, and geographic coordinates when available.

**Can I identify a property using its PIN?**

Yes. The actor collects the `pin` field when it is available.

**Can I collect the entire dataset?**

You can collect records up to the configured `maxItems` limit. Larger collections may require multiple runs.

**Can I run it on a schedule?**

Yes. Configure an Apify Schedule to refresh the dataset automatically at your preferred interval.

**Can I export the collected records?**

Yes. Apify supports JSON, CSV, Excel, and other dataset export formats.

### Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Kansas City, Missouri. It collects publicly available information. Users are responsible for how they use, store, and redistribute collected data.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape.

## `where` (type: `string`):

SoQL $where clause, e.g. statusofcase='Ongoing Case'

## `q` (type: `string`):

Full-text search ($q) across text columns

## `orderBy` (type: `string`):

SoQL $order (stable paging needs a unique order)

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "rows",
  "where": "",
  "q": "",
  "orderBy": ":id",
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("zerobreak/kansas-city-dangerous-buildings-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("zerobreak/kansas-city-dangerous-buildings-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call zerobreak/kansas-city-dangerous-buildings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zerobreak/kansas-city-dangerous-buildings-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Vb0dHRLZKWLR6a48b/builds/utSDHmXy2t7InPWet/openapi.json
