Connecting the Hunter API to Google Sheets

Hunter lets you find email addresses in seconds and connect with the people that matter for your business.

We can use the Hunter API to import data from Hunter into Google Sheets. In this tutorial, I’ll show you how to connect the Hunter API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Obtain an API key
  3. Choose a Hunter API Endpoint URLL
  4. Enter the Hunter API Request into the Apipheny add-on
  5. Run the Hunter API request in your Google Sheets

Step 1.) Install and open the Apipheny add-on in Google Sheets

To pull data from the Hunter API to Google Sheets, first install and open the Apipheny Google Sheets add-on.

Apipheny is a no-code API integrator for Google Sheets that you can use to make unlimited API requests, connect to unlimited APIs, save API requests, schedule API requests, and more. 

1. Install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://apipheny.io/install

Install Apipheny in the Google Workspace Marketplace
Install Apipheny in the Google Workspace Marketplace

2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons or Extensions option in the top menu. In the add-ons menu, you should see Apipheny.

Click Apipheny > Import API to open the Apipheny sidebar in your Google Sheets.

Opening the Apipheny add-on in Google Sheets
Opening the Apipheny add-on in Google Sheets

Step 2.) Obtain an API key

After logging into your Hunter account, click the user drop-down arrow in the top-right corner, then in the displayed menu, click the </> API option:

Hunter account
Hunter account

On the displayed page, you will find your API key. Copy and paste your API key to safe location by clicking the Copy icon from its right side. You will need the API key in the next steps:

API key screen
API key screen

Step 3.) Choose a Hunter API Endpoint URL

In this section, we’ll show you how to browse the Hunter API documentation to find the API URL and endpoint that retrieves the information you need from your account. If you already know your URL, or you want to use the same example URL as us, just skip to Step 4.

First, open the Hunter API documentation page: https://hunter.io/api-documentation/v2

The menu on the left contains the API, CALLS and RESOURCES sections. The endpoints are in the CALLS section:

Hunter documentation
Hunter API documentation

An example API URL & endpoint is Email Finder, which finds the most likely email address from a domain name, a first name and a last name:

https://api.hunter.io/v2/emailfinder?domain=&first_name=&last_name=&api_key=<API_key>
  • <domain> represents the domain you choose
  • <first_name> is a first name
  • <last_name> is a last name
  • <API_key> represents your API key

The endpoint’s documentation contains a short description of its purpose, a list of accepted parameters, the HTTP method used (GET), its URI, an example request as a cURL command and its associated example response:

Endpoint documentation
Endpoint documentation

All API calls to Hunter should be made with this base URL: https://api.hunter.io/v2/

All endpoints should be appended to this URL.

Step 4.) Enter the Hunter API request into the Apipheny add-on

Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the “Import” tab. With the Import tab open, enter these details into the add-on:

Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) required by your API endpoint. For this example, we are using the GET method.

API URL: In Step 3, we explained how you can find the Hunter API endpoint that you need. Now copy and paste your complete Hunter API URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).

For this example, we are using the Domain Search endpoint, which searches all the email addresses corresponding to one website. You give it one domain name and it returns all the email addresses using this domain name, found on the internet. This is what the whole URL looks like:

https://api.hunter.io/v2/domain-search?domain=apipheny.io&api_key=<API_key>

If you’re using this same URL, don’t forget to replace <API_key> with a real API key. Do not include the brackets around your key.

Headers: Headers aren’t required for this API request. You can leave this section blank in Apipheny.

Hunter API request entered into Apipheny
Hunter API request entered into Apipheny

Step 5.) Run the Hunter API Request in your Google Sheets

Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Hunter API data to be imported into your Google Sheet. Here’s what our request looked like when completed:

Hunter data imported into Google Sheets
Hunter data imported into Google Sheets

That’s it! You’ve successfully connected your Hunter account to Google Sheets using the Hunter API, Google Sheets API, and the Apipheny add-on.

After making a successful request to the Hunter API, try querying a different Hunter API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as:

Related articles:

Related Posts