Skip to main content

Perspective API Pipe

Use the Perspective API Pipe to evaluate the level of perceived toxicity in written content.

Getting Started

Prerequisites:

Install the Perspective API Pipe

1. Navigate to the Pipes section in your Tadabase app and click 'Install Pipe'. Type 'Perspective API' into the search bar and click on the pipe to install.

2023-03-31-11-38-53.gif

2. You will then be prompted to enter your Comment Analyzer API Key. See below for more details on how to obtain the API Key.

Obtaining Your Comment Analyzer API Key

1. Go to the Google API credentials page and click '+ Create Credentials'. Select 'API Key' from the dropdown.

Excellent! After inserting your API Key into the pop-up window, you are now ready to click  'Install' and start using the Perspective API Pipe.

Global Parameters

There is one Global Parameter in this pipe. The default values for this parameter was automatically set when you installed the pipe. You can change this value at any time in the Global Parameters tab of your installed Perspective API pipe.

  • Comment Analyzer API Key - See above on how to generate this key.

API Calls

Get Score

For more details and examples, go to the Perspective API Documentation - Get Score.

Parameters
  • Text* - Enter the text that you would like to be analyzed for toxicity.

*Required

Response
  • Toxicity Score
  • Language
  • Detected Language

More Details

To learn more about this Pipe and see additional Examples, please see the Perspective API Developer Guide.