77trust / 100

Crime

by Factline in Developer tools

x402 APIPassing, checked 2 h ago

Use when the user asks whether a Dutch neighbourhood or postcode is safe: police-registered crime per 1,000 residents vs the national rate, split into burglary, bicycle theft, vehicle crime, violence and vandalism, with counts and a ratio. Input: Dutch postcode or CBS buurt code. Source: Politie open data, CBS.

GET https://factline.dev/v1/crime

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
351 ms typical, 351 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://factline.dev/v1/crime?postcode=2517AS"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ffactline.dev%2Fv1%2Fcrime
const res = await pay("https://factline.dev/v1/crime?postcode=2517AS");
console.log(await res.json());

Example input

{
  "postcode": "2517AS"
}

Example output

{
  "counts": {
    "bicycle_theft": 126,
    "home_burglary": 18,
    "total": 801,
    "vandalism": 76,
    "vehicle_crime": 39,
    "violence": 81
  },
  "national_per_1000_residents": {
    "bicycle_theft": 5.5,
    "home_burglary": 1.2,
    "total": 44.8,
    "vandalism": 4,
    "vehicle_crime": 2.8,
    "violence": 4.2
  },
  "neighbourhood": {
    "code": "BU05182245",
    "municipality": "'s-Gravenhage",
    "name": "Zeeheldenkwartier"
  },
  "per_1000_residents": {
    "bicycle_theft": 9.8,
    "home_burglary": 1.4,
    "total": 62,
    "vandalism": 5.9,
    "vehicle_crime": 3,
    "violence": 6.3
  },
  "residents": 12920,
  "source": "Politie open data (registered crime), CBS population",
  "total_vs_national": 1.38,
  "year": 2025
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402351 ms$0.003
5 h agoPassed402384 ms$0.003
10 h agoPassed40280 ms$0.003