To pull data from the Drift API to Google Sheets without any coding, you’ll first have to 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. Click here for more information about Apipheny. There’s a 30-day free trial included, then it’s $19-$29/month.
1. You can install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://gsuite.google.com/marketplace/app/apipheny/966163326746
2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons 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.
On the create an app page, you can add information like name, description, and icon under the Display Information section:
Go to the bottom of the OAuth & Permissions page, add the redirect URL and give your application the scopes of access that it needs to perform its purpose:
Under the Activate Your App section, install your app to your Drift account. This will generate a special non-expiring access token. You can now authenticate your requests by including the header Authorization: Bearer <YOUR_TOKEN>
After you get your Drift OAuth access token, copy and paste it somewhere safe because you’re going to need it later to authenticate your API requests.
In this section, we’ll show you how to browse the Drift API documentation to find a Drift API endpoint that retrieves the information you need. If you already know your Drift API URL, or you want to use the same example URL as us, just skip to Step 4.
To browse available endpoints, first open the Drift API documentation page: https://devdocs.drift.com/docs
The menu on the left contains a list of tutorials for the Drift API and a list of related APIs, each with its own endpoints:
An example endpoint is the Listing Conversations endpoint, from the Conversations and Messages API, which returns the conversations in your account:
The documentation for this endpoint contains a short description of the endpoint’s purpose, the HTTP method used (GET), the request URL, a table describing the accepted parameters, and a few example requests:
All API calls to the Drift API should be made to the https://driftapi.com/ base domain.
Drift API base domain/root URL:
To call the Drift API in your Google Sheets, 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) as 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 Drift API endpoint that you need. Now copy the complete URL into the Apipheny add-on, where it says API URL Path (JSON / CSV), followed by any GET parameters required for your query.
For this example, we are using the Listing Users endpoint that returns a list of users in your organization. The corresponding URL for this endpoint is:
In the Headers section in the Apipheny add-on, add 1 row with the following key and value:
Value: Bearer <your_token>
Where <your_token> value is the token you obtained earlier, in Step 2. There should be a space between “Bearer” and your token. Do not include the carrots “<>” around your token.
Lastly, click the Run button at the bottom of the Apipheny add-on and then your Drift API data will be imported into your Google Sheet, like so:
After making a successful request to the Drift API, try querying a different Drift API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as:
If you want to connect the Drift app to Google Data Studio, just follow the same steps above and then connect your Google Sheet to your Google Data Studio Report.