Finding similar customers

Finding similar customers

September 18, 2015

An effective way of sourcing new leads for your business is by looking for companies that are similar to your existing customers. Similar both in terms of size, but also market--essentially going after your customer's competitors.

Clearbit's Discovery API can help you find these leads programatically using our clustering algorithms to search for similar companies. Our most successful outbound campaign to date has been powered by a similar lead list.

For example, to display companies similar to Salesforce (i.e. alternate CRMs):

curl '' \
  -G --data-urlencode '' \
  -u {key}:

    "total": 7,
    "results": [
        "domain": ""
        "domain": ""
        "domain": ""
    "page": 0

Let's say you have a list of your existing customer's domains--perhaps extracted from their email addresses. Let's iterate over this list and search Clearbit for similar companies. Here we're using Ruby but we also support Python, Node or plain REST.

# similar_companies.rb

require 'clearbit'

# Read CSV list in
rows = CSV.parse(

rows.each do |row|
  domain = row[0]

  # Find similar companies by domain
  similar_companies =
    query: {similar: domain}

  # Output the results
  similar_companies.each do |company|
    puts CSV.generate_line([domain, company.domain])

Then to run simply pipe your list of domains through the script, directing the output to another CSV.

cat domains.csv | ruby similar_companies.rb > similar_domains.csv

That's all there is to it! You now have a look-alike list of companies similar to your customers who are all excellent sales targets. Our trial Discovery plan lets you pull 200 companies for free - you can sign up here.

The 4 rules for sending cold email that converts

Salesby Guillaume Cabane on January 01, 2021

Guest post by Guillaume Cabane, ex-VP of Growth at Drift [] and co-founder of HyperGrowth Partners [] The days of “spray and pray” email are over. Just consider these statistics: The average cold email response rate is 1%, which means for every 100 people you email, you’re getting through to one person (and probably bothering the other 99). Meanwhile, the average success rate of an email phishing attack is 0.1%, which really isn’t that much

Automate data-driven alerts for B2B sales and success

Salesby Bradley Gula on June 03, 2020

Instead of reviewing accounts one-by-one, what if reps could get a heads-up about key intent signals throughout the buying and customer journeys? And what if they knew who's most important to contact, when, and why?

Join our newsletter

Engaging stories and exclusive data, designed for our best customers. One useful issue each month.