Update api.php

Recent fixes to name and server