Sendinblue is known as one the best platforms for growing a business. We can use the Sendinblue API to import data from Sendinblue into Google Sheets. In this tutorial, I’ll show you how to connect the Sendinblue REST API to Google Sheets in 5 steps:
Apipheny is a free API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to API data sources, easily.
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.
Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new
After logging into your Sendinblue account, go to your account settings and in the drop-down menu, click the SMTP&API menu item:
A page containing your API key will be displayed on the screen:
Copy and paste your API key in a safe location, because you’ll need it in the next steps.
In this section, we’ll show you how to browse the Sendinblue API documentation to find an API endpoint that retrieves the specific information you need. 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 Sendinblue API documentation page: https://developers.sendinblue.com/reference/
The menu on the left contains a list of categories for the Sendinblue API endpoints:
If you click on an API category, for example Email Campaigns, a list of that category’s endpoints will be displayed:
An example endpoint from the Email Campaigns category is Return all your created email campaigns, which displays all your created email campaigns. The URL for this endpoint is:
https://api.sendinblue.com/v3/emailCampaigns
Each endpoint’s documentation contains the endpoint’s HTTP method (GET) and URL, the query parameters and code examples. In a distinct section on the right, you will see the cURL command, as well as an example response:
All API calls to Sendinblue should be made to the https://api.sendinblue.com/v3/ base domain.
Now, to get your Sendinblue data in your Google Sheet, go back to your Google Sheet and make sure that you’ve installed the Apipheny add-on and you have it opened to the Import tab. In the Import Tab of Apipheny, enter the following details into the add-on:
Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) required by your Sendinblue API endpoint. For this example, we are using the “GET” method.
API URL: In Step 3, we explained how you can find the Sendinblue API endpoint that you need. Now copy your complete Sendinblue API URL into the Apipheny add-on, in the field that says API URL Path, followed by any GET parameters required for your query (if applicable).
For this example, we are using the Get all contacts endpoint, which lists all contacts. The URL for this specific endpoint is:
https://api.sendinblue.com/v3/contacts
If you’re following the same example as us, just copy and paste the above URL into Apipheny where it says “API URL”.
Headers: In the Headers section of the Apipheny add-on, add two rows with the following keys and values:
Header 1 Key: Accept Value: application/json Header 2 Key: api-key Value: YOUR_API_KEY
Just copy and paste these two headers into Apipheny, in the Headers section. Make sure to replace YOUR_API_KEY with the same value of the token that you generated previously, in Step 2.
Here’s what your Sendinblue API should look like when entered into Apipheny, if you’re following the same example as us:
The last step is to click the Run button at the bottom of the Apipheny add-on and then your Sendinblue data will be imported into your Google Sheets. Congratulations!
After making a successful request to the Sendinblue API, try querying a different Sendinblue API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as:
Schedule requests for automatic updates
Reference cell values in requests
Stack multiple URLs in a single request
Crypto API Tutorials: