Back to catalog
🤖

Perspective

API Key

NLP API to return probability that if text is toxic, obscene, insulting or threatening

🤖Machine LearningHTTPS

Perspective

Toxicity Analysis

Input TextThis is a great discussion, keep it up!
Toxicity Score0.03
Insult Score0.02
Threat Score0.01
Identity Attack Score0.01

Sample Response

response.json
1{
2 "input_text": "This is a great discussion, keep it up!",
3 "toxicity_score": 0.03,
4 "insult_score": 0.02,
5 "threat_score": 0.01,
6 "identity_attack_score": 0.01
7}

Code Snippets

request.sh
1"color:#c084fc">curl -X "color:#fbbf24">GET "https://perspectiveapi.com" \
2 "color:#60a5fa">-H "Authorization: Bearer YOUR_API_KEY"
View Documentation

Similar APIs