Basic Word Filter API
So you can use this API, you must add the following lines of code:
<?php
$contents = file_get_contents("https://api.tylermwise.uk/v1/wordfilter?q=TEXT_GOES+HERE");
$data = json_decode($contents);
?>
After that is added, the following lines of code will work:
<?php echo $data->credit; ?>
<?php echo $data->text; ?>
<?php echo $data->filter_text; ?>
GET
https://api.tylermwise.uk/v1/wordfilter?q=TEXT_GOES+HERE
Path Parameters
Name
Type
Description
?q=
String
Text you want to be filtered, goes here
{
"credit": "API Data from <a href='https://dev.tylermwise.com/wordfilter'>tylermwise.com</a>",
"text": "TEXT_GOES HERE",
"filter_text": "TEXT_GOES HERE"
}
Filtered Text
If you put the text in the URL and it has a swear word, the following line of code will replace that with a hashtag (#)
<?php echo $data->filter_text; ?>
Text Unfiltered
Additionally, if you want the text to be unfiltered use the following line of code and it shows the swear word:
<?php echo $data->text; ?>
API Credit
If you are using this API lots, please credit me as it supports me so much!
<?php echo $data->credit; ?>
Last updated