How to connect the Sendinblue API to Google Sheets

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:

  1. Install the Apipheny add-on
  2. Obtain an API key
  3. Choose a Sendinblue API endpoint
  4. Enter your Sendinblue API request into Apipheny
  5. Run the Sendinblue API request in your Google Sheet

Step 1.) Install and open the Apipheny add-on for Google Sheets

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.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new

Step 2.) Obtain an API key

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.

Step 3.) Choose a Sendinblue API endpoint

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:

Sendinblue API documentation page
Sendinblue API documentation page

If you click on an API category, for example Email Campaigns, a list of that category’s endpoints will be displayed:

Email Campaigns category
Email Campaigns category

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:

Sendinblue API - endpoint description
Sendinblue API – endpoint description

All API calls to Sendinblue should be made to the https://api.sendinblue.com/v3/ base domain.

Step 4.) Enter your Sendinblue API request into Apipheny

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:

 Sendinblue API request entered into Apipheny
Sendinblue API request entered into Apipheny

Step 5.) Run the Sendinblue API request in your Google Sheet

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!

 Sendinblue data imported into Google Sheets
Sendinblue data imported into Google Sheets

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:

  • Save and schedule your Sendinblue API request
  • Make a POST request to the Sendinblue APi (if available)
  • Use the custom =APIPHENY() function to call the Sendinblue API request inside your spreadsheet
  • Create a Sendinblue API request by referencing the value of a cell in the API URL with three curly braces eg. {{{Sheet1!A1}}}

Crypto API Tutorials:


Popular 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?