> 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.

# Type Alias: ApiPageExisting

> **ApiPageExisting** = `Require`\<[`ApiPage`](https://types-mediawiki-response.pages.dev/api/core/ApiPage.md), `"pageid"` | `"ns"` | `"title"`>

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

A `query.pages` entry whose page exists. The framework resolves `pageid`,
`ns` and `title` for every existing entry, so they are required here instead
of optional as on the merged [ApiPage](https://types-mediawiki-response.pages.dev/api/core/ApiPage.md).

The other entry states do not carry all three, which is why the merged
[ApiPage](https://types-mediawiki-response.pages.dev/api/core/ApiPage.md) keeps them optional: a title-supplied `missing` entry has no
`pageid`; a page-id-supplied `missing` entry has neither `ns` nor `title`; an
`invalid` title has only `title`/`invalidreason`; a `special` entry has no
`pageid`. Narrow to this type only when the request cannot yield those states
— a `generator=` feed, or `pageids=` with known-good ids.
