Profanity Filter

Detect and censor profanity in text. Returns a censored copy of the input and the list of flagged words found.

Get API Key

Overview

Use Cases

  • User-generated content moderation
  • Chat and comment filtering
  • Forum and community platforms
  • Child-safe application layers

Features

Case-insensitive detection
Censors flagged words with asterisks
Returns deduplicated list of flagged words
Preserves surrounding punctuation and whitespace

API Endpoints

Check Profanity

Checks text for profanity, returning a censored version and the list of flagged words.

POST
https://api.requiems.xyz/v1/text/profanity

Parameters

Name Type Required Description
text string Required The text to check for profanity.

Try it out

Live Demo
Request

The text to check for profanity.

Response Fields

Field Type Description
has_profanity boolean Whether any profanity was detected in the text
censored string The input text with profane words replaced by asterisks
flagged_words array of strings Deduplicated list of profane words found (lowercase)

Code Examples

curl -X POST https://api.requiems.xyz/v1/text/profanity \
  -H "requiems-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Some text to check"}'

Error Responses

validation_failed

The text field is missing or empty.

bad_request

The request body is missing or malformed.

internal_error

Unexpected server error.

Frequently Asked Questions