When to do an API for my web app?
danw: If you're using MVC or similar framework then adding an api is a simple case of adding some alternate views. Adding these is a handy way to check if you're keeping your code all neatly partitioned.