Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/SafetyRating",
"title": "SafetyRating",
"type": "object",
"description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content.",
"properties": {
"category": {
"type": "string",
"description": "The category for this rating.",
"enum": [
"HARM_CATEGORY_UNSPECIFIED",
"HARM_CATEGORY_HATE_SPEECH",
"HARM_CATEGORY_SEXUALLY_EXPLICIT",
"HARM_CATEGORY_DANGEROUS_CONTENT",
"HARM_CATEGORY_HARASSMENT",
"HARM_CATEGORY_CIVIC_INTEGRITY"
]
},
"probability": {
"type": "string",
"description": "The probability of harm for this content.",
"enum": [
"HARM_PROBABILITY_UNSPECIFIED",
"NEGLIGIBLE",
"LOW",
"MEDIUM",
"HIGH"
]
},
"blocked": {
"type": "boolean",
"description": "Was this content blocked because of this rating?"
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.