mw wiki api
Releasev0.35.0 · cfeceb67
mw wiki api ACTION [flags]Call an Action API module using the selected wiki and saved login. Requests default to GET, even with fields. Use –method POST for form-encoded writes. API errors return a failing exit status. Each call returns one response; pass continuation parameters explicitly for additional pages. Discovery is optional; refresh public parameter metadata with api refresh for offline completions.
Commands
Section titled “Commands”- mw wiki api describe — Read cached Action module parameters (refresh explicitly to update)
- mw wiki api refresh — Refresh public Action API schemas and site capabilities
Options
Section titled “Options”Global options
Section titled “Global options”Examples
Section titled “Examples”mw wiki api query -f titles=Earth -f prop=infomw wiki api wbgetentities -f ids=Q42 --wiki www.wikidata.orgmw wiki api edit --method POST --token csrf -f title=Sandbox -f text=Example -f summary=TestSee also
Section titled “See also”Page views: —Sessions: —