Scoring

Detect profanity in a given text

Changed on

Detect offensive or inappropriate language in user inputs. API v2 uses POST /score/text with a JSON body (not GET). Responses include risk_level and recommendation.

This method helps safeguard your website or app by detecting offensive or inappropriate language in user inputs. By screening for profanity and other harmful content before it’s made public, you can maintain a positive user environment, protect your brand, and prevent abusive behavior on your platform.

post/score/text

Request

  • Base URL
    https://v2.greipapi.com
  • URL
    https://v2.greipapi.com/score/text
  • Auth
    HTTP bearer

Request body

formatstring
modestring
sourcestring
textstring required

Response

OK

successboolean required
dataobject required

Endpoint-specific payload.

execution_msinteger required

Example response

{
  "success": true,
  "execution_ms": 42
}

Changes

    • breaking

      added subschema #2 to the request body allOf list

    • breaking

      the request's body type changed from object to no type

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      api tag Scoring added

    • info

      added the media type application/json for the response with the status

    • info

      endpoint added