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

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

Page-level fields `prop=imageinfo` contributes to [ApiPage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md).
[ImageInfoPage](https://types-mediawiki-response.pages.dev/zh/api/core/ImageInfoPage.md) projects exactly this set.

## Extended by

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

## Properties

### badfile?

> `optional` **badfile?**: `boolean`

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

Whether the file is on the "bad images" list (`$wgBadImageList`).
`iiprop=badfile` — a real `boolean`, and a **page-level sibling** of
[ApiPage.imageinfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md#imageinfo), not a member of the imageinfo entry.

***

### imageinfo?

> `optional` **imageinfo?**: [`ApiImageInfo`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageInfo.md)\[]

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

Image/file info entries (`prop=imageinfo`); usually one for the current file.

***

### imagerepository?

> `optional` **imagerepository?**: `string` & `object` | `"local"` | `"shared"`

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

Where the file is hosted: the repository name, `local` for this wiki;
`''` when the file does not exist. Framework field for file pages.
