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

Defined in: [core/tag.ts:17](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L17)

One targeted entry of an `action=tag` response.

## Properties

### actionlogid?

> `optional` **actionlogid?**: `number`

Defined in: [core/tag.ts:38](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L38)

Log entry id recorded for the tagging (absent when [ApiTagEntry.noop](#noop)).

***

### added?

> `optional` **added?**: `string`\[]

Defined in: [core/tag.ts:41](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L41)

Tags added to this target.

***

### blockinfo?

> `optional` **blockinfo?**: [`ApiBlockInfo`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlockInfo.md)

Defined in: [core/tag.ts:84](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L84)

Block details, when the performer is blocked from the target page. Under
the default (`bc`) `errorformat` it is merged into the entry itself; a
modern one nests it under [ApiTagEntry.data](#data).

***

### code?

> `optional` **code?**: `string`

Defined in: [core/tag.ts:56](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L56)

On `error` entries the formatted failure message is merged into the entry:
`code` is the message's API code, and the text-bearing keys follow the
request's `errorformat` — `info` under the default (`bc`) format, `text`
(`plaintext`/`wikitext`), `html`, `key`/`params` (`raw`), or none of them
for `none`.

***

### data?

> `optional` **data?**: `object`

Defined in: [core/tag.ts:77](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L77)

Structured message data, present under a modern `errorformat` (the
default `bc` format merges it into the entry instead).

#### Index Signature

\[`key`: `string`]: `unknown`

#### blockinfo?

> `optional` **blockinfo?**: [`ApiBlockInfo`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlockInfo.md)

***

### errors?

> `optional` **errors?**: [`ApiMessage`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMessage.md)\[] | [`ApiSpecMessage`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSpecMessage.md)\[]

Defined in: [core/tag.ts:47](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L47)

In-band messages when the target could not be tagged (`failure` only), shaped per the request's `errorformat`.

***

### html?

> `optional` **html?**: `string`

Defined in: [core/tag.ts:65](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L65)

Parsed message HTML (`html`).

***

### info?

> `optional` **info?**: `string`

Defined in: [core/tag.ts:59](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L59)

Message text under the default (`bc`) `errorformat`.

***

### key?

> `optional` **key?**: `string`

Defined in: [core/tag.ts:68](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L68)

i18n message key (`raw`).

***

### logid?

> `optional` **logid?**: `number`

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

Log id the tags were applied to.

***

### noop?

> `optional` **noop?**: `true`

Defined in: [core/tag.ts:35](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L35)

The tag set already matched — no log entry was created. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

***

### params?

> `optional` **params?**: [`ApiMessageParam`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMessageParam.md)\[]

Defined in: [core/tag.ts:71](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L71)

i18n message parameters (`raw`).

***

### rcid?

> `optional` **rcid?**: `number`

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

Recent-change id the tags were applied to.

***

### removed?

> `optional` **removed?**: `string`\[]

Defined in: [core/tag.ts:44](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L44)

Tags removed from this target.

***

### revid?

> `optional` **revid?**: `number`

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

Revision id the tags were applied to.

***

### status

> **status**: `string` & `object` | `"error"` | `"success"` | `"failure"` | `"skipped"`

Defined in: [core/tag.ts:32](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L32)

Per-target outcome: `success`, `failure`, `skipped` (rate throttle) or
`error` (invalid target id, or the performer is blocked from the target
page). Open union for forward compat.

***

### text?

> `optional` **text?**: `string`

Defined in: [core/tag.ts:62](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/tag.ts#L62)

Rendered message text (`plaintext`/`wikitext`).
