/v1/categories
Crime categories
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/ukpolice-api/v1/categories" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ukpolice-api/v1/categories", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ukpolice-api/v1/categories");
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/categories",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"date": "latest",
"count": 15,
"categories": [
{
"url": "all-crime",
"name": "All crime"
},
{
"url": "anti-social-behaviour",
"name": "Anti-social behaviour"
},
{
"url": "bicycle-theft",
"name": "Bicycle theft"
},
{
"url": "burglary",
"name": "Burglary"
},
{
"url": "criminal-damage-arson",
"name": "Criminal damage and arson"
},
{
"url": "drugs",
"name": "Drugs"
},
{
"url": "other-theft",
"name": "Other theft"
},
{
"url": "possession-of-weapons",
"name": "Possession of weapons"
},
{
"url": "public-order",
"name": "Public order"
},
{
"url": "robbery",
"name": "Robbery"
},
{
"url": "shoplifting",
"name": "Shoplifting"
},
{
"url": "theft-from-the-person",
"name": "Theft from the person"
},
{
"url": "vehicle-crime",
"name": "Vehicle crime"
},
{
"url": "violent-crime",
"name": "Violence and sexual offences"
},
{
"url": "other-crime",
"name": "Other crime"
}
]
},
"meta": {
"timestamp": "2026-06-01T00:04:34.872Z",
"request_id": "15485cbc-8ff1-4a70-ad47-9f1c0e951940"
},
"status": "ok",
"message": "Categories retrieved",
"success": true
}