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=ask
(main | ask)
- This module requires read rights.
- Source: Semantic MediaWiki
- License: GPL-2.0-or-later
API module to query Semantic MediaWiki using the ask language.
Specific parameters:
Other general parameters are available.
- query
The query string in ask-language
- This parameter is required.
- 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
Examples:
- Example showing how to query pages with a Modification date and sort results by Modification date in descending order.
- api.php?action=ask&query=[[Modification%20date::%2B]]|%3FModification%20date|sort%3DModification%20date|order%3Ddesc [open in sandbox]
- Example showing how to limit results to 5 pages with a Modification date and use an offset of 1.
- api.php?action=ask&query=[[Modification%20date::%2B]]|limit%3D5|offset%3D1 [open in sandbox]