> 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: ApiTag

Defined in: [core/query/tags.ts:11](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L11)

One change-tag definition. `tgprop` selects the optional fields.

## Properties

### active?

> `optional` **active?**: `boolean`

Defined in: [core/query/tags.ts:36](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L36)

Whether the tag is still applicable. `tgprop=active`; a real `boolean`.

***

### defined?

> `optional` **defined?**: `boolean`

Defined in: [core/query/tags.ts:25](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L25)

Whether the tag has a definition page. `tgprop=defined`; a real `boolean`.

***

### description?

> `optional` **description?**: `string`

Defined in: [core/query/tags.ts:19](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L19)

Description (wikitext). `tgprop=description`.

***

### displayname?

> `optional` **displayname?**: `string`

Defined in: [core/query/tags.ts:16](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L16)

Human-readable display name (may contain HTML). `tgprop=displayname`.

***

### hitcount?

> `optional` **hitcount?**: `number`

Defined in: [core/query/tags.ts:22](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L22)

Number of revisions/logs carrying this tag. `tgprop=hitcount`.

***

### name

> **name**: `string`

Defined in: [core/query/tags.ts:13](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L13)

Internal tag name (used by `rcprop=tags` / revision `tags`).

***

### source?

> `optional` **source?**: (`"extension"` | `"manual"` | `"software"`)\[]

Defined in: [core/query/tags.ts:33](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/tags.ts#L33)

Where the tag can come from. `tgprop=source`: `software` for a tag defined
in code, `manual` for one with a definition page, and `extension` as a
backwards-compatibility entry emitted alongside `software`. Emitted as a
list — a tag with no source serializes as `[]`.
