Documentation

API URL


GET /filter

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /api/v1/profanity/analyze?api_key=YOUR_API_KEY&text=What%20a%20fucking%20amazing%20result!

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "text": "What a fucking amazing result!",
    "hasProfanity": true,
    "severity": "high",
    "count": 1,
    "positions": [
      {
        "start": 7,
        "end": 14,
        "word": "fucking",
        "category": "strong_language"
      }
    ],
    "analysis": {
      "overallSeverity": "high",
      "categories": [
        "strong_language"
      ],
      "context": "expressive"
    }
  },
  "meta": {
    "tier": 3,
    "correlationId": "mno345-pqr678",
    "timestamp": "2026-04-06T00:00:00.000Z",
    "processingTime": "25ms"
  }
}

Error Response

Example
Code
400 INVALID_INPUT | If "text" field is missing, not a string, or too long
500 INTERNAL_ERROR | If LLM fails or other internal error

Last Updated:  May 4, 2026