AI Content Moderation API
Analyze text for toxicity, profanity, spam, PII, and sentiment in real-time. Supports English & Arabic with auto-censoring, redaction, and actionable safety scores.
Try it Free
Paste any text and get a comprehensive safety analysis in seconds.
Try Free
Result
Enter text and click Analyze to check for toxicity, spam, PII, and more
API Documentation
Analyze text for toxicity, profanity, spam, PII (personal identifiable information), and sentiment. Supports English and Arabic with automatic language detection.
Endpoint
Send text with optional check types. The API returns safety scores, detected flags, suggested actions (allow/review/block), PII redaction, profanity censoring, and sentiment analysis.
Request Parameters
Response Fields
is_safe Boolean — overall safety determinationoverall_score 0.0 (safe) to 1.0 (dangerous)action allow, review, or blockflags Array of detected issues (e.g. toxic, profanity, pii_detected, spam)checks.toxicity Score, level, and categories (threat, hate_speech, harassment)checks.profanity Found words, count, and censored textchecks.pii Detected PII types (email, phone, SSN, credit card) with redacted textchecks.spam Spam score, signals, and boolean is_spamchecks.sentiment Label (positive/negative/neutral/mixed) with confidenceCode Examples
Error Codes
Rate Limits
No API key required. Supports English and Arabic. Pattern-based analysis — no data is stored or sent to third parties.