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 'https://discovery.clearbit.com/v1/companies/search' \
  -G --data-urlencode 'query=similar:salesforce.com' \
  -u {key}:

  {
    "total": 7,
    "results": [
      {
        "domain": "zoho.com"
      },
      {
        "domain": "pipedrive.com"
      },
      {
        "domain": "sugarcrm.com"
      },
      //
    ],
    "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(STDIN.read)

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

  # Find similar companies by domain
  similar_companies = Clearbit::Discovery.search(
    query: {similar: domain}
  )

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

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.


What is sales automation? 5 ways to boost revenue

Salesby Emily Pick on May 31, 2023

Sales automation can streamline the sales pipeline, from lead generation to closing a sale. Learn how it works and how it can benefit your sales process

11 cold prospecting email templates to improve response rate

Salesby Clearbit Team on February 23, 2023

Cold prospecting email templates are a powerful way to engage with prospects. Use these effective cold email templates to get your sales campaigns off to a great start.

The Standard in B2B Data

Now reinvented with Artificial Intelligence—Clearbit is the first AI Native Data Provider. Enrich your records, reveal buying intent, and connect with your ideal customers.

image-hero