Update api.php

Made it a little nicer to look at
Merge pull request #1 from ss23/patch-1

Update api.php