"To access the API, I think there would need to be some Lua module acting as a wrapper, and I think it also would need runtime support in the Scribunto implementation to make it use FakeRequest; after all such Lua "API calls" should not actually go over the network. In this wrapper and/or runtime it should be relatively simple to make accessible only a safe (in terms of execution time and other considerations) subset of the API. I would think that simple page-related queries such as the one that would be needed here would be part of that subset." -Lupo
Our conversation was triggered by the removal (T63268) of the ability to access the HTML of [[Special:PrefixIndex]].
Use cases:
- Iterating over subpages to more efficiently find out which translations exist
- ...