Reference / API groups
twitch.contentLabels
Content classification labels and their localized names.
Every method of twitch.contentLabels, with its parameters, what it returns and the token it needs.
twitch.contentLabels.list(params?, options?): Promise<ContentLabel[]>Lists every content classification label, with its name and description in the language you ask for.
Token: app or user.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
locale | ContentLabelLocale | Language of the names and descriptions. Twitch defaults to "en-US". |
options: Request options for this call: as, token, signal, timeout, retries.
Returns
Section titled “Returns”Promise<ContentLabel[]>
Fields of ContentLabel
| Name | Type | Description |
|---|---|---|
id | string | ID of the label, such as "Gambling". |
description | string | What the label covers, in the requested language. |
name | string | Name of the label, in the requested language. |
Example
Section titled “Example”const labels = await twitch.contentLabels.list({ locale: "fr-FR" });