# Traffic Collisions Scraper: Crashes and Hotspots (`parselab/us-traffic-collisions-scraper`) Actor

Scrape police traffic crash reports from New York, Chicago, Baton Rouge and San Francisco in one format. Get severity, injuries, deaths, cause, hour, weather, pedestrians, cyclists and coordinates. Search around an intersection, count trends and find hotspots. Export to CSV or Excel.

- **URL**: https://apify.com/parselab/us-traffic-collisions-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 $12.75 / 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

## Traffic Collisions Scraper: Crash Reports, Trends and Dangerous Intersections

This traffic collisions scraper reads the police crash reports that US cities publish as open data and gives you one clean table in one format: New York City, Chicago, Baton Rouge and San Francisco. Each city names its columns differently. The Actor turns them into the same fields: severity (fatal, injury or property damage only), the number of people injured and killed, the main cause, the type of collision, the hour and weekday, the weather and lighting, whether a pedestrian or a cyclist was involved, a hit and run flag where published, the street and the cross street, and the coordinates.

You can read single crashes, search around an intersection, count collisions by cause, hour, weekday, month, severity, weather or street, and find hotspots, the map cells with the most crashes, injuries and deaths.

Road safety teams, insurers, fleet managers, law firms, city researchers, journalists and app builders use it to find dangerous places and to see what causes crashes.

### What can you do with this traffic collisions scraper?

- Get the latest crash reports of several cities in one format
- Search crashes within a radius of any intersection
- Keep only fatal crashes, crashes with injuries, or crashes with pedestrians or cyclists
- Count crashes, injuries and deaths by cause, hour, weekday, month, weather or street
- Find the intersections and map cells with the most crashes
- Compare injuries per collision and deaths per 1,000 collisions between causes or areas
- Find the hours with the most crashes
- Keep only hit and run crashes in the cities that publish the flag
- Export to CSV or Excel, or send new crashes to your own tools

### What data can you extract?

| Mode | One row is | Highlights |
|---|---|---|
| Collisions | One crash report | City, crash id, date and time, hour, weekday, severity, injured, killed, pedestrian or cyclist flag, cause, secondary cause, collision type, vehicles involved, vehicle types where published, hit and run, street, cross street, neighborhood or district, coordinates, weather, lighting, road surface, traffic control, speed limit, distance from your point, link to the source dataset |
| Summary | One group in one city | Group, collisions, injured, killed, injured per collision, deaths per 1,000 collisions, share, per day, pedestrian and cyclist collisions, hit and run share, top causes, peak hours, first and last date |
| Hotspots | One map cell | Rank, center coordinates, collisions, injured, killed, top causes, peak hours, most common streets |

### How to scrape traffic collisions

1. Choose **Collisions**, **Summary** or **Hotspots**.
2. Pick the cities and the period with **Days back** or exact dates.
3. Add filters: severity, pedestrians or cyclists, causes, streets, 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": ["nyc", "chicago"],
  "daysBack": 90,
  "vulnerableUsers": ["pedestrian"],
  "gridSizeMeters": 250,
  "maxItems": 50
}
```

### Summary output example

```json
{
  "city": "New York City",
  "groupedBy": "cause",
  "group": "Failure to Yield Right-of-Way",
  "collisions": 241,
  "injured": 225,
  "killed": 3,
  "injuredPerCollision": 0.93,
  "pedestrianCollisions": 119
}
```

### How much does it cost to scrape traffic collisions?

You pay per result: $17 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 many crashes, so those reports cost only a few cents.

### Tips for better results

- Cities publish with different delays. San Francisco has not published after the end of August 2026, so recent dates return no San Francisco rows. New York and Chicago are updated within days.
- Not every city publishes every field. Injuries and deaths are counted in New York, Chicago and San Francisco. Baton Rouge only says whether there was an injury or a death. Hit and run is published in Chicago and Baton Rouge.
- Causes are written by each police department, so their names differ between cities. Compare causes inside one city.
- Many New York reports have no cause listed. Those rows have an empty cause.
- Reports with a missing or zero location are kept in the rows but left out of the hotspots.
- Summary and hotspots read the newest crashes first, up to the number you set per city. Raise it for longer periods.
- Names of drivers, passengers and victims are not collected.

### Who uses this data?

- **Road safety and planning teams** find the places that need attention.
- **Insurers and fleet managers** measure risk by area and cause.
- **Law firms** follow crash patterns and locations.
- **Journalists and researchers** report on pedestrians, cyclists and speed.
- **App builders** feed maps and alerts.

### Automate and connect

Schedule the Actor every day for the last two days and send new crashes 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?**
New York City, Chicago, Baton Rouge and San Francisco.

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

**Does it give names of people?**
No. Names of drivers and victims 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. A crash report is not a finding of fault.

### 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`):

Collisions returns one row per police crash report. Summary counts collisions, injuries and deaths by cause, hour, weekday, month, severity, neighborhood, weather or street. Hotspots finds the map cells and intersections with the most crashes.

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

Cities to read: nyc, chicago, batonrouge, sf. San Francisco has data up to the end of August 2026. Leave empty for New York and Chicago.

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

Collisions of the last number of days. Ignored when you set a start date.

## `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.

## `severities` (type: `array`):

Keep fatal collisions, collisions with injuries, or property damage only.

## `vulnerableUsers` (type: `array`):

Keep collisions that involved a pedestrian or a cyclist.

## `causes` (type: `array`):

Part of the cause as the city writes it, for example distraction, speed, failure to yield, alcohol or following too closely.

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

Part of a borough, district or street name, for example Brooklyn, Michigan or Broadway.

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

Words that must appear anywhere in the row, for example truck, motorcycle or school.

## `hitAndRunOnly` (type: `boolean`):

Chicago and Baton Rouge only. The other cities do not publish this.

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

Latitude of a point, for example an intersection you want to check. Use it with longitude and radius.

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

Longitude of the same point.

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

Distance around the point. The default is 500 meters.

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

Summary mode. What to count.

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

Summary and hotspots modes. How many collisions to read in each city before counting, newest first.

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

Hotspots mode. Side of each map cell.

## Actor input object example

```json
{
  "maxItems": 10,
  "mode": "collisions",
  "cities": [
    "nyc",
    "chicago"
  ],
  "daysBack": 30,
  "hitAndRunOnly": false,
  "radiusMeters": 500,
  "groupBy": "cause",
  "sampleSize": 20000,
  "gridSizeMeters": 300
}
```

# 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": [
        "nyc",
        "chicago"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/us-traffic-collisions-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": [
        "nyc",
        "chicago",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("parselab/us-traffic-collisions-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": [
    "nyc",
    "chicago"
  ]
}' |
apify call parselab/us-traffic-collisions-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/us-traffic-collisions-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/vb6NhgD4UNmnpG83j/builds/k0Gxsek1IRADN04yV/openapi.json
