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, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryResult.md.
  • 中文
  • Interface: ApiQueryResult

    Defined in: core/query/index.ts:531

    Accumulated shape of the query result object.

    Framework-level keys live here; per-module list/meta keys are merged in by their own files via declaration merging, keeping this open to extension.

    Properties

    abusefilters?

    optional abusefilters?: ApiAbuseFilter[]

    Defined in: extensions/abusefilters.ts:255

    Filters defined on the wiki (list=abusefilters).


    abuselog?

    optional abuselog?: ApiAbuseLogEntry[]

    Defined in: extensions/abusefilters.ts:258

    Events caught by one of the abuse filters (list=abuselog).


    additionalsearch?

    optional additionalsearch?: Record<string, ApiSearchInterwikiResult[]>

    Defined in: core/query/search.ts:166

    Interwiki hits the backend matched inline (enablerewrites=1), same shape as interwikisearch.


    additionalsearchinfo?

    optional additionalsearchinfo?: ApiSearchInterwikiInfo

    Defined in: core/query/search.ts:169

    Total-hit counter for additionalsearch.


    allcategories?

    optional allcategories?: ApiAllCategory[]

    Defined in: core/query/allcategories.ts:32

    Categories listed by list=allcategories.


    alldeletedrevisions?

    optional alldeletedrevisions?: ApiAllDeletedRevisions[]

    Defined in: core/query/alldeletedrevisions.ts:26

    Deleted revisions grouped by page (list=alldeletedrevisions).


    allfileusages?

    optional allfileusages?: ApiAllLink[]

    Defined in: core/query/allfileusages.ts:14

    Used file titles, one row per usage (list=allfileusages).


    allimages?

    optional allimages?: ApiAllImage[]

    Defined in: core/query/allimages.ts:27

    Uploaded files (list=allimages).


    optional alllinks?: ApiAllLink[]

    Defined in: core/query/alllinks.ts:36

    Titles linked to (list=alllinks), ordered by link target — title, or target id on the linktarget schema — then by source page id.


    allmessages?

    optional allmessages?: ApiAllMessage[]

    Defined in: core/query/allmessages.ts:49

    Interface messages (meta=allmessages).


    allpages?

    optional allpages?: ApiAllPage[]

    Defined in: core/query/allpages.ts:16

    Enumerated pages (list=allpages).


    allredirects?

    optional allredirects?: ApiAllLink[]

    Defined in: core/query/allredirects.ts:24

    Redirect targets on the wiki (list=allredirects).


    allrevisions?

    optional allrevisions?: ApiAllRevisions[]

    Defined in: core/query/allrevisions.ts:24

    Revisions grouped by page (list=allrevisions).


    alltransclusions?

    optional alltransclusions?: ApiAllLink[]

    Defined in: core/query/alltransclusions.ts:13

    Transcluded titles on the wiki (list=alltransclusions).


    allusers?

    optional allusers?: ApiAllusersEntry[]

    Defined in: core/query/allusers.ts:51

    Users listed by list=allusers.


    authmanagerinfo?

    optional authmanagerinfo?: ApiQueryAuthManagerInfo

    Defined in: core/query/authmanagerinfo.ts:126

    AuthManager provider introspection requested via meta=authmanagerinfo.


    autocreatetempuser?

    optional autocreatetempuser?: ApiAutoCreateTempUser

    Defined in: core/query/siteinfo.ts:1013

    Temporary-account creation config (siprop=autocreatetempuser).

    Since

    MediaWiki 1.41


    autopromote?

    optional autopromote?: ApiAutopromoteConditions

    Defined in: core/query/siteinfo.ts:999

    Autopromote conditions per group (siprop=autopromote).

    Since

    MediaWiki 1.42


    autopromoteonce?

    optional autopromoteonce?: ApiAutopromoteOnce

    Defined in: core/query/siteinfo.ts:1006

    Autopromote-once hooks and their conditions (siprop=autopromoteonce).

    Since

    MediaWiki 1.42


    babel?

    optional babel?: ApiBabelResult

    Defined in: extensions/babel.ts:33

    Babel levels of the user named in babuser (meta=babel).


    optional backlinks?: ApiBacklink[]

    Defined in: core/query/backlinks.ts:30

    Pages linking to bltitle (list=backlinks).


    badrevids?

    optional badrevids?: Record<string, ApiQueryBadRev>

    Defined in: core/query/index.ts:557

    Requested revids that do not exist, keyed by revision id. Emitted instead of a pages entry for that revision.


    betafeatures?

    optional betafeatures?: Record<string, ApiBetaFeature>

    Defined in: extensions/betafeatures.ts:41

    Beta features registered on this wiki, keyed by feature id (list=betafeatures). Absent when no features are registered.


    blocks?

    optional blocks?: ApiBlock[]

    Defined in: core/query/blocks.ts:125

    Active blocks (list=blocks).


    categorymembers?

    optional categorymembers?: ApiCategoryMember[]

    Defined in: core/query/categorymembers.ts:43

    Category members (list=categorymembers).


    checkuser?

    optional checkuser?: ApiQueryCheckUserResult

    Defined in: extensions/checkuser.ts:191

    Result of the requested curequest mode (list=checkuser).


    checkuserformattedblockinfo?

    optional checkuserformattedblockinfo?: ApiQueryCheckUserFormattedBlockInfoResult

    Defined in: extensions/checkuser.ts:197

    Block status of the requesting user (meta=checkuserformattedblockinfo).


    checkuserlog?

    optional checkuserlog?: ApiQueryCheckUserLogResult

    Defined in: extensions/checkuser.ts:194

    Entries from the CheckUser log (list=checkuserlog).


    clientlibraries?

    optional clientlibraries?: ApiSoftwareLibrary[]

    Defined in: core/query/siteinfo.ts:992

    Bundled client-side libraries (siprop=clientlibraries).

    Since

    MediaWiki 1.42


    codexicons?

    optional codexicons?: unknown[] | Record<string, ApiCodexIcon>

    Defined in: core/query/codexicons.ts:46

    Codex icon definitions, keyed by icon name (e.g. cdxIconInfo). list=codexicons&names=… (names is required). Simple icons are raw SVG markup strings; directionality/language-aware icons are definition objects.

    Since

    MediaWiki 1.44


    configuredpages?

    optional configuredpages?: ApiQueryConfiguredPages

    Defined in: extensions/flaggedrevs.ts:227

    Pages with custom review configuration (list=configuredpages).


    converted?

    optional converted?: ApiQueryTitlePair[]

    Defined in: core/query/index.ts:542

    Title conversions applied on a language-variant wiki when the request allowed them (converttitles), as { from, to } pairs.


    copyuploaddomains?

    optional copyuploaddomains?: string[]

    Defined in: core/query/siteinfo.ts:914

    Domains copy-uploads may fetch from ($wgCopyUploadsDomains, plus the on-wiki allowlist page since 1.46). siprop=copyuploaddomains.

    Since

    MediaWiki 1.45


    crosssiteajaxdomains?

    optional crosssiteajaxdomains?: string[]

    Defined in: core/query/siteinfo.ts:897

    Domains allowed to send authenticated CORS requests, from $wgCrossSiteAJAXdomains; always a JSON array (empty when unconfigured). siprop=crosssiteajaxdomains.

    Since

    MediaWiki 1.47


    dbrepllag?

    optional dbrepllag?: ApiDbReplLag[]

    Defined in: core/query/siteinfo.ts:973

    Database replica lag (siprop=dbrepllag).


    defaultoptions?

    optional defaultoptions?: Record<string, string | number | boolean | undefined>

    Defined in: core/query/siteinfo.ts:1016

    Default user options, keyed by option name (siprop=defaultoptions).


    deletedrevs?

    optional deletedrevs?: ApiDeletedRevs[]

    Defined in: core/query/deletedrevs.ts:94

    Deleted revisions grouped per page (list=deletedrevs).

    Deprecated

    since MediaWiki 1.25; prefer ApiQueryResult.alldeletedrevisions.


    doubleunderscores?

    optional doubleunderscores?: string[]

    Defined in: core/query/siteinfo.ts:922

    Behavior-switch magic words (the __NOTOC__ set). siprop=doubleunderscores.

    Since

    MediaWiki 1.46


    echoarticlereminder?

    optional echoarticlereminder?: ApiQueryEchoArticleReminder

    Defined in: extensions/echo.ts:401

    Reply to action=echoarticlereminder, returned under query.


    echomarkread?

    optional echomarkread?: ApiQueryEchoMarkRead

    Defined in: extensions/echo.ts:395

    Reply to action=echomarkread, returned under query.


    echomarkseen?

    optional echomarkseen?: ApiQueryEchoMarkSeen

    Defined in: extensions/echo.ts:398

    Reply to action=echomarkseen, returned under query.


    embeddedin?

    optional embeddedin?: ApiEmbeddedIn[]

    Defined in: core/query/embeddedin.ts:23

    Pages embedding eititle (list=embeddedin).


    entityusage?

    optional entityusage?: ApiEntityUsageRow[]

    Defined in: extensions/wikibase.ts:119

    list=wblistentityusage: pages using the requested entities.


    export?

    optional export?: string

    Defined in: core/query/index.ts:566

    XML dump of the returned pages (export=1).


    extensions?

    optional extensions?: ApiSiteExtension[]

    Defined in: core/query/siteinfo.ts:949

    Installed extensions and skins with credits (siprop=extensions).


    extensiontags?

    optional extensiontags?: string[]

    Defined in: core/query/siteinfo.ts:958

    Parser extension tags such as <gallery> (siprop=extensiontags).


    exturlusage?

    optional exturlusage?: ApiExtUrlUsage[]

    Defined in: core/query/exturlusage.ts:33

    Pages using the URL given to euquery (list=exturlusage).


    filearchive?

    optional filearchive?: ApiFileArchiveEntry[]

    Defined in: core/query/filearchive.ts:106

    Deleted/overwritten files (list=filearchive).


    fileextensions?

    optional fileextensions?: ApiFileExtension[]

    Defined in: core/query/siteinfo.ts:946

    Uploadable file extensions (siprop=fileextensions).


    functionhooks?

    optional functionhooks?: string[]

    Defined in: core/query/siteinfo.ts:961

    Parser function names (siprop=functionhooks).


    gadgetcategories?

    optional gadgetcategories?: ApiGadgetCategory[]

    Defined in: extensions/gadgets.ts:181

    Gadget categories (list=gadgetcategories).


    gadgets?

    optional gadgets?: ApiGadget[]

    Defined in: extensions/gadgets.ts:178

    Gadgets used on this wiki (list=gadgets).


    general?

    optional general?: ApiSiteGeneral

    Defined in: core/query/siteinfo.ts:882

    General site configuration (meta=siteinfo, siprop=general).


    globalallusers?

    optional globalallusers?: ApiGlobalCentralUser[]

    Defined in: extensions/centralauth.ts:378

    All global accounts of the farm, name-ordered (list=globalallusers).


    globalblocks?

    optional globalblocks?: ApiGlobalBlock[]

    Defined in: extensions/globalblocks.ts:185

    Farm-wide blocks of IPs, ranges or usernames (list=globalblocks).


    globalgroups?

    optional globalgroups?: ApiGlobalGroup[]

    Defined in: extensions/centralauth.ts:381

    Global groups defined on the farm (list=globalgroups).


    globalpreferences?

    optional globalpreferences?: ApiGlobalPreferencesResult

    Defined in: extensions/globalpreferences.ts:70

    The user's farm-wide preferences and their per-wiki overrides (meta=globalpreferences).


    globaluserinfo?

    optional globaluserinfo?: ApiGlobalUserInfo

    Defined in: extensions/globaluserinfo.ts:123

    Global account of the queried user (meta=globaluserinfo).


    globalusers?

    optional globalusers?: ApiGlobalUserRow[]

    Defined in: extensions/centralauth.ts:387

    Per-name/per-id global account lookup (list=globalusers).

    Since

    MediaWiki 1.47


    imageusage?

    optional imageusage?: ApiImageUsage[]

    Defined in: core/query/imageusage.ts:32

    Pages using the file given to iutitle (list=imageusage).


    interwiki?

    optional interwiki?: ApiQueryInterwikiTitle[]

    Defined in: core/query/index.ts:548

    Titles that resolved to an interwiki prefix; the framework does not process them further.


    interwikimap?

    optional interwikimap?: ApiInterwikiMapEntry[]

    Defined in: core/query/siteinfo.ts:976

    Interwiki prefixes and their URL templates (siprop=interwikimap).


    interwikisearch?

    optional interwikisearch?: Record<string, ApiSearchInterwikiResult[]>

    Defined in: core/query/search.ts:157

    Interwiki search hits keyed by interwiki prefix (srinterwiki=1).


    interwikisearchinfo?

    optional interwikisearchinfo?: ApiSearchInterwikiInfo

    Defined in: core/query/search.ts:160

    Total-hit counter for interwikisearch.


    optional iwbacklinks?: ApiIwbacklink[]

    Defined in: core/query/iwbacklinks.ts:25

    Pages linking to iwblprefix:iwbltitle (list=iwbacklinks).


    optional langbacklinks?: ApiLangbacklink[]

    Defined in: core/query/langbacklinks.ts:25

    Pages linking to lbllang:lbltitle (list=langbacklinks).


    languageinfo?

    optional languageinfo?: Record<string, ApiLanguageInfo>

    Defined in: core/query/languageinfo.ts:82

    Language information keyed by language code (meta=languageinfo).


    languages?

    optional languages?: ApiSiteLanguage[]

    Defined in: core/query/siteinfo.ts:979

    Known language codes (siprop=languages).


    languagestats?

    optional languagestats?: ApiLanguageStatsRow[]

    Defined in: extensions/translate.ts:626

    Per-group completeness of one language (meta=languagestats).


    languagevariants?

    optional languagevariants?: Record<string, Record<string, ApiLanguageVariant | undefined> | undefined>

    Defined in: core/query/siteinfo.ts:982

    Variant fallbacks, keyed by language then variant (siprop=languagevariants).


    libraries?

    optional libraries?: ApiSoftwareLibrary[]

    Defined in: core/query/siteinfo.ts:985

    Composer packages (siprop=libraries).


    linterrors?

    optional linterrors?: ApiLintError[]

    Defined in: extensions/linter.ts:86

    Lint error rows matching the requested categories (list=linterrors).


    linterstats?

    optional linterstats?: ApiQueryLinterStats

    Defined in: extensions/linter.ts:89

    Lint-error statistics for this wiki (meta=linterstats).


    logevents?

    optional logevents?: ApiLogEvent[]

    Defined in: core/query/logevents.ts:90

    Log events (list=logevents).


    magicwords?

    optional magicwords?: ApiMagicWord[]

    Defined in: core/query/siteinfo.ts:967

    Magic words and their aliases (siprop=magicwords).


    messagecollection?

    optional messagecollection?: ApiMessageCollectionRow[]

    Defined in: extensions/translate.ts:638

    Messages of one group and language (list=messagecollection).


    messagegroups?

    optional messagegroups?: ApiTranslateMessageGroup[]

    Defined in: extensions/translate.ts:620

    Message groups of this wiki (meta=messagegroups).


    messagegroupstats?

    optional messagegroupstats?: ApiMessageGroupStatsRow[]

    Defined in: extensions/translate.ts:623

    Per-language completeness of one group (meta=messagegroupstats).


    messagetranslations?

    optional messagetranslations?: ApiMessageTranslation[]

    Defined in: extensions/translate.ts:629

    Existing translations of one message (meta=messagetranslations).


    metadata?

    optional metadata?: ApiMessageCollectionMetadata

    Defined in: extensions/translate.ts:635

    Workflow/report metadata of the message collection slice (list=messagecollection).


    mostviewed?

    optional mostviewed?: ApiMostViewedPage[]

    Defined in: extensions/pageviews.ts:62

    list=mostviewed: the site's most-viewed pages.


    mystashedfiles?

    optional mystashedfiles?: ApiStashedFile[]

    Defined in: core/query/mystashedfiles.ts:46

    Files the caller has stashed but not published (list=mystashedfiles).


    namespacealiases?

    optional namespacealiases?: ApiNamespaceAlias[]

    Defined in: core/query/siteinfo.ts:940

    Localized namespace aliases (siprop=namespacealiases).


    namespaces?

    optional namespaces?: ApiNamespaces

    Defined in: core/query/siteinfo.ts:925

    Namespace definitions (meta=siteinfo, siprop=namespaces).


    normalized?

    optional normalized?: ApiQueryNormalized[]

    Defined in: core/query/index.ts:533

    Title normalizations applied to the request.


    notifications?

    optional notifications?: ApiQueryEchoNotifications

    Defined in: extensions/echo.ts:389

    Notifications waiting for the user, with unread counts (meta=notifications).


    oath?

    optional oath?: ApiOATHStatus

    Defined in: extensions/oathauth.ts:102

    Whether OATH two-factor authentication is enabled for the queried user (meta=oath).

    Deprecated

    since MediaWiki 1.46; the reported TOTP status has no replacement in the new API.


    oldreviewedpages?

    optional oldreviewedpages?: ApiQueryOldReviewedPages

    Defined in: extensions/flaggedrevs.ts:224

    Pages with changes pending review (list=oldreviewedpages).


    pageids?

    optional pageids?: string[]

    Defined in: core/query/index.ts:563

    Page ids of the returned pages (indexpageids=1). JSON map keys are strings, so ids are strings here even under formatversion=2.


    pagepropnames?

    optional pagepropnames?: ApiPagePropName[]

    Defined in: core/query/pagepropnames.ts:18

    Distinct page property names (list=pagepropnames).


    pages?

    optional pages?: ApiPage[]

    Defined in: core/query/index.ts:536

    Page entries, present for title/pageid/generator-based queries.


    pageswithprop?

    optional pageswithprop?: ApiPagesWithProp[]

    Defined in: core/query/pageswithprop.ts:31

    Pages defining pwppropname (list=pageswithprop).


    prefixsearch?

    optional prefixsearch?: ApiPrefixSearchResult[]

    Defined in: core/query/prefixsearch.ts:30

    Prefix-search results (list=prefixsearch).


    protectedtitles?

    optional protectedtitles?: ApiProtectedTitle[]

    Defined in: core/query/protectedtitles.ts:52

    Titles protected against creation (list=protectedtitles).


    protocols?

    optional protocols?: string[]

    Defined in: core/query/siteinfo.ts:952

    Recognised URL protocols (siprop=protocols).


    querypage?

    optional querypage?: ApiQueryPage

    Defined in: core/query/querypage.ts:69

    The requested special-page report (list=querypage).


    random?

    optional random?: ApiRandomPage[]

    Defined in: core/query/random.ts:33

    Randomly selected pages (list=random).


    readinglistentries?

    optional readinglistentries?: ApiReadingListEntry[]

    Defined in: extensions/readinglists.ts:247

    Pages saved in the requested list(s). list=readinglistentries (or generator=readinglistentries, where the entries feed pages and this array comes back empty).


    readinglists?

    optional readinglists?: ApiReadingListItem[]

    Defined in: extensions/readinglists.ts:233

    The current user's reading lists. meta=readinglists.


    readinglists-synctimestamp?

    optional readinglists-synctimestamp?: string

    Defined in: extensions/readinglists.ts:240

    A sync watermark: querying with this timestamp as changedsince guarantees no intervening change is skipped. Sibling of readinglists, meta=readinglists; omitted on continuation requests.


    recentchanges?

    optional recentchanges?: ApiRecentChange[]

    Defined in: core/query/recentchanges.ts:129

    Recent changes (list=recentchanges).


    redirects?

    optional redirects?: ApiQueryResolvedRedirect[]

    Defined in: core/query/index.ts:551

    Redirects resolved when the request set redirects=1.


    repos?

    optional repos?: ApiFileRepoInfo[]

    Defined in: core/query/filerepoinfo.ts:65

    File repositories (meta=filerepoinfo).


    restrictions?

    optional restrictions?: ApiSiteRestrictions

    Defined in: core/query/siteinfo.ts:934

    Protection types and levels (siprop=restrictions).


    rightsinfo?

    optional rightsinfo?: ApiRightsInfo

    Defined in: core/query/siteinfo.ts:937

    Where the site points for its content-rights statement (siprop=rightsinfo).


    sbom?

    optional sbom?: ApiSbom

    Defined in: core/query/siteinfo.ts:906

    Software Bill of Materials in CycloneDX 1.6 form. siprop=sbom; requires a named (logged-in, non-temporary) account, so anonymous requests error out.

    Since

    MediaWiki 1.46


    optional search?: ApiSearchHit[]

    Defined in: core/query/search.ts:145

    Search results (list=search).


    searchinfo?

    optional searchinfo?: ApiSearchInfo

    Defined in: core/query/search.ts:152

    Search summary metadata. Emitted by list=search, or by generator=search when the request passes gsrinfo — the generator form defaults to no searchinfo at all.


    showhooks?

    optional showhooks?: ApiShowHook[]

    Defined in: core/query/siteinfo.ts:970

    Subscriber list per hook (siprop=showhooks).


    siteviews?

    optional siteviews?: ApiViewCounts

    Defined in: extensions/pageviews.ts:59

    meta=siteviews: per-day view counts for the whole site.


    skins?

    optional skins?: ApiSiteSkin[]

    Defined in: core/query/siteinfo.ts:955

    Installed skins (siprop=skins).


    specialpagealiases?

    optional specialpagealiases?: ApiSpecialPageAlias[]

    Defined in: core/query/siteinfo.ts:943

    Localized special-page aliases (siprop=specialpagealiases).


    stashimageinfo?

    optional stashimageinfo?: ApiStashImageInfo[]

    Defined in: core/query/stashimageinfo.ts:122

    Stashed files named by siifilekey (prop=stashimageinfo).


    statistics?

    optional statistics?: ApiSiteStatistics

    Defined in: core/query/siteinfo.ts:928

    Site counters (siprop=statistics).


    tags?

    optional tags?: ApiTag[]

    Defined in: core/query/tags.ts:42

    Change-tag definitions (list=tags).


    tokens?

    optional tokens?: ApiQueryTokens

    Defined in: core/query/tokens.ts:41

    Tokens requested via meta=tokens.


    trackingcategories?

    optional trackingcategories?: ApiTrackingCategory[]

    Defined in: core/query/trackingcategories.ts:25

    Tracking categories listed by list=trackingcategories. Entries share the list=allcategories shape plus catid; size/hidden only with the matching tcprop values.

    Since

    MediaWiki 1.45


    unreadnotificationpages?

    optional unreadnotificationpages?: ApiQueryEchoUnreadPages

    Defined in: extensions/echo.ts:392

    Unread-notification pages grouped per wiki (meta=unreadnotificationpages).


    unreviewedpages?

    optional unreviewedpages?: ApiQueryUnreviewedPages

    Defined in: extensions/flaggedrevs.ts:221

    Pages not reviewed to the requested quality level (list=unreviewedpages).


    uploaddialog?

    optional uploaddialog?: unknown[] | ApiUploadDialog

    Defined in: core/query/siteinfo.ts:888

    Upload-dialog config (siprop=uploaddialog), mirroring $wgUploadDialog verbatim; an empty configuration serializes as [].


    usercontribs?

    optional usercontribs?: ApiUserContrib[]

    Defined in: core/query/usercontribs.ts:85

    A user's contributions (list=usercontribs).


    usergroups?

    optional usergroups?: ApiUserGroup[]

    Defined in: core/query/siteinfo.ts:931

    User groups and their rights (siprop=usergroups).


    userinfo?

    optional userinfo?: ApiUserInfo

    Defined in: core/query/userinfo.ts:156

    The current effective user (meta=userinfo).


    users?

    optional users?: ApiUser[]

    Defined in: core/query/users.ts:206

    User records (list=users).


    variables?

    optional variables?: string[]

    Defined in: core/query/siteinfo.ts:964

    Parser variable ids (siprop=variables).


    watchlist?

    optional watchlist?: ApiWatchlistEntry[]

    Defined in: core/query/watchlist.ts:141

    Watchlist changes (list=watchlist).


    wikibase?

    optional wikibase?: ApiWikibaseInfo

    Defined in: extensions/wikibase.ts:116

    meta=wikibase: info about the associated repo.


    wikisets?

    optional wikisets?: ApiWikiSet[]

    Defined in: extensions/centralauth.ts:390

    Wiki sets defined on the farm (list=wikisets).