Skip to content

P2000 API ​

Met de Persmonitor P2000 API haal je Nederlandse P2000-meldingen (politie, brandweer, ambulance) op via GraphQL: recente berichten, filters op regio/discipline/capcode, dossiers en statistiek.

Live endpoint: POST https://graphql.persmonitor.nl/graphql
Auth: Authorization: Bearer <api-token> (verplicht)

Nog aan het prototypen?

Gebruik eerst demo/p2000-messages.json. Zelfde response-vorm, geen token. Live data: account + API-plan.

Recente P2000-berichten ​

graphql
query RecentP2000($first: Int!) {
  p2000Messages(first: $first) {
    uuid
    message
    messageReadable
    sended
    discipline
    urgency
    url
  }
}
bash
curl -X POST https://graphql.persmonitor.nl/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <api-token>" \
  -d '{"query":"query { p2000Messages(first: 10) { uuid message sended discipline urgency url } }"}'

Filteren (regio, discipline, tekst) ​

Filters via P2000MessageFilterInput. Zie Filters.

graphql
query TwenteBrandweer($first: Int!, $filter: P2000MessageFilterInput) {
  p2000Messages(first: $first, filter: $filter) {
    uuid
    message
    sended
    discipline
  }
  p2000MessagesCount(filter: $filter)
}

Voorbeeld-variables (pas veldnamen aan op basis van Filters):

json
{
  "first": 25,
  "filter": {
    "disciplines": ["brandweer"]
  }
}

Exacte filtervelden (regio, capcode, monitor, dossier, …): p2000Messages reference en Filters.

Eén bericht of dossier ​

graphql
query OneMessage($uuid: String!) {
  p2000Message(uuid: $uuid) {
    uuid
    message
    sended
    discipline
    urgency
    url
  }
}

Dossiers en tijdlijn: p2000Dossiers, p2000DossierTimeline.

Capcodes, regio’s, taxonomie ​

QueryDoel
p2000Capcodes / p2000CapcodeCapcode-index
p2000Regions / p2000RegionVeiligheidsregio’s
p2000DisciplinesDisciplines
p2000Categories / p2000UrgenciesCategorie & urgentie
p2000Statistics / p2000MessageStatisticsAggregaties

Volledige lijst: P2000 reference.

Van demo naar productie ​

StapActie
1Demo JSON in je app of AI-prompt laden
2Queries schrijven tegen api-for-llms
3Prijzen → registreren + plan met API
4API-token aanmaken, Bearer meesturen naar graphql.persmonitor.nl

Zie ook: Brandweer API · Voor AI-tools · API-gebruik · Changelog