$request = 'https://data.police.uk/api/leicestershire/neighbourhoods';
As you can see the specific police force is specified in the request URL followed by the /neighbourhoods
designation. In order to access information regarding a specific neighborhood we form our request as follows by appending the specific police force as well as the unique identifying ID for a specific neighborhood to the end of the request URL.
$request = 'https://data.police.uk/api/leicestershire/C01';
We then process the request in a similar fashion to what we have been doing before. Some of the information returned from the API for this type of service request includes a URL of the neighborhood police force, the name of the neighborhood, a description of the neighborhood, as well as the unique ID of the neighborhood, and the population. Information for the New Parks neighborhood of Leicestershire is displayed here.
$request = 'https://data.police.uk/api/leicestershire/C01/people';
As you can see, we append the neighborhood specific ID after the police force specific ID and then append /people
designation at the end. This service request returns information similar to the Senior Officers Information request that provides information about the Senior Officers of the entire police force. This request provides information regarding police officers of the specific police force responsible for this neighborhood. Information regarding the police force in charge of the New Parks policing team can be seen here.
The UK Police API provides quite a bit of information to users regarding various police forces, crime data, and neighborhood specific policing information. Overall, the API is pretty accessible but there are some shortcomings. I would prefer if more police forces would provide information and I think more granular criminal data would be beneficial. That being said, I think an API for police data is a great idea and can provide valuable information to a public who have oversight responsibility.