I'm looking for a way to query the linux man pages through an API, the closest I've found is http://linux.die.net/man, however there the commands are split into 8 sections, e.g. gcc is in section 1: http://linux.die.net/man/1/gcc, and as it's not actually an API so you get a full html page (sidebar and ads included) in return.
Before I plough on and try to make one, does something like this already exist?