Text Moderation API
Details
Our Text Moderation API is a cutting-edge AI-powered solution, designed to automate and streamline the process of moderating user-generated content for digital platforms. Utilizing advanced machine learning algorithms, this API efficiently filters out offensive, inappropriate, or harmful text content, ensuring a safe and respectful online environment.
The API features an intuitive and easily integrated interface which is designed to suit a wide array of platforms, from social media networks and forums to customer reviews on e-commerce sites. It can adeptly moderate content in real-time, providing swift responses and minimizing the delay in user interaction.
Additionally, our Text Moderation API is built with adaptability in mind. It continually learns and evolves with each interaction, enhancing its understanding of context, slang, and the ever-evolving nuances of language. This results in exceptional accuracy and precision in detecting any form of harmful content.
Our Text Moderation API is not just a tool, but a full-fledged member of your content moderation team. It helps maintain the quality of online conversations, enforce community guidelines, and protect the reputation of your platform. By choosing our solution, you are investing in a safer, healthier, and more engaging digital space for your users.
-
Verified
Use Cases
Here are some potential use cases for your AI-Powered Text Moderation API:
- Social Media Platforms: Use this API to automatically moderate user-generated content such as comments, posts, and messages. The API helps ensure that all interactions comply with the platform's community guidelines and create a safe and respectful environment.
- Online Forums and Discussion Boards: The API can be used to filter out offensive or inappropriate text content in real-time on online forums and discussion boards. It can understand context, abbreviations, and internet slang, thus making these platforms a safer place for fruitful discussions.
- E-Commerce Platforms: This API can be used to review and moderate product reviews or seller-to-buyer communication. It ensures that the feedback provided is constructive and appropriate, thus maintaining a positive shopping environment.
- Online Gaming Platforms: Gaming chat rooms can use this API to moderate player-to-player chat in real time, preventing the spread of toxic behavior and promoting a more inclusive gaming experience.
- News Sites: Online news platforms can use this API to monitor and moderate comments sections, facilitating healthy discussion while minimizing the spread of misinformation, offensive language, or harmful content.
- Educational Platforms: This API can be used to ensure that the discussion boards, group chats, and other communication channels used by learners are free from harmful or inappropriate content.
- Customer Support Platforms: The API can analyze customer complaints or feedback to flag any offensive or inappropriate language, helping to maintain professionalism and respect in all interactions.
- Content Sharing Platforms: Content platforms such as blogs or video sharing websites can use the API to moderate user-generated text content such as comments, descriptions, or reviews.
Remember, the ultimate goal of integrating this API is to ensure a respectful, healthy, and engaging conversation between your users, and to create a safe digital environment for everyone.
0 Comments
Endpoints (1)
Title:
Endpoint #1 Text Moderation
Description:
This is a POST endpoint where you will get the NSFW score
Base URL:
Requests:
Token:
every API have unique token. You'll get one once you activate the endpoint
Body params:
Code Examples:
Example responses
Enter next parameters to test endpoint response
Expected Response
Endpoint #1 Text Moderation
Description:
The API takes in a text and gives output a probability (score between 1-5) which can be used to filter not suitable for work text. Scores < 2 indicate that the text is likely to be safe with high probability. Scores >= 4 indicate that the text is highly probable to be NSFW (not suitable for work). Scores in middle range may be binned for different NSFW levels. The API takes a general nsfw_likelihood score and also display custom params with labels like:
- sexually explicit
- sexually suggestive, and
- offensive
Giving each one a score with the same range of values (1-5)
This is a POST endpoint where you will get the NSFW score
Base URL:
https://www.dataendpoint.co/machine-learning-apis/text-moderation-api/post-api
# POST
/text/moderation/<token>
every API have unique token. You'll get one once you activate the endpoint
Body params:
Body param name | Body param type | Example | Requirement | Params Has Constraint | Params Constraint Value | Description |
---|---|---|---|---|---|---|
text | STRING | You're absolutely stupid if you think pineapple belongs on pizza | [Required] | [Params Has Constraint] | 300 | |
language | STRING | en | [optional] | [no constraint] |
Code Examples:
const
axios = require('axios');
axios({
"method":
"POST",
"url":
https://www.dataendpoint.co/machine-learning-apis/text-moderation-api/post-api/text/moderation/<token>
"data":
{
"text":
"You're absolutely stupid if you think pineapple belongs on pizza"
,
"language":
"en"
}
"headers": {
"content-type":
"application/json"
}
}).then((response) => {
// handle sucess
console.log(response)
}).catch((error) => {
// handle error
console.log(error)
})
import
requests
url =
https://www.dataendpoint.co/machine-learning-apis/text-moderation-api/post-api/text/moderation/<token>
data =
{
"text":
"You're absolutely stupid if you think pineapple belongs on pizza"
,
"language":
"en"
}
headers = {
"content-type":
"application/json"
}
response =
requests.request("POST", url, data=data, headers=headers)
print
(response.text)
require
'httparty'
url =
https://www.dataendpoint.co/machine-learning-apis/text-moderation-api/post-api/text/moderation/<token>
data =
{
"text" =>
"You're absolutely stupid if you think pineapple belongs on pizza"
,
"language" =>
"en"
}
response =
HTTParty.post(url,
body: data.to_json,
headers: { "Content-Type" => "application/json" })
puts
response.parsed_response
<?php
$curl =
curl_init();
$url =
https://www.dataendpoint.co/machine-learning-apis/text-moderation-api/post-api/text/moderation/<token>
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "
{
"text":
"You're absolutely stupid if you think pineapple belongs on pizza"
,
"language":
"en"
}
",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json"
),
));
$response =
curl_exec($curl);
curl_close($curl);
echo
$response;
Enter next parameters to test endpoint response
Enter parameters
Expected Response
{ "microsoft": { "status": "success", "nsfw_likelihood": score_with_nsfw_likelihood, "items": [ { "label": "sexually explicit", "likelihood": score_with_likelihood }, { "label": "sexually suggestive", "likelihood": score_with_likelihood }, { "label": "offensive", "likelihood": score_with_likelihood } ] } }
Pricing plans in USD
Free
Ideal for developers who want to test the API
Free
# petitions 10
Monthly Subscription
Individual
Ideal for Individuals who want to get more out of the Text Moderation API
$49.0
# petitions 100
Monthly Subscription
Startup
Ideal for Startups who want to make more API calls per month
$109.0
# petitions 200
Monthly Subscription
Company
Ideal for companies who want to grow their Text Moderation capabilities
$209.0
# petitions 300
Monthly Subscription