fix response data in api.php by broff