Skip to contents

This function retrieves an email address based on the provided company domain, company name, and person's first and last name using the Hunter.io API.

Usage

hunter_get_email_address(
  company_domain,
  company_name,
  first_name,
  last_name,
  api_key = get_hunterio_api_key()
)

Arguments

company_domain

Character string representing the company domain.

company_name

Character string representing the company name.

first_name

Character string representing the person's first name.

last_name

Character string representing the person's last name.

api_key

Hunter.io API key. If not provided, uses get_hunterio_api_key() to retrieve it.

Value

A list containing the following elements:

  • first_name: The first name of the person.

  • last_name: The last name of the person.

  • email: The retrieved email address.

  • score: The score of the email address.

  • domain: The company domain.

  • company: The company name.

  • phone_number: The phone number associated with the email address.

  • verification_date: The date of email verification.