MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=askargs
(main | askargs)
- This module requires read rights.
- Source: Semantic MediaWiki
- License: GPL-2.0-or-later
API module to query Semantic MediaWiki using the ask language as list of conditions, printouts and parameters.
Specific parameters:
Other general parameters are available.
- conditions
The query conditions, i.e. the requirements for a subject to be included
- This parameter is required.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- printouts
The query printouts, i.e. the properties to show per subject
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- Default: (empty)
- parameters
The query parameters, i.e. all non-condition and non-printout arguments
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- Default: (empty)
- api_version
Output formatting:
- 2
- Backwards-compatible format using {} for the result list.
- 3
- Experimental format using [] as result list.
- One of the following values: 2, 3
- Default: 2
Example:
- Example showing how to query pages with a Modification date condition, include Modification date as a printout, and sort results by Modification date in descending order.
- api.php?action=askargs&conditions=Modification%20date::%2B&printouts=Modification%20date¶meters=|sort%3DModification%20date|order%3Ddesc [open in sandbox]