MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples:

list=pageswithprop (pwp)

(main | query | pageswithprop)
  • This module requires read rights.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

List all pages using a given page property.

Specific parameters:
Other general parameters are available.

Page property for which to enumerate pages (action=query&list=pagepropnames returns page property names in use).

This parameter is required.

Which pieces of information to include:

Adds the page ID.
Adds the title and namespace ID of the page.
Adds the value of the page property.
Values (separate with | or alternative): ids, title, value
Default: ids|title

When more results are available, use this to continue. More detailed information on how to continue queries can be found on


The maximum number of pages to return.

Type: integer or max
The value must be between 1 and 500.
Default: 10

In which direction to sort.

One of the following values: ascending, descending
Default: ascending