Perspective
NLP API to return probability that if text is toxic, obscene, insulting or threatening
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Machine Learning
- Data source
- public-apis + marcelscruz
- Documentation / URL
- https://perspectiveapi.com
Overview
Perspective provides toxicity probability scoring — key-based (requests need a real GCP project; a bogus one returns 404, verified).
Quick Start
Requires a valid GCP API key:
curl -X POST "https://commentanalyzer.googleapis.com/v1alpha1/comments:analyze?key=YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"comment":{"text":"hello"},"requestedAttributes":{"TOXICITY":{}}}'
Authentication
- Register at perspectiveapi.com → GCP API key.
- Bogus key/project → 404 (verified).
Rate Limits & Notes
- Free tier with limits (check the docs).
- Toxicity/obscenity/insult/threat scores.
FAQ
Is Perspective free? Free tier with limits; more is paid.
Why 404? A bogus key returns 404 (verified) — use a real GCP key.
What’s the auth style? GCP API key query parameter.
More in Machine Learning
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 1ClickImpact (AI Energy) Track and offset the energy and carbon footprint of your AI/LLM usage via a simple API | API Key | Yes | Unknown | ↗ |
| Advanced Multilanguage AI Translator (RapidAPI) AI-powered translator supporting multiple languages with fast, context-aware responses | API Key | Yes | Unknown | ↗ |
| AI Economics Tools Token cost, LLM energy, agent-hour and Proof-Adjusted Autonomy calculators by Michał Piszczek | No auth | Yes | Yes | ↗ |
| AI For Thai Free Various Thai AI API | API Key | Yes | Yes | ↗ |
| AI Learning Engine Create, auto-grade, and analyze learning tasks with AI-based evaluations | API Key | Yes | Unknown | ↗ |