The filter uses natural language processing (NLP) to decode the content into logical words ignoring punctuation, case, formatting, etc. We also apply word transformations to detect obfuscation of bad words like repeating characters, spurious whitespace, and special characters. As well as detection and extraction of bad words you can also use this API to censor bad words from the supplied text.
The API will receive a string text or a URL and it will return a list of all the bad words recognized. Also, you can select a character that will be replacing these bad words. It could be an asterisk or a different word of your choice.
This API is ideal for those users that want to filter any content that has bad words in it. It could be an article by your content creators that you want to upload on your site. Maybe you want to extract text from a blog or post and want to avoid bad words.
This API is excellent for those who want to maintain a bad-words-free environment on their site. Prevent users from setting any offensive nicknames, if you have an integrated chat on your site, avoid toxicity with ease with this API. Censor any bad behavior right away!
Besides API call limitations per month, there are no other limitations. Do not worry about characters.
{"censored-content":"**** you","is-bad":true,"bad-words-list":["fuck"],"bad-words-total":1}
curl --location --request POST 'https://zylalabs.com/api/58/bad+words+filter+api/136/content+filter?content=Isthisabadword?&censor-character=*&catalog=strict' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Content Filter endpoint returns a JSON object containing the censored content, a boolean indicating if bad words were found, a list of identified bad words, and the total count of bad words detected.
The key fields in the response data include "censored-content" (the text with bad words replaced), "is-bad" (true/false if bad words were found), "bad-words-list" (array of detected bad words), and "bad-words-total" (count of bad words).
Users can pass a text string or a URL to the endpoint. Additionally, they can specify a "censor-character" for replacing bad words and choose a "catalog" type (strict or obscene) to customize the filtering.
The response data is structured as a JSON object. It includes fields for the censored content, a boolean for detection status, a list of bad words, and a total count, making it easy to parse and utilize in applications.
The endpoint provides information on detected bad words, the censored version of the input text, and categorization of the bad words based on the selected catalog (strict or obscene).
Users can display the "censored-content" to maintain a safe environment, analyze the "bad-words-list" for moderation purposes, and use "bad-words-total" for reporting or logging bad behavior.
The API employs natural language processing (NLP) techniques to accurately detect and censor bad words, including handling obfuscation methods like repeated characters and special symbols, ensuring high-quality filtering.
Common use cases include filtering user-generated content in forums, moderating chat applications, ensuring clean articles for publication, and preventing offensive usernames in online platforms.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
264ms
Service Level:
100%
Response Time:
332ms
Service Level:
100%
Response Time:
5,657ms
Service Level:
100%
Response Time:
10,171ms
Service Level:
100%
Response Time:
301ms
Service Level:
100%
Response Time:
185ms
Service Level:
100%
Response Time:
254ms
Service Level:
100%
Response Time:
152ms
Service Level:
100%
Response Time:
270ms
Service Level:
100%
Response Time:
2,128ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
572ms
Service Level:
100%
Response Time:
3,826ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
1,098ms
Service Level:
100%
Response Time:
597ms
Service Level:
100%
Response Time:
2,721ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
6,898ms