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

# Type Alias: ApiSearchHit

> **ApiSearchHit** = [`ApiSearchResult`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchResult.md) & `object`

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

A `list=search` hit. The module writes `ns`, `title` and `pageid` for every
hit, before any `srprop` value is considered, so they are required here —
unlike [ApiSearchResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchResult.md), which stays all-optional because
`generator=search` merges the same shape into [ApiPage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md) entries.

## Type Declaration

### ns

> **ns**: [`NamespaceIndex`](https://types-mediawiki-response.pages.dev/zh/api/core/NamespaceIndex.md)

Namespace index.

### pageid

> **pageid**: `number`

Page id.

### title

> **title**: `string`

Full page title.
