Zum Inhalt springen
GET /v1/forces

Police forces (list, or detail by id)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/ukpolice-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/ukpolice-api/v1/forces" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ukpolice-api/v1/forces", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ukpolice-api/v1/forces");
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/forces",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 44,
        "forces": [
            {
                "id": "avon-and-somerset",
                "name": "Avon and Somerset Constabulary"
            },
            {
                "id": "bedfordshire",
                "name": "Bedfordshire Police"
            },
            {
                "id": "cambridgeshire",
                "name": "Cambridgeshire Constabulary"
            },
            {
                "id": "cheshire",
                "name": "Cheshire Constabulary"
            },
            {
                "id": "city-of-london",
                "name": "City of London Police"
            },
            {
                "id": "cleveland",
                "name": "Cleveland Police"
            },
            {
                "id": "cumbria",
                "name": "Cumbria Constabulary"
            },
            {
                "id": "derbyshire",
                "name": "Derbyshire Constabulary"
            },
            {
                "id": "devon-and-cornwall",
                "name": "Devon & Cornwall Police"
            },
            {
                "id": "dorset",
                "name": "Dorset Police"
            },
            {
                "id": "durham",
                "name": "Durham Constabulary"
            },
            {
                "id": "essex",
                "name": "Essex Police"
            },
            {
                "id": "gloucestershire",
                "name": "Gloucestershire Constabulary"
            },
            {
                "id": "greater-manchester",
                "name": "Greater Manchester Police"
            },
            {
                "id": "gwent",
                "name": "Gwent Police"
            },
            {
                "id": "hampshire",
                "name": "Hampshire Constabulary"
            },
            {
                "id": "dyfed-powys",
                "name": "Dyfed-Powys Police"
            },
            {
                "id": "hertfordshire",
                "name": "Hertfordshire Constabulary"
            },
            {
                "id": "humberside",
                "name": "Humberside Police"
            },
            {
                "id": "kent",
                "name": "Kent Police"
            },
            {
                "id": "lancashire",
                "name": "Lancashire Constabulary"
            },
            {
                "id": "leicestershire",
                "name": "Leicestershire Police"
            },
            {
                "id": "lincolnshire",
                "name": "Lincolnshire Police"
            },
            {
                "id": "merseyside",
                "name": "Merseyside Police"
            },
            {
                "id": "metropolitan",
                "name": "Metropolitan Police Service"
            },
            {
                "id": "norfolk",
                "name": "Norfolk Constabulary"
            },
     
…