Skip to main content

How To: Phone Number Lookup

On demand searches against Hiya's database for a phone number's identity and reputation.

Lookup a phone number's identity and reputation by calling HiyaRepo.getCallerProfile(String, String) to get a CallerID object with identity and reputation details.

// Start blocking incoming fraud calls val hiyaRepo = HiyaService.getHiyaRepo(context) val phoneNumber = "5555555555" val userCountryHint = "US" val callerId: CallerId = hiyaRepo.getCallerProfile(phoneNumber, userCountryHint)