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 for Google Sheets

Apipheny is an API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to unlimited API data sources, make unlimited API requests, and more. There is a 30 day free trial included.

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

2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.

In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new

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=DOMAIN&first_name=FIRST_NAME&last_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.

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.


Crypto API tutorials and more:


API Tutorials



API Knowledge

What is an API?

What is an API URL?

What are parameters?

What is an endpoint?

What is an API key/token?

What is basic authentication?

What are headers?

What is a GET request?

What is a POST request?


Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool

Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website