{"uid":"cap_-PD_agW_W7GJ_7zd0Rk4K","slug":"content-moderation-api-b37855ae","name":"Content Moderation API","description":"Check text for profanity/explicit terms (wordlist-based, with basic leetspeak/obfuscation detection); returns a flag, matched terms, and a redacted version.","url":"https://content-moderation-api-hhy1.onrender.com/moderate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to check for profanity/explicit terms. Max 50,000 characters."}}},"responseSchema":{"type":"json","example":{"flagged":true,"matches":[{"end":17,"term":"asshole","start":10}],"match_count":1,"redacted_text":"You are a *******."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q2zDObLNRYDlHe0nRy6sX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks text for profanity and explicit terms using a wordlist with leetspeak/obfuscation detection, returning a flag, matched terms with positions, match count, and a redacted version.","exampleAgentPrompt":"Can you check this user comment for profanity or explicit terms and give me a redacted version if anything bad is found: 'You are an asshole and I hate you'?","exampleUseCases":[{"title":"Moderate user forum posts","prompt":"Before publishing this forum reply to our community board, scan it for profanity or explicit language and tell me if it should be blocked: 'This product is absolute sh*t and the support team are complete idiots.'"},{"title":"Filter chat messages in real time","prompt":"A user just sent this chat message — can you check it for offensive or explicit terms and give me a clean redacted version I can show other users: 'Go f*** yourself you worthless piece of crap.'"},{"title":"Validate user profile bio submissions","prompt":"Someone submitted this profile bio on our kids' platform — does it contain any profanity or inappropriate language? Here's the text: 'I'm the b3st pl4yer here and everyone else is an @ss.'"}],"resultDescription":"Returns a JSON object with: a boolean 'flagged' field indicating whether any profanity was detected, a 'matches' array listing each detected term with its start and end character positions, a 'match_count' integer, and a 'redacted_text' string where matched terms are replaced with asterisks.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Highly novel obfuscations not in the wordlist may go undetected (false negatives)","Legitimate words that resemble profanity may be incorrectly flagged (false positives)","Non-English profanity may not be detected if not in the wordlist","Empty or whitespace-only input may return unexpected results","Service hosted on Render free tier may experience cold-start latency or downtime"],"whenToPreferThis":"Choose this endpoint when you need a fast, wordlist-based profanity check with leetspeak/obfuscation detection that also returns exact match positions and a ready-to-display redacted version. It is well-suited for real-time moderation of user-generated text in chat, forums, or profile fields where speed matters more than nuanced semantic understanding. Prefer a more advanced ML-based moderation service if you need context-aware detection of hate speech, sentiment, or implicit toxicity beyond explicit keyword matching.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:46.901Z","isFirstParty":false}