Skip to main content
Rate this article:

Test document with code samples

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut a tempus metus, at convallis augue. Sed ultricies orci eu maximus faucibus. Vivamus faucibus, diam sit amet finibus venenatis, quam purus condimentum ex, eu vestibulum ante velit id nunc. Fusce accumsan, eros pellentesque dapibus mollis, justo diam ornare ante, id mollis nibh mauris in mi. Etiam viverra augue eu hendrerit tempus. Proin pretium turpis quis metus accumsan vestibulum.

To lookup both a company and person based on an email address:

curl 'https://person-stream.clearbit.com/v2/combined/find?email=alex@clearbit.com' \
        -u {key}:

 

response = Clearbit::Enrichment.find(email: 'alex@clearbit.com', stream: true)

if person = response.person
  puts person.name.fullName
end

if company = response.company
  puts company.name
end

 

 
var clearbit = require('clearbit')('{key}');

clearbit.Enrichment.find({email: 'alex@clearbit.com', stream: true})
  .then(function (response) {
    var person  = response.person;
    var company = response.company;

    console.log('Name: ', person && person.name.fullName);
  })
  .catch(function (err) {
    console.error(err);
  });

 

response = clearbit.Enrichment.find(email='alex@clearbit.com', stream=True)

if response['person'] is not None:
  print response['person']['name']['fullName']

if response['company'] is not None:
  print response['company']['name']

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut a tempus metus, at convallis augue. Sed ultricies orci eu maximus faucibus. Vivamus faucibus, diam sit amet finibus venenatis, quam purus condimentum ex, eu vestibulum ante velit id nunc. Fusce accumsan, eros pellentesque dapibus mollis, justo diam ornare ante, id mollis nibh mauris in mi. Etiam viverra augue eu hendrerit tempus. Proin pretium turpis quis metus accumsan vestibulum. Donec malesuada turpis id tortor pulvinar, quis dignissim nulla dignissim. Pellentesque purus tellus, consequat sit amet porttitor volutpat, tincidunt ut elit. 

Example from https://clearbit.com/docs?shell#oauth-create-an-access-token-query-params

 

Rate this article:
Logo of Verifone