client detect api url