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.

B2B sales funnels: Why your website is a gold mine for sales

Salesby Clearbit Team on September 26, 2022

In everyday life as in sales, knowledge is power. If your reps aren’t leveraging every bit of intent data-driven knowledge at their disposal, they are leaving money on the table. Here's how intent data from your B2B website empowers sales.

How to use intent data to personalize B2B sales

Salesby Clearbit Team on September 22, 2022

If sales and marketing burn up too much money chasing low-quality leads, growth becomes impossible. How do you keep customer acquisition costs down? Instead of always chasing new, variable-quality leads for variable results, do more with what you already have by leveraging intent data.

Join our newsletter

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