Google

Perspective Comment Analyzer API

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…

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

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 the "doNotStore" flag to ensure that all submitted comments are automatically deleted after scores are returned.

Endpoints 2

comments

  • POSTcommentanalyzer.comments.analyze/v1alpha1/comments:analyze?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringAnalyzes the provided text and returns scores for requested attributes.
  • POSTcommentanalyzer.comments.suggestscore/v1alpha1/comments:suggestscore?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=stringSuggest comment scores as training data.

API details

Base URL
https://commentanalyzer.googleapis.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
OAuth 2.0 (authorization code flow) with 1 scope
Operations
2 operations on 2 pathsPOST 2
Main resources
comments 2
Response formats
application/json
Description format
OpenAPI 3.0.0, API version v1alpha1
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Perspective Comment Analyzer API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Perspective Comment Analyzer API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “commentanalyzer.comments.analyze” (POST /v1alpha1/comments:analyze?$.xgafv=1&access_token=string&alt=json&callback=string&fields=string&key=string&oauth_token=string&prettyPrint=true&quotaUser=string&upload_protocol=string&uploadType=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Perspective Comment Analyzer API?

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… It is listed under Developer tools and has 2 endpoints.

Who publishes the Perspective Comment Analyzer API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Perspective Comment Analyzer API?

Requests go to https://commentanalyzer.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Perspective Comment Analyzer API?

It accepts 2 methods: OAuth 2.0 (implicit flow) with 1 scope; OAuth 2.0 (authorization code flow) with 1 scope.

How many endpoints does the Perspective Comment Analyzer API have?

2 operations on 2 paths (2 POST). The largest groups are comments.

Is forking the Perspective Comment Analyzer API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.