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.
  • Font : Semantic MediaWiki
  • Licéncia : GPL-2.0-or-later

Mòdul API per consultar Semantic MediaWiki fent servir el llenguatge Ask.

Paramètres :
Other general parameters are available.
query

The query string in ask-language

Cal aquest paràmetre.
api_version

Format de sortida:

2
Compatibilitat enrere fent servir {} per a la llista de resultats.
3
Format experimental que utilitza [] per a la llista de resultats.
One of the following values: 2, 3
Per defecte: 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]