Naar de inhoud
GET /v1/crimes

Street-level crimes around a point

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ukpolice-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/ukpolice-api/v1/crimes" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ukpolice-api/v1/crimes", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ukpolice-api/v1/crimes");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/ukpolice-api/v1/crimes",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "date": "2024-01",
        "count": 100,
        "total": 1472,
        "center": {
            "lat": 52.629729,
            "lng": -1.131592
        },
        "crimes": [
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Parking Area",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.637041",
                "longitude": "-1.131222",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Bisley Street",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.622852",
                "longitude": "-1.150707",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Supermarket",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.632052",
                "longitude": "-1.146096",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Further/higher Educational Building",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.626768",
                "longitude": "-1.123078",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Calgary Road",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.642883",
                "longitude": "-1.124914",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near East Gates",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.636041",
                "longitude": "-1.133444",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Colton Street",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.634169",
                "longitude": "-1.128191",
                "outcome_date": null
            },
            {
                "id": null,
                "month": "2024-01",
                "street": "On or near Adderley Road",
                "outcome": null,
                "category": "anti-social-behaviour",
                "latitude": "52.616723",
                "longitude": "-1.122614",
               
…