Profanity Filter Multi Language Detection Masking Batch API
Free tier included · Text AnalysisProfanity Filter API detects and masks profanity across all 28 languages of the LDNOOBW wordlists (CC-BY-4.0), including English, Russian, Spanish, German, French, Italian, Portuguese, Polish, Arabic, Turkish, and more. It handles leetspeak (sh1t, a$$), accents (café), repeated letters (fuuuck), and fullwidth forms, plus substring matching for spaceless scripts like Japanese, Chinese, Thai, and Korean.
The API offers five endpoints: a simple GET/POST /check for quick detection, /check/full for professional-grade analysis with offsets, severity tiers, and per-language counts, /clean for s**t-style masking that preserves text length, and /batch for screening up to 100 texts in one call. Custom wordlists and allow lists let you tailor detection to your content.
Everything runs offline using local wordlists loaded at startup — no external calls, no databases, no request logs. This makes it fast, privacy-friendly, and suitable for PII-heavy environments. A single /check call completes in milliseconds, and batch processing is the most cost-effective way to moderate at volume.
Honest limits: text is capped at 10,000 characters per item, JSON bodies at 64 KB, and /check returns at most 100 matches. The /batch endpoint rejects the entire request if any item is invalid. Wordlists are loaded from disk at startup; if none are available, /health reports "degraded" and /check returns 503.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | Service metadata: API name, version, endpoints, limits, and built-in language codes. |
GET | /health | Liveness/readiness probe: reports whether wordlists were loaded from disk. |
GET | /languages | List all built-in languages with wordlist sizes and loaded status. |
GET | /check | Detect and mask profanity in a single text via query parameters. |
POST | /check | Detect and mask profanity in a single text via JSON body (recommended for long texts). |
POST | /check/full | Full profanity analysis with offsets, severity, and counts. |
POST | /clean | Censor profanity with s**t-style masking that preserves text length. |
POST | /batch | Check up to 100 texts in one request. |
Quick start
curl -X GET "https://profanity.p.rapidapi.com/languages" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: profanity.p.rapidapi.com"
FAQ
Does the API make any external network calls?
No. All wordlists are loaded locally at startup from disk. There are no external API calls, no databases, and no request logging.
What languages are supported?
All 28 languages of the LDNOOBW lists: en, ru, es, de, fr, it, pt, pl, ar, tr, cs, da, eo, fa, fi, fil, fr-ca, hi, hu, ja, kab, ko, nl, no, sv, th, tlh, zh. Use `langs=all` to check against every loaded language.
How many texts can I check in one request?
Up to 100 texts per /batch call, each limited to 10,000 characters. The total JSON body must stay under 64 KB. If any item in a batch is invalid, the entire request is rejected with a 4xx error.
Can I add my own words or protect certain terms?
Yes. All POST endpoints accept `custom_words` (up to 200 entries) to detect additional terms, and `allow_list` (up to 500 entries) to prevent false positives on names, brands, or medical terms.
Try Profanity Filter Multi Language Detection Masking Batch free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI