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 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 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: https://developers.pipedrive.com/docs/api/v1/#/

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 https://api.pipedrive.com/v1/ base domain.

Pipedrive API base/root URL:
https://api.pipedrive.com/v1/

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:

https://api.pipedrive.com/v1/activities?api_token=your_API_token

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

Another example endpoint is the GET All Deals endpoint, which returns all deals from an account. Here is an example URL for this endpoint:

https://api.pipedrive.com/v1/deals?status=all_not_deleted&limit=1000&owned_by_you=1&api_token=your_API_token

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:

https://api.pipedrive.com/v1/users?api_token=your_API_token

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:

Key:
Accept
Value:
application/json
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



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?