0.03
Low commit activity in last 3 years
There's a lot of open issues
A long-lived project that still receives updates
EmailHunter is a minimalistic Ruby wrapper for the Hunter.io API. It provides a straightforward interface to integrate Hunter.io's email discovery capabilities into your sales and marketing workflows.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.1
~> 10.0
>= 0
>= 0

Runtime

>= 0
 Project Readme

EmailHunter

A lightweight Ruby wrapper around Hunter.io (formerly Email Hunter) API, providing direct access to email search, verification, and company insights.

Installation

Add this line to your application's Gemfile:

gem 'emailhunter'

Then execute:

$ bundle install

Or install it yourself with:

$ gem install emailhunter

Usage

require 'emailhunter'
email_hunter = EmailHunter.new('Your API Key')

Your API key can be generated in your Hunter dashboard.

Features

1. Domain Search API

Retrieve all email addresses associated with a given domain.

result = email_hunter.search('stripe.com')

Response Fields:

result.fetch(:meta)
result.fetch(:webmail)
result.fetch(:emails)
result.fetch(:pattern)
result.fetch(:domain)

2. Email Verification API

Check the deliverability of an email address.

result = email_hunter.verify('bonjour@firmapi.com')

Response Fields:

result.fetch(:result)
result.fetch(:score)
result.fetch(:regexp)
result.fetch(:gibberish)
result.fetch(:disposable)
result.fetch(:mx_records)
result.fetch(:smtp_server)
result.fetch(:smtp_check)
result.fetch(:accept_all)
result.fetch(:sources)
result.fetch(:meta)

3. Email Finder API

Guess the most likely email of a person using their first name, last name, and domain.

result = email_hunter.finder('gmail.com', 'Davide', 'Santangelo')

Response Fields:

result.fetch(:email)
result.fetch(:score)
result.fetch(:sources)
result.fetch(:domain)
result.fetch(:meta)

4. Count API

Retrieve the number of email addresses associated with a domain (FREE API call).

result = email_hunter.count('gmail.com')

Response Fields:

result.fetch(:data)
result.fetch(:meta)

5. Company Information API (New Feature)

Retrieve company details using a domain name.

result = email_hunter.company('stripe.com')

Response Fields:

result.fetch(:name)
result.fetch(:industry)
result.fetch(:employees)
result.fetch(:country)
result.fetch(:meta)

6. People Search API (New Feature)

Retrieve key individuals associated with a company based on a domain name.

result = email_hunter.people('stripe.com')

Response Fields:

result.fetch(:employees)
result.fetch(:position)
result.fetch(:email)
result.fetch(:meta)

7. Account Information API

Retrieve details about your Hunter account.

result = email_hunter.account

Response Example:

{
   "data": {
      "first_name": "Davide",
      "last_name": "Santangelo",
      "email": "davide.santangelo@gmail.com",
      "plan_name": "Free",
      "plan_level": 0,
      "reset_date": "2025-06-29",
      "team_id": 349,
      "calls": {
         "used": 4,
         "available": 50
      }
   }
}

License

The EmailHunter gem is released under the MIT License.

Contributing

  1. Fork it ( https://github.com/[your-github-username]/emailhunter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request