How to connect Pipedrive to Google Sheets

Pipedrive is a popular CRM for sales teams and a pipeline management software. You can use the Pipedrive API to export data from Pipedrive for analysis and reports.

In this tutorial, you will learn how to connect the Pipedrive API to Google Sheets in 5 steps:

  1. Install the Apipheny Add-on
  2. Obtain a Pipedrive API Token
  3. Obtain a Pipedrive Endpoint URL
  4. Enter Pipedrive API into Apipheny
  5. Run the Pipedrive API request

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

To pull data from the Pipedrive API to Google Sheets easily and without writing any code, 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 (including the Pipedrive API), save API requests, schedule API requests, and more.

1. Install Apipheny by clicking the Install button on this page:

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.

Open Apipheny
Open Apipheny

Step 2.) Obtain a Pipedrive API Token

To get your Pipedrive API Token, log in to your account and then go to the Settings from the menu that opens when you click on your profile picture:

Go to your Pipedrive settings
Go to your Pipedrive settings

Then, in the Personal section, click Personal Preferences > API:

Go to Personal Preferences > API
Go to Personal Preferences > API

Here is where you will find your personal Pipedrive API Token. Copy and paste this token to a safe location, because you’ll need it in the following steps.

Step 3.) Choose your Pipedrive Endpoint URL

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

First, open the Pipedrive API documentation page:

The menu on the left contains a list of all the available categories of data that you can export from Pipedrive:

Pipedrive API documentation
Pipedrive API documentation

Clicking on a category expands the list of it’s available endpoints in the menu and scrolls to that category’s section, on the right. Clicking on an endpoint in the menu scrolls to that specific endpoint’s section.

All API calls to Pipedrive should be made to the base domain.

Pipedrive API base/root URL:

An example Pipedrive API endpoint is Get all activities assigned to a particular user, and here is what the whole URL looks like put together:<your_API_token>

In this URL, <your_API_token> represents the API token we obtained in Step 2.

Each endpoint’s documentation contains the HTTP method used (eg. GET), the link you should append to the root API URL for querying this endpoint (eg. /activities), a short description of the endpoint’s purpose, and a list of the available parameters:

Pipedrive endpoint documentation (example)
Pipedrive endpoint documentation (example)

As you can see from this example, for endpoints that accept parameters, this documentation is where you would find them explained.

Each endpoint can be tested from the documentation page, by setting values for the parameters and clicking the Run endpoint button:

Testing a Pipedrive API endpoint
Testing a Pipedrive API endpoint

Step 4.) Enter your API request into Apipheny

To run your Pipedrive API request, go back to your Google Sheet and make sure that the Apipheny add-on is open on the “Import” tab (screenshot below).

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, I explained how you can find the Pipedrive REST API endpoint that you need. Now copy your complete URL (base URL + endpoint + parameters) into the Apipheny add-on, where it says API URL Path.

For this example, we are using the Get all users endpoint, to export data about all users from our Pipedrive account. Here is the example API URL we are using:

your_API_token is the API token we obtained in Step 2.

Headers: In the Headers section of the Apipheny add-on, add one row with the following key and value:

Pipedrive API request entered into Apipheny
Pipedrive API request entered into Apipheny

Step 5.) Run the Pipedrive API Request

Once you have your Pipedrive API URL and headers entered into Apipheny, click the Run button at the bottom of the Apipheny add-on and then wait for the Pipedrive API data to be pulled in to your Google Sheet:

Pipedrive data in Google Sheets
Pipedrive data in Google Sheets

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

API Tutorials

Related Posts