Pages for logged out editors learn more
Probably the place to start is with the mediawiki api...
https://rosettacode.org/mw/api.php