Removed unneeded api call from api.