How to connect the Wise API to Google Sheets

Wise (formerly TransferWise) is a London-based financial technology company. We can use the Wise API to import data from Wise into Google Sheets. In this tutorial, we’ll show you how to connect the Wise REST API to Google Sheets in 6 steps:

  1. Install the Apipheny add-on
  2. Create a sandbox account
  3. Obtain an access token
  4. Choose a Wise Endpoint
  5. Enter your Wise API request into Apipheny
  6. Run the Wise API request in your Google Sheet

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.) Create a sandbox account

Go to https://sandbox.transferwise.tech/register, type in your email address, and then click the Next button:

Wise account creation
Wise account creation

Choose what kind of account you want, either personal or business:

Account type section
Account type section


Select your country of primary residence, then click the Continue button:

Residence country section
Residence country section

Enter your phone number and then click the Send verification code button:

Verification Code
Verification Code

Because we are on a test environment, we will not receive a code. You’ll have to type a test code, 111111 as it says in the Hint below. Then click the Submit button:

Submitting the verification code
Submitting the verification code

Create a password, then click the Continue button:

Password creation section
Password creation section

Next, enter your first name, your last name and your business name (if applicable), then click the Done button:

Completing the sandbox profile
Completing the sandbox profile


Your account is now created. You can explore your account by clicking the Or, explore your account button:

Account creation confirmation
Account creation confirmation

Step 3.) Obtain an access token

After logging into your newly created account, click the account icon in the top-right corner and select the Settings item:

The Settings menu
The Settings menu

Click the API tokens item:

API tokens section
API tokens section

Click the Add new token button:

Add a new token
Add a new token

Type a name for your token, select the Full access radio button and then click the Create token button:

Create the new token
Create the new token

Your token is now created. Click the Reveal key button to see the token and copy it to a safe location, because you’ll need it later:

Displaying the new token
Displaying the new token

Step 4.) Choose a Wise Endpoint

In this section, we’ll show you how to browse the Wise API documentation to find the endpoint that you need. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 5.

First, open the WiseAPI documentation page: https://api-docs.wise.com/#wise-platform-api

The menu on the left contains general information about the Wise API and a list of categorized endpoints:

Wise API documentation page
Wise API documentation page

If you scroll down, you’ll see the Full API Reference section, which contains a list of endpoint categories:

 Full API Reference section
Full API Reference section

For example, if we click the Bank Account Detail category, a description of this category will be displayed, along with a list of its endpoints:

 Bank Account Detail category
Bank Account Detail category

An example endpoint is List bank account details orders, which returns the bank account assignment requests for a profile and multi-currency account:

https://api.sandbox.transferwise.tech/v1/profiles/profileId/account-details-orders

If you use this URL, don’t forget to replace profileId with a real profile ID.

The endpoint’s documentation contains a short description of the endpoint’s purpose, its HTTP method (GET), an example cURL request and its response:

List bank account details orders endpoint documentation page
List bank account details orders endpoint documentation page

All API calls to Wise should be made to the https://api.sandbox.transferwise.tech base domain.

Once you’ve chosen an endpoint and you know what URL you need to use, proceed to the next step.

Step 5.) Enter your Wise API request into Apipheny

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:

Method: At the top of the Apipheny sidebar, select the HTTP method (GET, POST, PUT, etc.) required by your API endpoint. For this example, we are using the GET method.

API URL: In Step 4, we explained how you can find the Wise REST API endpoint that you need. Now copy and paste your complete Wise 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 Check account balance endpoint which gets available balances for all activated currencies in your account. This is what the whole URL looks like:

https://api.sandbox.transferwise.tech/v1/borderless-accounts?profileId=id

If you use this URL, don’t forget to replace id with a value of a real id!

Headers: In the Headers section of Apipheny, add one row with the following key and value:

Header Key:
Authorization

Header Value:
Bearer your_token

Make sure to replace your_token with the key you previously obtain in Step 3. There should be a literal space between the word Bearer and your_token in the header value.

Here’s what our request looks like in Apipheny:

Wise API request entered into Apipheny
Wise API request entered into Apipheny

Step 6.) Run the Wise API request in your Google Sheet

Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Wise API data to be imported into your Google Sheet. Here’s what our request looked like when completed:

Wise data imported into Google Sheets
Wise data imported into Google Sheets

That’s it! You’ve successfully connected your Wise account to Google Sheets using the Wise API, Google Sheets API, and the Apipheny add-on.

After making a successful request to the Wise API, try querying a different Wise API endpoint, or try using one of the more advanced features in the Apipheny add-on.


Crypto API tutorials and more:


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?