Interface: ApiPage
Defined in: core/query/index.ts:404
A query.pages entry carrying the union of all covered prop= fields.
prop= modules widen this via declaration merging (see ./info); every
field is optional because pages may be missing/invalid and because a response
only contains the props that were requested.
For a view scoped to the props you actually requested, use QueryPage.
Extends
Properties
actions?
optionalactions?:unknown[] |Record<string,boolean|ApiActionPermission[]>
Defined in: core/query/info.ts:142
Per-action permission test results, keyed by action name. Set by
intestactions=: intestactionsdetail=boolean yields a boolean per
action, while full/quick yields the array of blocking messages
(empty when the action is allowed). A PHP map, so an empty result
serializes as [].
Inherited from
anoncontributors?
optionalanoncontributors?:number
Defined in: core/query/contributors.ts:29
Number of anonymous (IP) contributors to the page (prop=contributors).
Inherited from
ApiPageContributors.anoncontributors
associatedpage?
optionalassociatedpage?:string
Defined in: core/query/info.ts:218
Related page: the talk page for a subject, or vice versa.
inprop=associatedpage; subject/talk namespaces only — not emitted on
special or Media: pages.
Inherited from
badfile?
optionalbadfile?:boolean
Defined in: core/query/imageinfo.ts:263
Whether the file is on the "bad images" list ($wgBadImageList).
iiprop=badfile — a real boolean, and a page-level sibling of
ApiPage.imageinfo, not a member of the imageinfo entry.
Inherited from
canonicalurl?
optionalcanonicalurl?:string
Defined in: core/query/info.ts:233
Canonical URL. inprop=url.
Inherited from
categories?
optionalcategories?:ApiCategory[]
Defined in: core/query/categories.ts:33
Categories the page belongs to (prop=categories).
categoryinfo?
optionalcategoryinfo?:ApiCategoryInfo
Defined in: core/query/categoryinfo.ts:29
Category membership counts (prop=categoryinfo).
categorysnippet?
optionalcategorysnippet?:string
Defined in: core/query/search.ts:56
Snippet of the matching category. srprop=categorysnippet.
Inherited from
ApiSearchResult.categorysnippet
contentmodel?
optionalcontentmodel?:ContentModel
Defined in: core/query/info.ts:67
Content model of the page's current revision.
Inherited from
contributors?
optionalcontributors?:ApiContributor[]
Defined in: core/query/contributors.ts:26
Distinct logged-in contributors to the page (prop=contributors).
Inherited from
ApiPageContributors.contributors
deletedrevisions?
optionaldeletedrevisions?:ApiRevision[]
Defined in: core/query/deletedrevisions.ts:20
Deleted revisions of the page (prop=deletedrevisions).
description?
optionaldescription?:string
Defined in: extensions/description.ts:22
Short description of the page, in the wiki's content language (prop=description).
descriptionsource?
optionaldescriptionsource?:DescriptionSource
Defined in: extensions/description.ts:25
Which source supplied the description: local or an upstream repo.
displaytitle?
optionaldisplaytitle?:string
Defined in: core/query/info.ts:236
HTML title used for display. inprop=displaytitle.
Inherited from
duplicatefiles?
optionalduplicatefiles?:ApiDuplicateFile[]
Defined in: core/query/duplicatefiles.ts:32
Files whose content matches this one (prop=duplicatefiles).
editintro?
optionaleditintro?:Record<string,string>
Defined in: core/query/info.ts:205
Notices the edit form should show, keyed by message name (e.g.
newarticletext) with HTML values. Drawn from the whole edit-form intro
message set — newarticletext, talkpagetext, per-namespace editnotices,
Editintro pages, … — not only MediaWiki:Editintro* pages.
inprop=editintro; only for a single title per query.
Since
MediaWiki 1.41
Inherited from
editurl?
optionalediturl?:string
Defined in: core/query/info.ts:230
Edit-page URL. inprop=url.
Inherited from
extensiondata?
optionalextensiondata?:unknown
Defined in: core/query/search.ts:74
Search-backend extension data, keyed by augmentor name. srprop=extensiondata.
Inherited from
extlinks?
optionalextlinks?:ApiExternalLink[]
Defined in: core/query/extlinks.ts:17
External links on this page (prop=extlinks).
extract?
optionalextract?:string
Defined in: extensions/extracts.ts:25
Page excerpt, limited to the intro with exintro (prop=extracts).
fileusage?
optionalfileusage?:ApiFileUsage[]
Defined in: core/query/fileusage.ts:29
Local pages using this file (prop=fileusage).
flagged?
optionalflagged?:ApiPageFlagged
Defined in: extensions/flaggedrevs.ts:210
Review and stabilization state of the page (prop=flagged).
fullurl?
optionalfullurl?:string
Defined in: core/query/info.ts:227
Fully-resolved canonical article URL. inprop=url.
Inherited from
globalusage?
optionalglobalusage?:ApiGlobalUsage[]
Defined in: extensions/globalusage.ts:43
Wikis using this image, one entry per using page (prop=globalusage).
imageinfo?
optionalimageinfo?:ApiImageInfo[]
Defined in: core/query/imageinfo.ts:266
Image/file info entries (prop=imageinfo); usually one for the current file.
Inherited from
imagerepository?
optionalimagerepository?:string&object|"local"|"shared"
Defined in: core/query/imageinfo.ts:256
Where the file is hosted: the repository name, local for this wiki;
'' when the file does not exist. Framework field for file pages.
Inherited from
ApiPageImageInfo.imagerepository
images?
optionalimages?:ApiUsedImage[]
Defined in: core/query/images.ts:21
Files embedded by this page (prop=images).
index?
optionalindex?:number
Defined in: core/query/index.ts:411
1-based rank of the page in the generator's ordering; injected by the query
framework for generator=search and generator=prefixsearch, absent
otherwise. A page reached through a redirect takes the smaller of the two
ranks.
invalid?
optionalinvalid?:true
Defined in: core/query/index.ts:384
true when the supplied title is not a valid title.
Inherited from
invalidreason?
optionalinvalidreason?:string|ApiMessage
Defined in: core/query/index.ts:390
Why the title is invalid: a plain string under the default (bc)
errorformat, an ApiMessage under a modern one.
Inherited from
isfilematch?
optionalisfilematch?:boolean
Defined in: core/query/search.ts:71
Whether the hit matched a file. srprop=isfilematch; a real boolean.
Inherited from
iwlinks?
optionaliwlinks?:ApiInterwikiLink[]
Defined in: core/query/iwlinks.ts:23
Interwiki links on the page (prop=iwlinks).
known?
optionalknown?:true
Defined in: core/query/index.ts:381
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.
Inherited from
langlinks?
optionallanglinks?:ApiLangLink[]
Defined in: core/query/langlinks.ts:35
Interlanguage links from this page (prop=langlinks).
lastrevid?
optionallastrevid?:number
Defined in: core/query/info.ts:82
Revision id of the latest revision. Existing pages only.
Inherited from
length?
optionallength?:number
Defined in: core/query/info.ts:85
Length of the page content in bytes. Existing pages only.
Inherited from
linkclasses?
optionallinkclasses?:string[]
Defined in: core/query/info.ts:250
CSS classes to apply to links to this page (core marks redirects
mw-redirect; extensions may add more). inprop=linkclasses; emitted
for every requested page, [] when there is no class for it.
Inherited from
links?
optionallinks?:ApiPageLink[]
Defined in: core/query/links.ts:23
Pages linked-to by this page (prop=links).
linkshere?
optionallinkshere?:ApiLinksHere[]
Defined in: core/query/linkshere.ts:28
Pages linking to this page (prop=linkshere).
missing?
optionalmissing?:true
Defined in: core/query/index.ts:374
true when the page does not exist.
Inherited from
mmcontent?
optionalmmcontent?:ApiMmContent
Defined in: extensions/massmessage.ts:120
Parsed delivery list content (only on MassMessageListContent pages).
new?
optionalnew?:true
Defined in: core/query/info.ts:94
true when the page is in the new-pages list (no other page links to it and
it has a single revision). A Flag — absent for established pages.
Inherited from
notificationtimestamp?
optionalnotificationtimestamp?:string
Defined in: core/query/info.ts:158
When the requesting user last saw the page. An empty string when never
visited (or when notifications are off), otherwise a timestamp.
inprop=notificationtimestamp.
Inherited from
ApiPageInfo.notificationtimestamp
ns?
optionalns?:number
Defined in: core/query/index.ts:368
Namespace index.
Inherited from
original?
optionaloriginal?:ApiThumbnail
Defined in: extensions/pageimages.ts:40
Representative image at its own dimensions (piprop=original).
pageid?
optionalpageid?:number
Defined in: core/query/index.ts:365
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.
Inherited from
pageimage?
optionalpageimage?:string
Defined in: extensions/pageimages.ts:34
Name of the page's representative image (piprop=name).
pagelanguage?
optionalpagelanguage?:string
Defined in: core/query/info.ts:70
Page language code, e.g. en.
Inherited from
pagelanguagedir?
optionalpagelanguagedir?:"ltr"|"rtl"
Defined in: core/query/info.ts:76
Writing direction of the page language.
Inherited from
pagelanguagehtmlcode?
optionalpagelanguagehtmlcode?:string
Defined in: core/query/info.ts:73
HTML lang attribute value for the page language.
Inherited from
ApiPageInfo.pagelanguagehtmlcode
pageprops?
optionalpageprops?:ApiPageProps
Defined in: core/query/pageprops.ts:19
Page properties (prop=pageprops), keyed by property name.
pageviews?
optionalpageviews?:ApiViewCounts
Defined in: extensions/pageviews.ts:54
prop=pageviews (pvipdays, default 60): per-day view counts for this page.
preload?
optionalpreload?:string
Defined in: core/query/info.ts:176
Text pre-filled into the edit box for a missing page, from the
EditFormPreloadText hook. '' when the page exists.
inprop=preload.
Deprecated
since MediaWiki 1.41 in favour of preloadcontent, which also reports the content model and format.
Inherited from
preloadcontent?
optionalpreloadcontent?:ApiPreloadedContent
Defined in: core/query/info.ts:186
Content the edit form would preload: for a page that does not exist yet,
or for an existing page when a new section would be added
(preloadnewsection=1). inprop=preloadcontent; only for a single
title/revision per query.
Since
MediaWiki 1.41
Inherited from
preloadisdefault?
optionalpreloadisdefault?:boolean
Defined in: core/query/info.ts:194
Whether preloadcontent is identical to the page's default content, in
which case saving it would be a no-op. inprop=preloadcontent.
Since
MediaWiki 1.41
Inherited from
protection?
optionalprotection?:ApiPageProtection[]
Defined in: core/query/info.ts:208
Protection entries; empty array when unrestricted. inprop=protection.
Inherited from
readable?
optionalreadable?:boolean
Defined in: core/query/info.ts:166
Whether the current user may read the page. A real boolean (false included).
inprop=readable.
Deprecated
since MediaWiki 1.32; use intestactions=read instead.
Inherited from
redirect?
optionalredirect?:true
Defined in: core/query/info.ts:88
true when the page is a redirect. A Flag (appears only when true).
Inherited from
redirects?
optionalredirects?:ApiRedirect[]
Defined in: core/query/redirects.ts:30
Redirects pointing at this page (prop=redirects).
redirectsnippet?
optionalredirectsnippet?:string
Defined in: core/query/search.ts:68
HTML snippet of the redirect target title. srprop=redirectsnippet.
Inherited from
ApiSearchResult.redirectsnippet
redirecttitle?
optionalredirecttitle?:string
Defined in: core/query/search.ts:65
Title of the redirect target, if this hit redirects. srprop=redirecttitle.
Inherited from
restrictiontypes?
optionalrestrictiontypes?:string[]
Defined in: core/query/info.ts:211
Restriction types that apply, e.g. edit, move, create. inprop=protection.
Inherited from
revisions?
optionalrevisions?:ApiRevision[]
Defined in: core/query/revisions.ts:213
Revisions of the page (prop=revisions), newest first unless rvdir=newer.
sectionsnippet?
optionalsectionsnippet?:string
Defined in: core/query/search.ts:62
HTML snippet of the section heading. srprop=sectionsnippet.
Inherited from
ApiSearchResult.sectionsnippet
sectiontitle?
optionalsectiontitle?:string
Defined in: core/query/search.ts:59
Title of the section the match is in. srprop=sectiontitle.
Inherited from
size?
optionalsize?:number
Defined in: core/query/search.ts:41
Page size in bytes. srprop=size.
Inherited from
snippet?
optionalsnippet?:string
Defined in: core/query/search.ts:50
HTML snippet of the match, with highlights. srprop=snippet.
Inherited from
special?
optionalspecial?:true
Defined in: core/query/index.ts:393
true for pages in a special namespace.
Inherited from
subjectid?
optionalsubjectid?:number
Defined in: core/query/info.ts:224
Page id of the associated subject page. inprop=subjectid (talk pages only).
Inherited from
talkid?
optionaltalkid?:number
Defined in: core/query/info.ts:221
Page id of the associated talk page. inprop=talkid (subject pages only).
Inherited from
templates?
optionaltemplates?:ApiTemplate[]
Defined in: core/query/templates.ts:21
Pages transcluded by this page (prop=templates).
terms?
optionalterms?:ApiPageTerms
Defined in: extensions/wikibase.ts:108
prop=pageterms: terms of the entity linked to this page.
thumbnail?
optionalthumbnail?:ApiThumbnail
Defined in: extensions/pageimages.ts:37
Representative image, scaled to pithumbsize (piprop=thumbnail).
timestamp?
optionaltimestamp?:string
Defined in: core/query/search.ts:47
Last-edit timestamp. srprop=timestamp.
Inherited from
title?
optionaltitle?:string
Defined in: core/query/index.ts:371
Full, normalized page title.
Inherited from
titlesnippet?
optionaltitlesnippet?:string
Defined in: core/query/search.ts:53
HTML snippet of the title. srprop=titlesnippet.
Inherited from
touched?
optionaltouched?:string
Defined in: core/query/info.ts:79
When the page was last touched (cache/link invalidation), not last edited. Existing pages only.
Inherited from
transcludedin?
optionaltranscludedin?:ApiTranscludedIn[]
Defined in: core/query/transcludedin.ts:28
Pages transcluding this page (prop=transcludedin).
transcodestatus?
optionaltranscodestatus?:unknown[] |Record<string,ApiTranscodeState>
Defined in: extensions/timedmediahandler.ts:170
Per-transcode job states, keyed by transcode key; [] — an empty array,
not an empty object — when the file has no transcodes at all.
varianttitles?
optionalvarianttitles?:Record<string,string>
Defined in: core/query/info.ts:243
Display titles per language variant, keyed by variant code (e.g.
zh-hans). Also populated on wikis without language variants, where the
single key is the content language itself. inprop=varianttitles.
Inherited from
videoinfo?
optionalvideoinfo?:ApiVideoInfo[]
Defined in: extensions/timedmediahandler.ts:164
File info extended with video sources and subtitle tracks.
visitingwatchers?
optionalvisitingwatchers?:number
Defined in: core/query/info.ts:116
Number of watchers who have visited the page since their notification
timestamp. Same withholding rule as watchers.
inprop=visitingwatchers.
Inherited from
watched?
optionalwatched?:boolean
Defined in: core/query/info.ts:101
Whether the requesting user watches the page. A real boolean (false is
returned), unlike most watch markers. inprop=watched; requires being
logged in with the viewmywatchlist right.
Inherited from
watchers?
optionalwatchers?:number
Defined in: core/query/info.ts:109
Number of users watching the page. For callers without the unwatchedpages
right the count is withheld entirely while it stays below
$wgUnwatchedPageThreshold; 0 is only reported to callers with that
right. inprop=watchers.
Inherited from
watchlistexpiry?
optionalwatchlistexpiry?:string
Defined in: core/query/info.ts:123
When the requesting user's watch of this page expires. Requires
inprop=watched; present only when the page is watched with an
expiry (action=watch&expiry=).
Inherited from
watchlistlabels?
optionalwatchlistlabels?:ApiWatchlistLabel[]
Defined in: core/query/info.ts:133
Watchlist labels attached to this page by the requesting user.
inprop=watchlistlabels; requires being logged in with the
viewmywatchlist right (like watched) and
$wgEnableWatchlistLabels, and is [] when the page has none.
Since
MediaWiki 1.46
Inherited from
wbentityusage?
optionalwbentityusage?:ApiEntityUsageMap
Defined in: extensions/wikibase.ts:111
prop=wbentityusage: entities used by this page, keyed by entity id.
wordcount?
optionalwordcount?:number
Defined in: core/query/search.ts:44
Word count. srprop=wordcount.
Inherited from
wouldautocreate?
optionalwouldautocreate?:unknown[] |Record<string,boolean>
Defined in: core/query/info.ts:151
Whether a temporary account would be auto-created for each tested action.
intestactionsautocreate=1 alongside intestactions=. A PHP map, so an
empty result serializes as [].
Since
MediaWiki 1.41