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

# Interface: ApiProtectedTitle

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

One protected title. `ptprop` controls which fields appear.

## Properties

### comment?

> `optional` **comment?**: `string`

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

Raw protection reason. `ptprop=comment`.

***

### expiry?

> `optional` **expiry?**: `string`

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

When the protection lapses, or `infinity`. `ptprop=expiry`.

***

### level?

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

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

Restriction level applied, e.g. `sysop`. `ptprop=level`.

***

### ns

> **ns**: `number`

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

Namespace index.

***

### parsedcomment?

> `optional` **parsedcomment?**: `string`

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

HTML-rendered protection reason. `ptprop=parsedcomment`.

***

### timestamp?

> `optional` **timestamp?**: `string`

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

When the protection was applied. `ptprop=timestamp`.

***

### title

> **title**: `string`

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

The protected (non-existent) title.

***

### user?

> `optional` **user?**: `string`

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

Name of the protecting user. `ptprop=user`.

***

### userid?

> `optional` **userid?**: `number`

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

Id of the protecting user. `ptprop=userid`; also emitted with
`ptprop=user` (B/C).
