Update api.php

small fix