Perspective is an API that uses machine learning models to score the perceived impact a comment might have on a conversation.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
example_data Include link to CSV of scored examples. Aug 29, 2018
hacks_images Add files via upload Sep 7, 2017
model_cards Add files via upload Jan 30, 2019
1b.png Add files via upload Jan 26, 2019 Initial documentation Feb 23, 2017
LICENSE Initial commit Feb 23, 2017 Add link to privacy policy and terms of service Aug 6, 2018 Update Jan 25, 2019 Added note about API key activation time Jul 6, 2018 small fixes to text and tables Aug 9, 2017 Update docs with the actual rollout date Aug 23, 2017

Perspective Comment Analyzer API

The Perspective API is part of the Conversation AI research effort that aims to help increase empathy, participation and quality in online conversation at scale.

This github repository contains a quickstart guide and the API reference documentation for the Perspective Comment Analyzer API.

Note that the API is currently in trusted tester phase and not generally available. Please see our API demo and access request site for the form to request API access.

Example demo code:

If you would like to receive email updates about the API - for example when we add new models, or deprecate old ones - you can subscribe to perspective-announce. You will then receive emails updates from This list will be used only to share release information, and will never be used to ask you login details of any kind.

The Perspective API is provided under the Google Privacy Policy, and the Google Cloud API terms of service.