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

Defined in: [core/parse.ts:98](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L98)

A table-of-contents entry (`prop=sections`) — the legacy projection of the
same outline `prop=tocdata` emits, with lowercase keys here (`fromtitle`,
`byteoffset`) against camelCase there (`fromTitle`, `codepointOffset`); see
[ApiParseTocSection](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseTocSection.md). `extensionData` appears only when non-empty.

## Properties

### anchor

> **anchor**: `string`

Defined in: [core/parse.ts:128](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L128)

Anchor name for links.

***

### byteoffset

> **byteoffset**: `number` | `null`

Defined in: [core/parse.ts:125](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L125)

Offset of the heading in the source, in **code points** despite the legacy
name; `null` for a heading that is not a "preprocessor section" (e.g. one
written as a literal `<h_>` tag).

***

### extensionData?

> `optional` **extensionData?**: `unknown`\[] | `Record`\<`string`, `unknown`>

Defined in: [core/parse.ts:138](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L138)

Extension-supplied data for this section; only when non-empty.

***

### fromtitle

> **fromtitle**: `string` | `false`

Defined in: [core/parse.ts:118](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L118)

Title the section came from; `false` when it has none — the legacy
serialization of a null title, where `prop=tocdata` omits the key instead.

***

### index

> **index**: `string`

Defined in: [core/parse.ts:112](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L112)

`edit` parameter value for this section.

***

### level

> **level**: `string`

Defined in: [core/parse.ts:103](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L103)

Heading level, as a string (`"1"` for `= … =`).

***

### line

> **line**: `string`

Defined in: [core/parse.ts:106](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L106)

Heading text (HTML).

***

### linkAnchor?

> `optional` **linkAnchor?**: `string`

Defined in: [core/parse.ts:135](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L135)

Anchor used by the section's own edit link.

#### Since

MediaWiki 1.40

***

### number

> **number**: `string`

Defined in: [core/parse.ts:109](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L109)

Section number in the outline, e.g. `1.1`.

***

### toclevel

> **toclevel**: `number`

Defined in: [core/parse.ts:100](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/parse.ts#L100)

Nesting level in the TOC.
