Giter VIP home page Giter VIP logo

clearbit-leadscore's Introduction

LeadScore

This library calculates a 'lead score', a simple score which gives you some indication that an email address is either associated with an influential individual, or a high profile company.

This score is especially useful for sales and marketing. For example, you could calculate scores for all your inbound sales inquires and also for existing customers, providing a good signal for valuable leads.

Behind the scenes, this library uses Clearbit, a data API which returns information on email addresses and company domain names. That information is then used to calculate a (fairly rudimentary) score taking into account such things as how many Twitter followers the person has, or if how much the company has raised, how many employees it has, etc.

Scores are out of 1.0, where 1.0 is the highest and 0.0 the lowest (we didn't find any information).

Getting started

Firstly you'll need an Clearbit API key - register there and save your key. Clearbit provides 50 free lookups a month.

Then install the gem, clearbit-leadscore. A CLI is provided for simple email lookups.

gem install clearbit-leadscore

$ clearbit-leadscore
  Usage: clearbit-leadscore [options] email
      -k, --api-key                    Set API Key
      -h, --help                       Display this screen


clearbit-leadscore --api-key CLEARBIT_KEY [email protected]

There's also a Ruby API.

Clearbit::LeadScore.key = ENV['CLEARBIT_KEY']

result = Clearbit::LeadScore.lookup(email)

if result
  puts "Name: #{result.person.try(:name)}"
  puts "Company name: #{result.company.try(:name)}"

  if result.score > 0.5
    puts "Baller"
  end
else
  puts "Person or company not found"
end

Method: lookup(email, options)

As well as just passing an email, there are a number of additional options you can send to Clearbit::LeadScore.lookup, such as the weights that are used internally. You could also just use the information returned to calculate your own score.

The default options are:

{
  twitter_followers_weight:   0.05,
  angellist_followers_weight: 0.05,
  klout_score_weight:         0.05,
  company_twitter_followers_weight: 0.05,
  company_alexa_rank_weight:  0.000005,
  company_google_rank_weight: 0.05,
  company_employees_weight:   0.5,
  company_raised_weight:      0.0000005,
  company_score:              10,
  total_score:                1415
}

clearbit-leadscore's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.