Text Moderation & AI Text Detector: Toxicity, Hate, Spam
Pricing
from $1.00 / 1,000 text analyzed
Text Moderation & AI Text Detector: Toxicity, Hate, Spam
Moderate comments, reviews and chat messages in any language: 0 to 1 scores for toxic, hate, harassment, sexual, violence, self-harm, spam and profanity, a flagged verdict, and an AI-written-text score with a verdict, in one call. No API key.
Pricing
from $1.00 / 1,000 text analyzed
Rating
0.0
(0)
Developer
Trawlyard
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Text Moderation & AI Text Detector
Moderate comments, reviews, chat messages and posts in any language (English, Portuguese, Spanish and more). For each text you get a 0 to 1 score for eight categories, a flagged verdict, and an AI-written text score with a verdict, all in one call. Up to 100 texts per run, no API key.
What you get for each text
| Field | What it is |
|---|---|
flagged | true when any category you asked for reaches the threshold (default 0.3) |
flaggedLabels | The categories that reached it, highest first |
threshold | The threshold used for this text |
scores | toxic, hate, harassment, sexual, violence, self_harm, spam, profanity, each 0 to 1 |
aiScore | 0 to 1: how likely the text was written by an AI model rather than typed by a person |
aiGenerated | true when aiScore is 0.5 or more |
aiVerdict | likely_ai (0.7 or more), likely_human (0.3 or less), uncertain, or too_short (under 25 characters) |
truncated, chars | Texts longer than 10,000 characters are analyzed up to that length; truncated says so |
id | Your own id, when you send {"text": "...", "id": "..."} instead of a plain string |
status, error | ok, or why the text was not analyzed (empty_text, run_time_limit, classifier_unavailable) |
You are charged only for texts that come back with status: ok.
Input
{"texts": ["You are a complete idiot and nobody wants you here.",{"text": "Thanks for the quick reply, the package arrived today!", "id": "review-1042"},"Esse político é um lixo, vagabundo e ladrão."],"categories": ["toxic", "hate", "harassment", "sexual", "violence", "self_harm", "spam", "profanity"],"threshold": "0.3","detectAi": true}
texts: up to 100, strings or{text, id}objects. Empty texts are returned asempty_textand not charged.categories: which categories to score. Empty means all eight.threshold: 0.05 to 0.95. Lower catches more and flags more clean texts; 0.3 is the default.detectAi: turn off to skip the AI-written score.
Example output
{"index": 0,"text": "You are a worthless piece of garbage and everyone at this company hates you.","status": "ok","flagged": true,"flaggedLabels": ["toxic","hate","harassment","profanity"],"scores": {"toxic": 1.0,"hate": 1.0,"harassment": 1.0,"sexual": 0.0,"violence": 0.0,"self_harm": 0.0,"spam": 0.0,"profanity": 1.0},"threshold": 0.3,"truncated": false,"chars": 76,"aiGenerated": false,"aiScore": 0.0,"aiVerdict": "likely_human"}
Use it from code, from the API or from an AI agent
- Run it from the Apify console, the API or any Apify client, like any Actor.
- Server mode: send
POST /moderatewith the same JSON body for an answer in seconds, without an Actor start. Use POST (not a query string) when your texts contain commas. - MCP: the tool
moderate_textis available at/mcpfor Claude, Cursor and other agents.
Use cases
- Comments and reviews: hold back insults, hate, threats, sexual content and spam before they go live.
- Chat and community moderation: score every message, flag the ones over your own threshold, and send only those to a human.
- Scraped text: chain it after a social, review or forum scraper to clean the data you collected.
- Education and publishing: check whether a submission looks AI-written, as one signal among others.
- Profanity filters that understand context: words that only contain a swear word inside them, or a news report about violence, are scored by meaning and not by a word list.
Limits and honest notes
- Scores are model estimates, not a legal judgement. Keep a person in the loop for bans, appeals and anything with legal weight.
- The AI-written score is a score, not proof. Detectors of AI text make mistakes in both directions, and text that was edited or paraphrased after an AI wrote it is much harder to catch. Do not use it alone to accuse anyone. Texts under 25 characters get no AI score.
- Quality varies with the language and the topic. Sarcasm, quotes that condemn what they quote, and promotions that look like ads can score higher than you expect: adjust
thresholdandcategoriesto your own data. - Each text is read up to 10,000 characters. Up to 100 texts per run; split larger lists.
- This Actor does not store your texts. Each text is sent to the classification service and dropped; only the scores are saved, in your own dataset.
More Trawlyard Actors
Other Actors from Trawlyard for the same kind of job:
Support, feedback and requests
Questions, bug reports, complaints, feature requests, or an idea for a new tool? Email us at support@trawlyard.com, in any language. We read our inbox every day and answer every message. Suggestions and feedback of every kind are welcome: tell us what you need and we will look into it.