Update API.php

Cleanup