Update api.php

Had to change this to make it work.