Feature summary (what you would like to be able to do and where):
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
The primary motivation here, as indicated above, is Pywikibot, but other API consumers could also benefit from this.
Benefits (why should this be implemented?):
Avoid workarounds like hardcoding configuration or screenscraping.