apyhub
ARTIFICIAL INTELLIGENCE · DATA VALIDATION

Profanity Check

What it does

Profanity Check lets you send text and detect whether it contains profanity. POST a body object with text, and optionally language (default en), then read the response to see the result.

Use it when you need to screen user-generated content before publishing comments, chat messages, reviews, profile bios, or support tickets. It fits moderation flows where you want a fast pass/fail check on incoming text without building your own keyword filter.

The request schema is simple: text is required and must be a non-empty string, and language accepts a short language code. The service returns a JSON response for the check; the endpoint schema is open-ended, so this page only documents the guaranteed input shape rather than inventing fields.

Add Profanity Check to moderation pipelines, content submission forms, and internal review tools when you need a lightweight text-safety gate before content is stored or shown.

POST
Profanity check
http://localhost:8080/pankajretestflows/profanity-check

QUICKSTART

GUIDE

Quickstart

Send a short text snippet to check it for profanity.

curl -X POST "http://localhost:8080/pankajretestflows/profanity-check" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text":"This is a sample text.","language":"en"}'

What you'll get back

Returns a JSON object. The schema does not declare any specific response fields, so the exact shape can include additional properties.

{
  "language": "en",
  "contains_profanity": false,
  "match_count": 0,
  "matches": [],
  "attribution": [
    {
      "source": "censor-text/profanity-list"
    }
  ]
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
TextInput*

About this endpoint

What it does

Checks the submitted text for profanity and returns a response object whose detailed shape is not defined in the schema. The request body accepts the text to check and an optional language code.

Request Body

ParameterTypeMandatoryDescription
textStringYesText to analyze. Minimum length: 1.
languageStringNoLanguage code for the text. Default: en. Length must be between 2 and 5 characters.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.