googleapis.com

The Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the "toxicity" of a comment). Users can leverage the "SuggestCommentScore" method to submit corrections to improve Perspective over time. Users can set

🔑 oauth2 2 endpoints analyticsmedia
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (10 total)

mcp-toolbox-sdk-python ✓ Official
pip install mcp-toolbox-sdk-python
python-storage ✓ Official
pip install python-storage
python-aiplatform ✓ Official
pip install python-aiplatform
python-genai ✓ Official
pip install python-genai
js-genai ✓ Official
npm install js-genai
go-genai ✓ Official
go get github.com/googleapis/go-genai
sdk-platform-java ✓ Official
# Maven: see https://github.com/googleapis/sdk-platform-java
java-genai ✓ Official
# Maven: see https://github.com/googleapis/java-genai
dotnet-genai ✓ Official
# See https://github.com/googleapis/dotnet-genai
gax-java ✓ Official
# See https://github.com/googleapis/gax-java
curl examples
Analyzes the provided text and returns scores for requested attributes.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://commentanalyzer.googleapis.com/v1alpha1/comments:analyze
Suggest comment scores as training data.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://commentanalyzer.googleapis.com/v1alpha1/comments:suggestscore
Endpoints (2 total)
POST
/v1alpha1/comments:analyze
Analyzes the provided text and returns scores for requested attributes.
POST
/v1alpha1/comments:suggestscore
Suggest comment scores as training data.
At a glance
Total SDKs10
Languages6
Endpoints2
Authoauth2
Categories2
https://commentanalyzer.googleapis.com