Update api.php

Fix for missing server