Content Moderation API
Protect your platform with AI-powered content filtering
Our Content Moderation API uses advanced machine learning to analyze text content in real-time, identifying potentially harmful, toxic, or inappropriate material across 16 comprehensive categories.
Key Features
Everything you need for comprehensive content moderation
Real-time Analysis
Instant content moderation with sub-second response times
16 Categories
Comprehensive coverage from toxicity to finance, health to legal content
Confidence Scores
Precise confidence ratings for each detected category
Text Highlighting
Pinpoint specific words and phrases that trigger moderation
Custom Instructions
Tailor moderation rules to your specific platform needs
RESTful API
Simple integration with comprehensive documentation
Authentication
Secure API access with enterprise-grade security
Authentication is required for all API requests. Obtain your API key by subscribing to one of our plans.
API Key Usage
Moderation Categories
16 comprehensive categories with confidence scoring
Our AI model analyzes content across these key areas:
Text Moderation Endpoint
Real-time content analysis with detailed results
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text |
string | ✅ | Text content to moderate |
api_key |
string | ✅ | Your API authentication key |
custom_instructions |
string | ❌ | Custom moderation rules (premium feature) |
Example Request
Example Response
Custom Moderation Instructions
Tailor AI behavior to your platform's specific needs
Premium subscribers can provide custom instructions to fine-tune moderation behavior for their specific use case and community guidelines.
Example Custom Instructions
Sensitivity Tuning
Adjust detection thresholds for specific categories
Category Focus
Emphasize or de-emphasize specific moderation categories
Context Awareness
Provide context about your platform or use case
Implementation Examples
Ready-to-use code for popular programming languages
Python
JavaScript
PHP
Node.js
Error Handling
HTTP status codes and error responses
The API returns standard HTTP status codes along with detailed error messages in JSON format.
Status Code | Error Type | Description | Resolution |
---|---|---|---|
200 | Success | Request processed successfully | - |
400 | Bad Request | Invalid request format or missing parameters | Check request format and required parameters |
401 | Unauthorized | Invalid or missing API key | Verify API key and subscription status |
403 | Quota Exceeded | Monthly API quota exhausted | Upgrade plan or purchase additional credits |
422 | Content Too Short | Text content below minimum length | Provide at least 10 characters of text |
429 | Rate Limited | Too many requests in time window | Implement exponential backoff |
500 | Server Error | Internal processing error | Retry request or contact support |
Example Error Response
Ready to Get Started?
Join thousands of platforms using our moderation API
Start protecting your community today with our enterprise-grade content moderation API.