MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

prop=contributors (pc)

(main | query | contributors)
  • This module requires read rights.
  • Source: MediaWiki
  • License: GPL-2.0+

Get the list of logged-in contributors and the count of anonymous contributors to a page.

Parameters:
pcgroup

Only include users in the given groups. Does not include implicit or auto-promoted groups like *, user, or autoconfirmed.

Values (separate with | or alternative): bot, sysop, bureaucrat, editor, reviewer, autoreview, TeamLeaders, ns000_edit_g, ns000_appr_g, ns000_admin_g, ns102_edit_g, ns102_appr_g, ns102_admin_g, ns122_edit_g, ns122_appr_g, ns122_admin_g, ns106_edit_g, ns106_appr_g, ns106_admin_g, ns112_read_g, ns112_edit_g, ns112_appr_g, ns112_admin_g, ns114_read_g, ns114_edit_g, ns114_appr_g, ns114_admin_g, ns120_read_g, ns120_edit_g, ns120_appr_g, ns120_admin_g, ns110_read_g, ns110_edit_g, ns110_appr_g, ns110_admin_g, ns108_read_g, ns108_edit_g, ns108_appr_g, ns108_admin_g, ns116_edit_g, ns116_appr_g, ns116_admin_g, translator
pcexcludegroup

Exclude users in the given groups. Does not include implicit or auto-promoted groups like *, user, or autoconfirmed.

Values (separate with | or alternative): bot, sysop, bureaucrat, editor, reviewer, autoreview, TeamLeaders, ns000_edit_g, ns000_appr_g, ns000_admin_g, ns102_edit_g, ns102_appr_g, ns102_admin_g, ns122_edit_g, ns122_appr_g, ns122_admin_g, ns106_edit_g, ns106_appr_g, ns106_admin_g, ns112_read_g, ns112_edit_g, ns112_appr_g, ns112_admin_g, ns114_read_g, ns114_edit_g, ns114_appr_g, ns114_admin_g, ns120_read_g, ns120_edit_g, ns120_appr_g, ns120_admin_g, ns110_read_g, ns110_edit_g, ns110_appr_g, ns110_admin_g, ns108_read_g, ns108_edit_g, ns108_appr_g, ns108_admin_g, ns116_edit_g, ns116_appr_g, ns116_admin_g, translator
pcrights

Only include users having the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.

Values (separate with | or alternative): apihighlimits, applychangetags, autoconfirmed, autocreateaccount, autopatrol, bigdelete, block, blockemail, bot, browsearchive, changetags, createaccount, createpage, createtalk, delete, deletechangetags, deletedhistory, deletedtext, deletelogentry, deleterevision, edit, editcontentmodel, editinterface, editprotected, editmyoptions, editmyprivateinfo, editmyusercss, editmyuserjs, editmywatchlist, editsemiprotected, editusercssjs, editusercss, edituserjs, hideuser, import, importupload, ipblock-exempt, managechangetags, markbotedits, mergehistory, minoredit, move, movefile, move-categorypages, move-rootuserpages, move-subpages, nominornewtalk, noratelimit, override-export-depth, pagelang, passwordreset, patrol, patrolmarks, protect, purge, read, reupload, reupload-own, reupload-shared, rollback, sendemail, siteadmin, suppressionlog, suppressredirect, suppressrevision, unblockself, undelete, unwatchedpages, upload, upload_by_url, userrights, userrights-interwiki, viewmyprivateinfo, viewmywatchlist, viewsuppressed, writeapi, usermerge, renameuser, replacetext, review, validate, autoreview, autoreviewrestore, unreviewedpages, movestable, stablesettings, translate, translate-import, translate-manage, translate-messagereview, translate-groupreview, pagetranslation
Maximum number of values is 50 (500 for bots).
pcexcluderights

Exclude users having the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.

Values (separate with | or alternative): apihighlimits, applychangetags, autoconfirmed, autocreateaccount, autopatrol, bigdelete, block, blockemail, bot, browsearchive, changetags, createaccount, createpage, createtalk, delete, deletechangetags, deletedhistory, deletedtext, deletelogentry, deleterevision, edit, editcontentmodel, editinterface, editprotected, editmyoptions, editmyprivateinfo, editmyusercss, editmyuserjs, editmywatchlist, editsemiprotected, editusercssjs, editusercss, edituserjs, hideuser, import, importupload, ipblock-exempt, managechangetags, markbotedits, mergehistory, minoredit, move, movefile, move-categorypages, move-rootuserpages, move-subpages, nominornewtalk, noratelimit, override-export-depth, pagelang, passwordreset, patrol, patrolmarks, protect, purge, read, reupload, reupload-own, reupload-shared, rollback, sendemail, siteadmin, suppressionlog, suppressredirect, suppressrevision, unblockself, undelete, unwatchedpages, upload, upload_by_url, userrights, userrights-interwiki, viewmyprivateinfo, viewmywatchlist, viewsuppressed, writeapi, usermerge, renameuser, replacetext, review, validate, autoreview, autoreviewrestore, unreviewedpages, movestable, stablesettings, translate, translate-import, translate-manage, translate-messagereview, translate-groupreview, pagetranslation
Maximum number of values is 50 (500 for bots).
pclimit

How many contributors to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
Default: 10
pccontinue

When more results are available, use this to continue.

Example:
Show contributors to the page Main Page.
api.php?action=query&prop=contributors&titles=Main_Page [open in sandbox]