ClickCease

Banned Word Prefilter

POST
https://api.thenextleg.io/v2/is-this-naughty

Determine if you're using words that you probably shouldn't! This list is compiled daily. If you have a subscription to this filter and an active account, your requests will automatically be checked against this.

This will require a subscription in the future, for now it's free!

Request

Params

msg - The string you want to check for naughty words.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 var axios = require('axios'); var data = JSON.stringify({ "msg": "Hi, I'm a naughty string", }); var config = { method: 'post', url: 'https://api.thenextleg.io/v2/is-this-naughty', headers: { 'Authorization': 'Bearer <your-token>', 'Content-Type': 'application/json' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });

HTTP Response

200Success

0 1 2 3 { "isNaughty": true, "phrase": "naughty", }