Analyze toxicity
analyze_toxicityScore English text for toxicity, severe toxicity, insults, profanity, threats, and identity attacks (0-1) to moderate content or filter LLM output.
Instructions
Score English text for toxicity, severe toxicity, insults, profanity, threats and identity attacks (0-1 probabilities, same attributes as Google Perspective API). Use it to moderate user-generated content, filter LLM output, or triage comments before an agent posts them. Pass up to 100 texts at once. Read-only: it does not store or publish text. Each call is billed to your Apify account ($0.50 for 1,000 text units). The first call after an idle period can take 10 to 30 seconds. English only: non-English text gets a warning field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | Texts to score (English). One item per comment or message. | |
| threshold | No | TOXICITY score at or above which a text is marked flagged. | |
| attributes | No | Attributes to return. Defaults to all six. |