← Back to API Ninjas
GET/v1/profanityfilter

Detects and censors profanity in text.

Screens `text` for profanity and returns a censored version plus a flag indicating whether anything was found. Requires `text`.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v1/profanityfilter", query: { "text": "example" } }); console.log(output);

Query parameters

textrequired
string

Input text. Maximum 1000 characters.

    Orthogonal - Giving AI agents the tools they need.