Parameters

  • text

    • Type: string
    • Required: true
    • Description: Text you want to filter
  • filters

    • Type: array
    • Required: true
    • Description: Filters you want to apply
    • Options: nsfw, cp, toxicity
  • stream

    • Type: boolean
    • Required: false

Response

  • nsfw

    • Type: boolean
    • Description: Whether the text is nsfw or not
  • youth

    • Type: boolean
    • Description: Whether the text is youth or not
  • cp

    • Type: boolean
    • Description: Whether the text is cp or not
  • toxic

    • Type: boolean
    • Description: Whether the text is toxic or not
  • done

    • Type: boolean
    • Description: Whether the request is done or not

Examples

Text Filter example
import axios from "axios";
(async () => {
  let response = await axios({
    method: "post",
    url: 'https://api.turing.sh/text/filter',
    headers: {
      "Content-Type": "application/json",
      Authorization: "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data: {
"text": "string",
"filters": "nsfw"
},
  })
})();