Get Content Classification Labels
Gets information about Twitch content classification labels.
Endpoint
GEThttps://api.twitch.tv/helix/content_classification_labels
Authorization
Requires one of the following:
Query Parameters
localeStringLocale for the Content Classification Labels. You may specify a maximum of 1 locale. Default: '"en-US"'
Supported locales: '"ar-SA", "bg-BG", "cs-CZ", "da-DK", "de-DE", "el-GR", "en-GB", "en-US", "es-ES", "es-MX", "fi-FI", "fr-FR", "hu-HU", "it-IT", "ja-JP", "ko-KR", "nl-NL", "no-NO", "pl-PL", "pt-BR", "pt-PT", "ro-RO", "ru-RU", "sk-SK", "sv-SE", "th-TH", "tr-TR", "uk-UA", "vi-VN", "zh-CN", "zh-TW"'
If the locale isn't supported, the closest supported locale is used, or en-US if none is close.
Response Body
dataObject[]A list that contains information about the available content classification labels.Hide child attributesShow child attributes
data.idStringUnique identifier for the CCL.data.descriptionStringLocalized description of the CCL.data.nameStringLocalized name of the CCL.
Request Example
example language for Get Content Classification Labels
curl -X GET 'https://api.twitch.tv/helix/content_classification_labels' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Client-Id: YOUR_CLIENT_ID'$headers = @{
"Authorization" = "Bearer YOUR_ACCESS_TOKEN"
"Client-Id" = "YOUR_CLIENT_ID"
}
$response = Invoke-RestMethod -Uri "https://api.twitch.tv/helix/content_classification_labels" `
-Method Get -Headers $headersconst response = await fetch("https://api.twitch.tv/helix/content_classification_labels", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Client-Id": "YOUR_CLIENT_ID",
},
});
const data = await response.json();import requests
response = requests.get(
"https://api.twitch.tv/helix/content_classification_labels",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Client-Id": "YOUR_CLIENT_ID",
},
)
data = response.json()req, _ := http.NewRequest("GET", "https://api.twitch.tv/helix/content_classification_labels", nil)
req.Header.Set("Authorization", "Bearer YOUR_ACCESS_TOKEN")
req.Header.Set("Client-Id", "YOUR_CLIENT_ID")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)$ch = curl_init("https://api.twitch.tv/helix/content_classification_labels");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_ACCESS_TOKEN",
"Client-Id: YOUR_CLIENT_ID",
]);
$response = curl_exec($ch);
curl_close($ch);using var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.twitch.tv/helix/content_classification_labels");
request.Headers.Add("Authorization", "Bearer YOUR_ACCESS_TOKEN");
request.Headers.Add("Client-Id", "YOUR_CLIENT_ID");
var response = await client.SendAsync(request);
var data = await response.Content.ReadAsStringAsync();let client = reqwest::Client::new();
let response = client
.get("https://api.twitch.tv/helix/content_classification_labels")
.header("Authorization", "Bearer YOUR_ACCESS_TOKEN")
.header("Client-Id", "YOUR_CLIENT_ID")
.send()
.await?;
let data = response.text().await?;Response Example
{
"data": [
{
"id": "DebatedSocialIssuesAndPolitics",
"description": "Discussions or debates about politics or sensitive social issues such as elections,\ncivic integrity, military conflict, and civil rights in a polarizing manner.",
"name": "Politics and Sensitive Social Issues"
},
{
"id": "DrugsIntoxication",
"description": "Excessive tobacco glorification or promotion, any marijuana consumption/use, legal\ndrug and alcohol induced intoxication, discussions of illegal drugs.",
"name": "Drugs, Intoxication, or Excessive Tobacco Use"
},
{
"id": "Gambling",
"description": "Participating in online or in-person gambling, poker or fantasy sports, that involve\nthe exchange of real money.",
"name": "Gambling"
},
{
"id": "MatureGame",
"description": "Games that are rated Mature or less suitable for a younger audience.",
"name": "Mature-rated game"
},
{
"id": "ProfanityVulgarity",
"description": "Prolonged, and repeated use of obscenities, profanities, and vulgarities, especially\nas a regular part of speech.",
"name": "Significant Profanity or Vulgarity"
},
{
"id": "SexualThemes",
"description": "Content that focuses on sexualized physical attributes and activities, sexual topics,\nor experiences.",
"name": "Sexual Themes"
},
{
"id": "ViolentGraphic",
"description": "Simulations and/or depictions of realistic violence, gore, extreme injury, or death.",
"name": "Violent and Graphic Depictions"
}
]
}