Socket
Book a DemoInstallSign in
Socket

emailhunter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emailhunter

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

EmailHunter

A lightweight Ruby wrapper around Hunter (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

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

FAQs

Package last updated on 28 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.