Ontraport is a CRM and automation platform designed for any business that’s ready to scale, giving you all the tools you need for selling, marketing and managing a business online — in one app. We can use the Ontraport API to import data from Ontraport into Google Sheets. In this tutorial, we’ll show you how to connect the Ontraport REST API to Google Sheets in 5 steps:
To pull data from the Ontraport 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
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.
After logging into your Ontraport account, go to your account icon, then click Administration from the drop-down menu:
In the menu on the left, click Integration:
On the next page, click the +New API Key button:
In the API Application form, complete all the fields and check all the Usage Agreement checkboxes:
At the end, click the SAVE button in the top-right corner:
On the next screen, complete the Key name, select the Contact Owner from the drop-down list, check the permissions you want for your API key and then click the SAVE button again:
Your API key and APP ID will be displayed in a dedicated API Keys table:
Copy both of these values and paste them in a safe location, because you’ll need them later.
In this section, we’ll show you how to browse the Ontraport API documentation to find the endpoint that retrieves the information you need from your account. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 4.
First, open the Ontraport API documentation page: https://api.ontraport.com/doc/?shell#introduction
The menu on the left contains general information about the Ontraport API and a list of categorized endpoints:
If we click the Messages category, its description and the corresponding endpoints will be shown:
An example endpoint is Retrieve a specific message, which retrieves all the information for an existing message. The URL for this endpoint is:
If you use this URL, don’t forget to replace id_value with a real message id.
The endpoint’s documentation contains a short description of its purpose, the endpoint’s URL and its method (GET), the required headers and parameters, the cURL command and an example response:
All endpoints can be accessed with the following base domain https://api.ontraport.com/1/
Endpoints should be appended to this base domain.
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:
API URL: In Step 3, we explained how you can find the Ontraport REST API endpoint that you need. Now copy and paste your complete Ontraport 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 Retrieve a specific contact endpoint, which retrieves all the information for an existing contact. The only parameter needed is the ID for the contact, which is returned in the response, upon contact creation. This is what the whole URL looks like:
If you use this URL, don’t forget to replace contact_id with a real value.
Headers: In the Headers section of Apipheny, add two rows with the following keys and values:
Header 1 Key: Api-Key Value: your_api_key Header 2 Key: Api-Appid Value: your_app_id
When entering the header values, replace your_api_key and your_app_id with the values you previously obtained in Step 2.
Here’s what our API request looks like when entered into Apipheny:
Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Ontraport API data to be imported into your Google Sheet. Here’s what our request looked like when completed:
That’s it! You’ve successfully connected your Ontraport account to Google Sheets using the Ontraport API, Google Sheets API, and the Apipheny add-on.
After making a successful request to the Ontraport API, try querying a different Ontraport API endpoint, or try using one of the more advanced features in the Apipheny add-on.
Constant Contact API
Facebook Graph API
Facebook Ads API
Google SERP API
Linkedin Ads API
Product Hunt API
Reddit Ads API
Riot Games API