# Kansas City Building Permit Leads for Contractors (`indigo_bean/kc-issued-permits`) Actor

Pull newly issued Kansas City, Missouri permits by trade — electrical, mechanical, plumbing, remodel and more. Privacy-minimized export of type, class, dates, valuation, area and district. No owner names, street addresses or contacts. For contractors tracking new work, not a homeowner contact list.

- **URL**: https://apify.com/indigo_bean/kc-issued-permits.md
- **Developed by:** [Clearline Operations](https://apify.com/indigo_bean) (community)
- **Categories:** Real estate, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 delivered permit records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/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 Building Permit Leads for Contractors

By Clearline Operations. Independent software; not endorsed by the source publisher.

### What it does

Exports newly issued Kansas City, Missouri permits, filtered by issue date and optionally by permit type or trade keyword, so contractors in electrical, mechanical, plumbing, remodel and similar trades can see what work was just permitted. This is a privacy-minimized permit-activity feed, not a list of homeowner contacts, street addresses or phone numbers.

### Quick start

#### New permits this week by trade

Set `since` and `until` to the week you care about, then set `tradeKeyword` to a City type or work-class substring such as `electrical`, `mechanical`, `plumbing` or `remodel`. The default dataset supports JSON/CSV export through Apify.

```json
{
  "since": "2026-11-13",
  "until": "2026-11-19",
  "tradeKeyword": "electrical",
  "maxResults": 10
}
```

`permitType` is also available if you want to match only the City's permit-type field (for example, `Building`). The complete form is `.actor/input_schema.json`. Input is also validated at runtime: unknown fields, invalid calendar dates, reversed date ranges and excessive limits are rejected.

### Behavior and limits

- Uses **City Issued Permits `w8jz-wjgn`**, not the old historical CPD feed `ntw8-aacc`.
- Inclusive issue-date range; optional literal, case-insensitive `permitType` substring (type field only); optional `tradeKeyword` substring matched against permit type **or** work class. Stable date/permit ordering and pagination.
- Returns permit ID, type, class, status, published dates, declared valuation, square feet and district. Missing fields are null.
- Never requests addresses, parcel IDs, owners, contractor names or free-text project descriptions.
- Trade labels follow the City's published type and work-class values. In a check of records issued January 1, 2025 through November 20, 2026, the keywords `roof`, `solar` and `hvac` did not appear in type or class. HVAC-like work is typically filed as mechanical (including work classes such as Install/Replace Furnace). Roofing and solar cannot be identified from type and class alone.
- Default: last 90 days, 100 results. Hard limit: 5,000. For longer periods partition date ranges.
- Original issue date-times have **no timezone**; preserve as published, rather than pretending they are UTC.
- City Ordinance 150865 §2-2134(a) expressly places portal datasets in the public domain. Portal metadata still says “See Terms of Use”; the required City disclaimer is reproduced below. Do not copy logos, third-party attachments or restricted data.
- Issued/closed status is not proof of work starting/finishing. No claim of completeness or real-time delivery.

### Output

Each returned dataset row is one record; `recordId` is its deduplication key within the run. `examples/sample-output.json` illustrates the schema. `OUTPUT` in the default key-value store contains delivered count, source requests, truncation and source diagnostics. Diagnostics are not dataset results.

### Pricing

This Actor is paid per event: **$1.00 per 1,000 delivered records** ($0.001 for each `result` event) plus a $0.00005 Actor start event per GB of memory (minimum one event; the default 256 MB run is one start). You are not charged separately for Apify platform usage. Empty results, diagnostics and failed input are not billed. Set `maxResults` and the run's maximum charge to cap cost. Each run is a separate export; the same record returned on another run is billed again.

### Source rights and responsible use

- Dataset: https://data.kcmo.org/resource/w8jz-wjgn.json
- Dataset license metadata: https://data.kcmo.org/api/views/w8jz-wjgn.json
- Portal terms: https://data.kcmo.org/terms
- Authenticated ordinance (passed October 22, 2015), §2-2132(b)(3), §2-2134(a): https://kansascity.legistar1.com/kansascity/attachments/b934a077-f336-4f77-bda9-7a26fa6ed743.pdf

City source attribution: City of Kansas City, Missouri, City Issued Permits. Commercial reuse of the published factual dataset is supported by the public-domain policy, not a blanket license to every portal asset. Current consolidated Municode could not be independently read during preparation; portal metadata/rights-reservation wording remains a residual legal-text mismatch.

#### Required City disclaimer

> This site provides applications using data that has been modified for use from its original source, www.data.kcmo.gov, the official open data website of the City of Kansas City. The City of Kansas City makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one’s own risk.

### Local development

Requires Node.js 22+; local regression runs used Node.js 24.22.1. Container target: Apify Node 22.

```bash
npm ci --no-audit --no-fund
npm test
mkdir -p storage/key_value_stores/default
cp examples/INPUT.json storage/key_value_stores/default/INPUT.json
npm start
```

Use a fresh absolute `CRAWLEE_STORAGE_DIR` for isolated runs. Reusing persistent local storage may append prior rows. No login, source API key, proxy or paid external API is required. Source provenance is retained; respect rate limits and do not circumvent controls.

### Validation status

Live-source collector and SDK checks were completed November 10, 2026 (CT). Unit tests and official Apify CLI input-schema validation passed again November 11, 2026 (CT). The optional `tradeKeyword` filter was added and unit-tested November 20, 2026 (CT); a live-source check of that filter is recorded in the same day's launch-status entry. Docker is not installed here, so container build remains a platform concern after `apify push`. A failed upstream request is surfaced, not replaced with invented results. No availability, completeness or earnings guarantee.

# Actor input Schema

## `since` (type: `string`):

YYYY-MM-DD. Defaults to 90 days ago.

## `until` (type: `string`):

Inclusive end date in YYYY-MM-DD format. Omit for no upper date bound.

## `permitType` (type: `string`):

Case-insensitive literal substring of the City permit type, e.g. Electrical or Building. No raw SoQL.

## `tradeKeyword` (type: `string`):

Optional. Case-insensitive literal substring matched against permit type OR work class, e.g. electrical, mechanical, plumbing, remodel. No raw SoQL. Keywords such as roof, solar or HVAC often do not appear in type or class.

## `maxResults` (type: `integer`):

Maximum delivered records per run; output may stop earlier at the platform spending ceiling.

## Actor input object example

```json
{
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Requested records written to the default dataset. Each delivered row is one result event.

## `diagnostics` (type: `string`):

Counts, truncation and source diagnostics; not dataset records.

# 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("indigo_bean/kc-issued-permits").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("indigo_bean/kc-issued-permits").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 indigo_bean/kc-issued-permits --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,indigo_bean/kc-issued-permits"
        }
    }
}
```

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/WCfMTp74pQfRVR8wt/builds/zRj9Y3Kgs6cPsRJ0r/openapi.json
