# P2000 Police Incidents Netherlands (street-level, severity 1–5) (`imatthew55/p2000-police-incidents`) Actor

Live Dutch police P2000 pages filtered to street safety (stabbings, shootings, robberies, fights, pursuits), scored 1–5 and geocoded to the street.

- **URL**: https://apify.com/imatthew55/p2000-police-incidents.md
- **Developed by:** [Mathijs](https://apify.com/imatthew55) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## P2000 Police Incidents Netherlands

Live Dutch **police** P2000 pages, filtered to what matters for street safety, scored **1–5** and
**geocoded to the street**. Minutes old, not hours: police news sites and open data run far behind
what is paged to officers.

P2000 is the Dutch emergency paging network. Most of it is ambulance and fire brigade traffic that
says nothing about what happened. Police pages are different: short, but they name the incident and
the street, e.g. `P 1 Steekpartij Wingerdweg Amsterdam`. This actor keeps only those, drops the
noise (traffic accidents, "please call the control room", test pages), and turns the rest into
clean, mappable records.

### What you get

One item per incident:

```json
{
  "id": "p2k-8f0c1e2d3b4a59687766aa01",
  "at": "2026-09-26T19:25:00.000Z",
  "level": 5,
  "matched": "steekpartij",
  "where": "Wingerdweg Amsterdam",
  "resolvedPlace": "Wingerdweg, Amsterdam",
  "precision": "weg",
  "latitude": 52.3949,
  "longitude": 4.9212,
  "region": "Amsterdam-Amstelland",
  "message": "P 1 Steekpartij Wingerdweg Amsterdam",
  "source": "p2000"
}
```

### Severity levels

| Level | Examples (Dutch stems matched) |
|---|---|
| 5 | stabbing, shooting, weapon, knife, hostage, armed robbery (`steekpartij`, `schiet…`, `wapen`, `mes`) |
| 4 | robbery, street robbery, fight, assault, sexual offence, public violence (`overval`, `straatroof`, `vechtpartij`, `mishandeling`, `zeden…`) |
| 3 | pursuit, threat, argument, suspicious situation, vandalism (`achtervolging`, `bedreiging`, `ruzie`, `verdachte situatie`) |

Matching is on word-start stems, because Dutch compounds freely (`steek` catches *steekpartij*
and *steekincident*) but a stem inside a word must not count: *Bunschoten* is a town, not a
shooting. A weapon always wins over context, so "aanrijding na steekpartij" is still level 5.

Pages about traffic, animals, fires, water rescues or control-room admin are dropped.

### Use cases

- **Safety and navigation apps**: route people around a stabbing that happened ten minutes ago.
  This actor was built for MIRA, a walking-home app that reroutes around
  level 3–5 incidents while they are recent.
- **Local news and journalism**: an early signal, with a street, before the press release.
- **Research**: a time series of street violence by region and hour.
- **Alerting**: send each incident to a webhook, Slack, or n8n with the `pushUrl` input.

### Input

| Field | Default | |
|---|---|---|
| `maxAgeMinutes` | 180 | How far back to look. Schedule every 10 minutes and nothing is missed. |
| `minLevel` | 3 | Drop anything below this severity. |
| `regions` | all | e.g. `Amsterdam-Amstelland`, `Rotterdam-Rijnmond`, `Haaglanden`. |
| `maxMessages` | 200 | Police pages read per run, newest first. |
| `useApifyProxy` | false | Only needed if the feed starts refusing requests. |
| `pushUrl`, `pushToken` | — | POST each located incident to your endpoint as JSON. |

### Good to know

- **Geocoding** uses the Dutch government's free PDOK Locatieserver and is cached between runs.
  Precision is usually the street (`weg`), sometimes a postcode or only the town.
- **Police pages are not complete.** Not every police call is paged over P2000, and some regions
  page more than others. Treat this as a fast signal, not a crime statistic.
- **Duplicates**: the same call is often paged twice within seconds; it is kept once.
- Source: the public P2000 overview at p2000-online.net.

# Actor input Schema

## `maxAgeMinutes` (type: `integer`):

How far back to look. Run every 10 minutes with the default and nothing is missed.

## `minLevel` (type: `integer`):

3: pursuits, threats, fights brewing. 4: robbery, assault, violence. 5: stabbing, shooting, weapon.

## `regions` (type: `array`):

Only keep pages from these regions, spelled as on P2000, e.g. Amsterdam-Amstelland, Rotterdam-Rijnmond, Haaglanden. Empty keeps all.

## `maxMessages` (type: `integer`):

Upper bound on police pages fetched per run, newest first.

## `useApifyProxy` (type: `boolean`):

Not needed for normal use. Turn on if the feed starts refusing requests.

## `pushUrl` (type: `string`):

Each located incident is also POSTed here as JSON: id, level, at, lat, lng, label.

## `pushToken` (type: `string`):

Sent as Authorization: Bearer <token> with each push.

## Actor input object example

```json
{
  "maxAgeMinutes": 180,
  "minLevel": 3,
  "regions": [
    "Amsterdam-Amstelland"
  ],
  "maxMessages": 200,
  "useApifyProxy": false
}
```

# Actor output Schema

## `incidents` (type: `string`):

Street-safety police incidents from P2000, scored 1–5 and geocoded to the street.

# 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 = {
    "regions": [
        "Amsterdam-Amstelland"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("imatthew55/p2000-police-incidents").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 = { "regions": ["Amsterdam-Amstelland"] }

# Run the Actor and wait for it to finish
run = client.actor("imatthew55/p2000-police-incidents").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 '{
  "regions": [
    "Amsterdam-Amstelland"
  ]
}' |
apify call imatthew55/p2000-police-incidents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,imatthew55/p2000-police-incidents"
        }
    }
}
```

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/Lr1tnO0N4J7xjpVvb/builds/RwAgGqPm4xkVeGbwg/openapi.json
