Moderate User Input in Real-Time

Using a variety of AI options, the Text Moderator can help you filter out inappropriate or harmful content from user submissions on your website or application.
IP Decoder

Subscribe now to the Text Moderator

Installing the Text Moderator

You can install the Text Moderator using our code snippets on just about any web site. You need to have the API key and url from the dashboard to use it. If you are a Wix user, there is a handy Wix app you can install - available from the Wix marketplace.

We strongly recommend that you keep your API key secret. Do not include it in any client-side code that could be viewed by end users.

The app is available from the Wix marketplace. Just follow the following 5 steps to get it up and running on your Wix site:

  • Download the app

  • Sign in to your Wix account

  • Go to your dashboard and retrieve your API key and Url

  • Add the app to your page(s) and record the API key and Url in the settings

  • Customise the display to fit in with your page style

The following snippet shows how to call the Text Moderator from a Node.js application. You will need to replace <API_KEY> and <API_URL> with your actual API key and URL from your dashboard, and <TEXT_TO_MODERATE> with the text you want to moderate.

  const data = {
    data: {text: '<TEXT_TO_MODERATE>'}
  };

  const url = <API_URL> + '/textmoderator';

  const response = await fetch(url, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Authorization: 'Bearer <API_KEY>',
    },
    body: JSON.stringify(data),
  });

The following snippet shows how to call the Text Moderator from a Python application. You will need to replace <API_KEY> and <API_URL> with your actual API key and URL from your dashboard, and <TEXT_TO_MODERATE> with the actual text you want to moderate.

  import requests
  import json

  # User-defined values
  api_url = "<API_URL>"
  api_key = "<API_KEY>"
  text_to_moderate = "<TEXT_TO_MODERATE>"

  # The data structure matching your JS object
  payload = {
      "data": {
          "text": text_to_moderate
      }
  }

  url = f"{api_url}/textmoderator"

  headers = {
      "Content-Type": "application/json",
      "Authorization": f"Bearer {api_key}"
  }

  # Making the POST request
  # Using the 'json' parameter automatically handles JSON.stringify() 
  # and sets the Content-Type header to application/json
  response = requests.post(url, headers=headers, json=payload)

Try the Text Moderator for yourself

Enter the text to moderate and click "Moderate" to see the moderator in action. The results, in JSON format, will be shown below.

Output: