v1

latestOpenAPI 3.0.02026-07-1314094.0 KB

Detect profanity in a given text

This method helps safeguard your website or app by detecting offensive or inappropriate language in user inputs. By screening for profanity and other harmful content before it’s made public, you can maintain a positive user environment, protect your brand, and prevent abusive behavior on your platform.

get/scoring/profanity

Query parameters

textstring required
Example:This is a sample text without profanity!

The text you want to filter.

listBadWordsstring
Example:no

Set to yes to list the bad-words as an Array.

scoreOnlystring
Example:no

Set to yes to return only the score of the text and whether it's safe or not.

formatstring
Example:JSON

The format command is used to get a response in a specific format.

userIDstring
Example:UID-12345

The userID command can be used to identify requests sent by specific users to monitor in the Events Page.

modestring
Example:test

The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment.

Expected values: live, or test.

callbackstring
Example:my_function_name

The callback command can help you make the response as a JSONP format.

Expected values: any name that can be used as a function name in Javascript, e.g: myFunctionName.

Response

OK