# Police.uk API

> Returns UK police forces, street-level crimes near a point, crime categories, and force neighbourhoods with details.

Category: Government & Open Data. Region: GB. 16 endpoints at `https://api.hoshime.com/v1/policeuk/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/policeuk
## GET /v1/policeuk/forces

The police forces of England, Wales and Northern Ireland, with their ids.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/forces" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/force

One police force: its name, website, telephone and description.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `description` (string), `id` (string), `name` (string), `telephone` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/force?id=leicestershire" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/crimes

Street-level crimes reported within a mile of a point in one month. Locations are approximate.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude of the point, such as 52.629729. (e.g. 52.629729) |
| `longitude` | string | yes | Longitude of the point, such as -1.131592. (e.g. -1.131592) |
| `date` | string | no | Month of data as YYYY-MM, such as 2024-01. Empty is the latest month. (e.g. 2024-01) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `id` (string), `latitude` (number (double)), `longitude` (number (double)), `month` (string), `outcomeStatus` (string), `street` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/crimes?latitude=52.629729&longitude=-1.131592&date=2024-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/crimeCategories

The crime categories of a month, such as burglary or violent-crime, with their display names.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | no | Month of data as YYYY-MM, such as 2024-01. Empty is the latest month. (e.g. 2024-01) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/crimeCategories?date=2024-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/neighbourhoods

The neighbourhoods a police force has, with their ids, such as NC04 for City Centre.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/neighbourhoods?force=leicestershire" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/neighbourhood

One neighbourhood of a police force: its name, centre, population and the force's page for it.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `id` | string | yes | Neighbourhood id within the force, such as NC04. (e.g. NC04) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `population` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/neighbourhood?force=leicestershire&id=NC04" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/neighbourhoodPeople

The officers and staff named for a neighbourhood, with their rank.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `id` | string | yes | Neighbourhood id within the force, such as NC04. (e.g. NC04) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string), `rank` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/neighbourhoodPeople?force=leicestershire&id=NC04" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/neighbourhoodPriorities

The local priorities of a neighbourhood, each with the issue the public raised and the action taken, as plain text.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `id` | string | yes | Neighbourhood id within the force, such as NC04. (e.g. NC04) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `action` (string), `actionDate` (string), `issue` (string), `issueDate` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/neighbourhoodPriorities?force=leicestershire&id=NC04" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/neighbourhoodBoundary

The outline of a neighbourhood of a police force as latitude and longitude points, in order around its edge.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `id` | string | yes | Neighbourhood id within the force, such as NC04. (e.g. NC04) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `latitude` (number (double)), `longitude` (number (double))

```bash
curl "https://api.hoshime.com/v1/policeuk/neighbourhoodBoundary?force=leicestershire&id=NC04" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/neighbourhoodEvents

The community events a neighbourhood team has announced: meetings, drop-ins and surgeries, with their times and place.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `id` | string | yes | Neighbourhood id within the force, such as NC04. (e.g. NC04) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `address` (string), `description` (string), `endAt` (string), `startAt` (string), `title` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/neighbourhoodEvents?force=leicestershire&id=NC04" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/crimesAtLocation

Crimes recorded at one exact location in one month, with the outcome of each. Narrower than crimes: the location must match a street point.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude of the location, such as 52.629729. (e.g. 52.629729) |
| `longitude` | string | yes | Longitude of the location, such as -1.131592. (e.g. -1.131592) |
| `date` | string | no | Month of data as YYYY-MM, such as 2024-01. Empty is the latest month. (e.g. 2024-01) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `id` (string), `latitude` (number (double)), `longitude` (number (double)), `month` (string), `outcomeStatus` (string), `street` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/crimesAtLocation?latitude=52.629729&longitude=-1.131592&date=2024-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/crimesNoLocation

Crimes of one category in one force and month that have no map location, such as some bicycle thefts.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `category` | string | no | Crime category id, such as bicycle-theft or all-crime. (default all-crime; e.g. bicycle-theft) |
| `date` | string | no | Month of data as YYYY-MM, such as 2024-01. Empty is the latest month. (e.g. 2024-01) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `category` (string), `id` (string), `latitude` (number (double)), `longitude` (number (double)), `month` (string), `outcomeStatus` (string), `street` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/crimesNoLocation?force=leicestershire&category=bicycle-theft&date=2024-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/stopSearches

Stop and searches recorded within a mile of a point in one month: the type, the object searched for and the outcome.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude of the point, such as 52.629729. (e.g. 52.629729) |
| `longitude` | string | yes | Longitude of the point, such as -1.131592. (e.g. -1.131592) |
| `date` | string | no | Month of data as YYYY-MM, such as 2024-01. Empty is the latest month. (e.g. 2024-01) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `ageRange` (string), `ethnicity` (string), `gender` (string), `latitude` (number (double)), `legislation` (string), `longitude` (number (double)), `objectOfSearch` (string), `occurredAt` (string), `outcome` (string), `street` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/stopSearches?latitude=52.629729&longitude=-1.131592&date=2024-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/stopSearchesForce

All stop and searches a police force recorded in one month. The answer is large; use stopSearches for one place.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `force` | string | yes | Force id, such as leicestershire. (e.g. leicestershire) |
| `date` | string | no | Month of data as YYYY-MM, such as 2024-01. Empty is the latest month. (e.g. 2024-01) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `ageRange` (string), `ethnicity` (string), `gender` (string), `latitude` (number (double)), `legislation` (string), `longitude` (number (double)), `objectOfSearch` (string), `occurredAt` (string), `outcome` (string), `street` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/stopSearchesForce?force=leicestershire&date=2024-01" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/crimeLastUpdated

The month the latest street-level crime data covers.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string)

```bash
curl "https://api.hoshime.com/v1/policeuk/crimeLastUpdated" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/policeuk/dataDates

The months with published stop and search data, and for each month the forces that published it.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string), `stopSearchForces` (string[])

```bash
curl "https://api.hoshime.com/v1/policeuk/dataDates" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
