First off, I would highly recommend learning Java first. After you master the simple basics of Java, you can then start messing around with API's.
Learn basic html for websites to get started. After that, you can take a look at other languages like PHP, C++, etc.