Api call moved to php.