> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt.

# Interface: ApiWatchlistLabel

Defined in: [common/index.ts:77](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/common/index.ts#L77)

A watchlist label (`{ id, name }`), as returned by `meta=userinfo`
`uiprop=watchlistlabels`, `prop=info` `inprop=watchlistlabels`,
`list=watchlist` `wlprop=labels`, and echoed by `action=watch`. Requires
`$wgEnableWatchlistLabels`. Emitted as a list; an empty set serializes as `[]`.

## Since

MediaWiki 1.46

## Properties

### id?

> `optional` **id?**: `number`

Defined in: [common/index.ts:79](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/common/index.ts#L79)

Stable numeric label id.

***

### name?

> `optional` **name?**: `string`

Defined in: [common/index.ts:82](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/common/index.ts#L82)

Label text.
