A tiny ruby wrapper around Email Hunter API. Direct access to all the web's email addresses.
Add this line to your application's Gemfile:
gem 'emailhunter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install emailhunter
require 'emailhunter'
email_hunter = EmailHunter.new('Your secret API key')
Your secret API key. You can generate it in your dashboard from https://emailhunter.co
Returns all the email addresses found using one given domain name, with our sources.
result = email_hunter.search('stripe.com')
result.status
result.results
result.webmail
result.emails
result.offset
Allows you to verify the deliverability of an email address.
email_hunter.verify('[email protected]')
result.status
result.email
result.score
result.regexp
result.gibberish
result.disposable
result.webmail
result.mx_records
result.smtp_server
result.smtp_check
result.accept_all
result.sources
This API call is deprecated, please use the email verification call instead.
This API endpoint allows you to check if a given email address has been found on the web. If it has been found, it returns all the sources with the dates of the last crawls.
email_hunter.exist('[email protected]')
result.status
result.email
result.exist
result.sources
Guesses the most likely email of a person from his first name, his last name and a domain name.
email_hunter.generate('gmail.com', 'Davide', 'Santangelo')
result.status
result.email
result.score
Returns the number of email addresses found for a domain. This is a FREE API call.
email_hunter.count('gmail.com')
result.status
result.count
The emailhunter GEM is released under the MIT License.
- Fork it ( https://github.com/[my-github-username]/emailhunter/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request