Here is the information page on the Wolfram Alpha APIs. I think you will find many of your answers there.