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

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

Framework identity fields present on every `query.pages` entry, regardless
of which `prop=` modules were requested.

## Extended by

- [`ApiPage`](https://types-mediawiki-response.pages.dev/api/core/ApiPage.md)
- [`ApiPurgeEntry`](https://types-mediawiki-response.pages.dev/api/core/ApiPurgeEntry.md)
- [`ApiImageRotateEntry`](https://types-mediawiki-response.pages.dev/api/core/ApiImageRotateEntry.md)

## Properties

### invalid?

> `optional` **invalid?**: `true`

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

`true` when the supplied title is not a valid title.

***

### invalidreason?

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

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

Why the title is `invalid`: a plain string under the default (`bc`)
`errorformat`, an [ApiMessage](https://types-mediawiki-response.pages.dev/api/core/ApiMessage.md) under a modern one.

***

### known?

> `optional` **known?**: `true`

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

`true` when the page does not exist but its content is known (e.g. a
defined but unsaved interface message). Emitted by the framework itself,
without requesting `prop=info`.

***

### missing?

> `optional` **missing?**: `true`

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

`true` when the page does not exist.

***

### ns?

> `optional` **ns?**: `number`

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

Namespace index.

***

### pageid?

> `optional` **pageid?**: `number`

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

Page id. Absent when the id is unknown: a missing page requested by page
id keeps its `pageid` alongside `missing`, while title-supplied
missing/invalid pages and special pages carry no `pageid`.

***

### special?

> `optional` **special?**: `true`

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

`true` for pages in a special namespace.

***

### title?

> `optional` **title?**: `string`

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

Full, normalized page title.
