# City Crime Scraper: Incidents and Hotspots (`parselab/us-city-crime-incidents-scraper`) Actor

Scrape police incident reports from Chicago, New York, San Francisco, Seattle, Austin and Dallas in one format. Get crime category, offense, date, hour, neighborhood and coordinates. Search around an address, count trends and find hotspots. Export to CSV or Excel.

- **URL**: https://apify.com/parselab/us-city-crime-incidents-scraper.md
- **Developed by:** [ParseLab](https://apify.com/parselab) (community)
- **Categories:** Other, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $13.50 / 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

## City Crime Scraper: Police Incidents, Trends and Hotspots for Six US Cities

This city crime scraper reads the police incident reports that six large US cities publish as open data and gives you one clean table in one format: Chicago, New York City, San Francisco, Seattle, Austin and Dallas. Each city names its columns and its offenses differently. The Actor turns them into the same fields, with a shared crime category (homicide, assault, robbery, burglary, theft, vehicle theft, drugs and more), the hour and weekday, a violent crime flag, the neighborhood or district and the coordinates where the city publishes them.

You can read single incidents, search around an address or a point on the map, count incidents by category, hour, weekday, month or neighborhood, and find the hotspots, the map cells with the most incidents.

Real estate teams, insurers, security companies, city researchers, journalists, data scientists and app builders use it to measure risk in an area, compare cities and follow trends without joining six different portals by hand.

### What can you do with this city crime scraper?

- Get the latest police reports of six cities in one format
- Search incidents within a radius of any address or coordinates
- Keep only violent crime, burglaries, vehicle theft or any shared category
- Count incidents by category, offense, hour, weekday, month or neighborhood
- Find hotspots on a map grid of 100 meters to 5 kilometers
- Compare the share of violent crime and the arrest rate between areas
- Find the hours of the day with the most incidents
- Follow a neighborhood over time with daily or monthly counts
- Export to CSV or Excel, or send new incidents to your own tools

### What data can you extract?

| Mode | One row is | Highlights |
|---|---|---|
| Incidents | One police report | City, incident id and case number, date and time, hour, weekday, report date, offense, description, shared category, violent flag, place type, address or block, neighborhood, district, beat, coordinates, arrest and domestic flags where published, resolution, distance from your point, link to the source dataset |
| Summary | One group in one city | Group (category, offense, neighborhood, hour, weekday, month, day or place type), incidents, share, incidents per day, violent share, arrest rate, top offenses, peak hours, first and last date |
| Hotspots | One map cell | Rank, center coordinates, incidents, share of the city, violent share, top categories, top offenses, peak hours, most common places |

### How to scrape city crime data

1. Choose **Incidents**, **Summary** or **Hotspots**.
2. Pick the cities and the period with **Days back** or exact dates.
3. Add filters: crime categories, words, neighborhoods, or a point and a radius.
4. Set **Max Items** and click **Start**.
5. Export the dataset as CSV, Excel or from the Apify console.

### Input example

```json
{
  "mode": "hotspots",
  "cities": ["chicago", "sf", "seattle"],
  "daysBack": 60,
  "categories": ["burglary", "vehicle theft"],
  "gridSizeMeters": 400,
  "maxItems": 50
}
```

### Summary output example

```json
{
  "city": "Chicago",
  "groupedBy": "category",
  "group": "assault",
  "incidents": 831,
  "sharePct": 27.7,
  "perDay": 118.71,
  "violentSharePct": 100,
  "arrestRatePct": 14.2,
  "topOffenses": [{ "name": "Battery", "count": 568 }, { "name": "Assault", "count": 261 }]
}
```

### How much does it cost to scrape city crime data?

You pay per result: $18 per 1,000 rows plus a tiny start fee. The free plan returns up to 10 rows per run. A summary or hotspot row counts thousands of incidents, so those reports cost only a few cents.

### Tips for better results

- Cities publish with a delay. Chicago, San Francisco, Seattle, Austin and Dallas are updated within days. New York publishes its police data several months late, so recent dates return no New York rows yet.
- Austin and Dallas do not publish coordinates. They work with categories, districts and counts, but not with a point and a radius or hotspots.
- The shared category comes from the offense text of each city. It is a keyword match, so check the offense column for the exact wording of the city.
- Reports are not convictions. They are what the police recorded, and each city decides what it publishes.
- Counts depend on the policy of each department. Comparing cities is useful for patterns, less for exact levels.
- Hours of the day come from the time of the report, which can be an estimate when the exact time is unknown.
- Summary and hotspots read the newest incidents first, up to the number you set per city. Raise it for longer periods.
- Victim and suspect details are not collected. Dallas officer names are not collected either.

### Who uses this data?

- **Real estate and relocation teams** check the safety of an area.
- **Insurers and lenders** measure risk by neighborhood.
- **Security and retail companies** plan staffing and cameras.
- **Journalists and researchers** report on crime trends.
- **App builders** feed maps and alerts.

### Automate and connect

Schedule the Actor every day for the last two days and send new incidents to Slack, Google Sheets, Zapier, Make or n8n, or trigger a webhook when a run ends.

### FAQ

**Do I need an account or a login?**
No. The Actor works without any login.

**Which cities are covered?**
Chicago, New York City, San Francisco, Seattle, Austin and Dallas.

**Can I add my city?**
Open an issue with the city and its police dataset and it can be considered.

**Does it give names of victims or suspects?**
No. Personal details of victims and suspects are not collected.

**How current is the data?**
The Actor reads the city portals when you run it. Each city loads new reports on its own schedule.

### Legal note

This Actor collects information that is publicly visible on the website. Check the source site's terms and your local rules before using the data. Incident reports are not proof of guilt.

### Support

Missing a field or found a bug? Open an issue from the Actor page.

# Actor input Schema

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

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

Incidents returns one row per police report. Summary counts incidents by category, offense, neighborhood, hour, weekday, month, day or place type. Hotspots finds the map cells with the most incidents.

## `cities` (type: `array`):

Cities to read: chicago, nyc, sf, seattle, austin, dallas. Austin and Dallas do not publish coordinates. Leave empty for Chicago, San Francisco and Seattle.

## `daysBack` (type: `integer`):

Incidents of the last number of days. Ignored when you set a start date. Cities publish with a delay of a day or more.

## `dateFrom` (type: `string`):

Start date in the form 2026-09-30. It overrides the number of days.

## `dateTo` (type: `string`):

End date in the form 2026-10-31.

## `categories` (type: `array`):

Keep these shared categories: homicide, assault, robbery, sex offense, weapons, burglary, theft, vehicle theft, vandalism and arson, drugs, fraud, disorder, traffic and dui, missing and welfare, other. You can also type an offense name as the city writes it.

## `searchTerms` (type: `array`):

Words searched in the report text, for example carjacking, package or bicycle. Each word is a separate search.

## `neighborhoods` (type: `array`):

Part of a neighborhood, district, borough or precinct name, for example Mission, Loop or Brooklyn.

## `latitude` (type: `number`):

Latitude of a point, for example an address you want to check. Use it with longitude and radius. Austin and Dallas are skipped.

## `longitude` (type: `number`):

Longitude of the same point.

## `radiusMeters` (type: `integer`):

Distance around the point. The default is 1,000 meters.

## `arrestOnly` (type: `boolean`):

Chicago only. Other cities do not publish this.

## `domesticOnly` (type: `boolean`):

Chicago, Austin and Dallas only.

## `groupBy` (type: `string`):

Summary mode. What to count.

## `sampleSize` (type: `integer`):

Summary and hotspots modes. How many incidents to read in each city before counting, newest first. More gives steadier numbers and takes longer.

## `gridSizeMeters` (type: `integer`):

Hotspots mode. Side of each map cell.

## Actor input object example

```json
{
  "maxItems": 10,
  "mode": "incidents",
  "cities": [
    "chicago",
    "sf",
    "seattle"
  ],
  "daysBack": 30,
  "radiusMeters": 1000,
  "arrestOnly": false,
  "domesticOnly": false,
  "groupBy": "category",
  "sampleSize": 20000,
  "gridSizeMeters": 500
}
```

# Actor output Schema

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

No description

# 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 = {
    "maxItems": 10,
    "cities": [
        "chicago",
        "sf",
        "seattle"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/us-city-crime-incidents-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 = {
    "maxItems": 10,
    "cities": [
        "chicago",
        "sf",
        "seattle",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("parselab/us-city-crime-incidents-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 '{
  "maxItems": 10,
  "cities": [
    "chicago",
    "sf",
    "seattle"
  ]
}' |
apify call parselab/us-city-crime-incidents-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/us-city-crime-incidents-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/9YBLcDZlW0IrJJThz/builds/bmpCLYEdwYWitq8xa/openapi.json
