Search⌘ K
AI Features

Get Started

Explore the initial setup process for using Clearbit APIs by creating an account, obtaining and saving your API key. This lesson helps you get ready to programmatically access Clearbit data for contact management and risk evaluation.

We'll cover the following...

To use the Clearbit APIs, we need to first create an account on Clearbit and then access the API key via a specific API URL.

Get the API Key

We can sign-up for our free Clearbit account on their official page. Please follow the steps below to successfully sign-up:

  1. Enter your email address and password, then click the “Next” button.
  2. Fill in your primary details like full name, job title, phone number, company name, and size, then check the agreement box and click the “Agree and Continue” button.
  3. After verification via email or phone number, a successful sign-up would take you to the homepage of Clearbit.
  4. Once signed up and logged in, visit this URL to access your Clearbit API key.

The slides below will help you to visualize this process:

Save the API key

Now that we’ve gotten our Clearbit API key, let’s check whether it works or not. Click the “Edit” button below, and then enter your API key in the field API_KEY. Don't forget to save the value by clicking “Save” so it’s available for us to use throughout the course.

Python 3.8
import json
import requests
from pprint import pprint
url = "https://company.clearbit.com/v1/domains/find?"
params= {
'name':'Educative'
}
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer {{API_KEY}}'
}
response = requests.request("GET", url, headers=headers, params=params)