detect api support