TPSCheck

Check in real-time if a phone number is registered with the TPS/CTPS. Also get insights on validity, location, type, and provider of the number.

Integrate the TPSCheck API with the Python API

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

Check Number Against TPS/CTPS with the TPSCheck API

Validates a provided number against the TPS/CTPS register. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it

Overview of TPSCheck

The TPSCheck API provides access to the UK's Telephone Preference Service (TPS) and Corporate Telephone Preference Service (CTPS) databases, enabling businesses to check if a telephone number is registered. This helps in compliance with regulations by avoiding unwanted sales calls to these numbers. In Pipedream, you can use this API to automate the process of verifying numbers directly within your workflows, combining it with various triggers, actions from other apps, and custom logic for streamlined operations.

Connect TPSCheck

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    tpscheck: {
      type: "app",
      app: "tpscheck",
    }
  },
  async run({steps, $}) {
    const data = {
      "phone": `01829 830730`,
    }
    return await axios($, {
      method: "post",
      url: `https://www.tpscheck.uk/check`,
      headers: {
        "Authorization": `Token ${this.tpscheck.$auth.api_key}`,
      },
      data,
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}