Jump to content

API:Properties

From mediawiki.org

GET request to list properties of selected pages.

API documentation

[edit]

Properties are data about a page, such as categories, or content on a page, such as images or links. To request a property, you pass the prop parameter of your query a valid property submodule, corresponding to the information that you need.

The page or pages whose data you are requesting are specified either by the titles, pageids, or revids parameters of the query, or via a generator .

Queries for properties are written like so: action=query&titles=title1&prop=property1|property2.

Property queries always have a limit on the number of items returned. To view more items, append the values inside the result's continue element to the original request.

Please see individual property API pages for more concrete examples of how to use properties: