Data.Police.UK

Open data about crime and policing in England, Wales and Northern Ireland.

Integrate the Data.Police.UK API with the Bash API

Setup the Data.Police.UK API trigger to run a workflow which integrates with the Bash API. Pipedream's integration platform allows you to integrate Data.Police.UK and Bash remarkably fast. Free for developers.

Run Bash Code with Bash API on New Crime Reported from Data.Police.UK API
Data.Police.UK + Bash
 
Try it
Run Bash Code with Bash API on New Street Level Crime Updated from Data.Police.UK API
Data.Police.UK + Bash
 
Try it
New Crime Reported from the Data.Police.UK API

Emit new event when a new crime is reported in a specific area.

 
Try it
New Street Level Crime Updated from the Data.Police.UK API

Emit new event when a specific street level crime is updated.

 
Try it
Fetch Forces with the Data.Police.UK API

Get a list of police forces and contact information within a particular area. See the docs here

 
Try it
Run Bash Code with the Bash API

Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.

 
Try it
Obtain Crime Outcomes with the Data.Police.UK API

Access the specific outcomes of reported crimes within a given location and date range. See the docs here

 
Try it
Retrieve Crime Data with the Data.Police.UK API

Obtain crime data for a specific location and date range. See the docs here

 
Try it

Overview of Data.Police.UK

The Data.Police.UK API provides access to a wide array of UK crime data, allowing users to query information about street-level crimes, outcomes, and the location of police stations. You can leverage this data within Pipedream to build automated workflows that react to new data, analyze crime trends, or integrate with other services to enhance public awareness and safety. With Pipedream, you can create serverless workflows that connect Data.Police.UK API with other apps to streamline tasks, generate reports, or trigger alerts based on crime data.

Connect Data.Police.UK

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    data_police_uk: {
      type: "app",
      app: "data_police_uk",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://data.police.uk/api/forces`,
    })
  },
})

Connect Bash

1
2
3
4
5
6
7
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id

# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS