There was a player a while back who wrote some scripts in Ruby that scraped his planet info, and did some routine maintenance stuff for him. I should make an API, I know there are several people who'd just love the ability to automate stuff. I think it would also be cool to allow other people to write games that could use the Galaxy as a backdrop (huge pipe dream that...)
I'm working on some greasemonkey scripts, so I can pull what I need straight out of the browser. Just simple stuff like checking that all planets above society level X have mind control, checking mind control is actually active etc. I could expand it to build stuff automatically at certain levels as well I guess, more of a time factor right now.