Today, I’ll teach you how to use the free currencyapi.com API and the Apipheny API integrator to import currency rate data into Google Sheets.

Currencyapi.com is a currency rate JSON API that allows you to retrieve current and historical international exchange rates dating back to 1999. The API supports over 170 currencies and provides 60 seconds update rates.

The API provides many endpoints via which you can obtain everything from the most recent exchange rates to converting a value from one currency to another, retrieving range data, and listing all supported currencies and their data.

To import data from currencyapi.com into Google Sheets, follow these steps:

  1. Install Apipheny
  2. Choose your endpoint
  3. Enter your API request
  4. Run your API request

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.) Choose a currencyapi.com endpoint

Every API URL should have an endpoint, which is the component of the URL that tells the API what kind of data you’re looking for. The currencyapi.com API has five different endpoints to choose from.

Click here to read the API’s documentation.

Available endpoints:

1. Latest Endpoint: use this endpoint to get the latest currency data. (The base_currency and currencies parameters are optional)

https://api.currencyapi.com/v3/latest?apikey=[[APIKEY]]&base_currency=EUR&currencies=USD,JPY,RUB

2. Convert Endpoint: you can use this endpoint to convert any value from one currency to another.

https://api.currencyapi.com/v3/convert?apikey=[[APIKEY]]&value=1

If you specify a date parameter, you can also convert with the end-of-day rate of a certain date like below:

https://api.currencyapi.com/v3/convert?apikey=[[APIKEY]]&value=1&date=2023-01-01

3. Historical Endpoint: you can query the historical rates endpoint all the way back to 1999.

https://api.currencyapi.com/v3/historical?apikey=[[APIKEY]]&date=2023-01-01&base_currency=USD&currencies=EUR,JPY,RUB

4. Range Endpoint: The range endpoint pulls the historical rate between two date time pairs. The maximum timeframes for each accuracy are defined in the documentation

https://api.currencyapi.com/v3/range?apikey=[[APIKEY]]&datetime_start=2023-04-01T00:00:00Z&datetime_end=2023-04-01T23:59:59Z&accuracy=hour

5. Currency List: query this endpoint to get a list of all the available currencies.

https://api.currencyapi.com/v3/currencies?apikey=[[APIKEY]]

You can find more information, parameters, etc., in the API’s documentation.

Step 3.) Enter your API request in Apipheny

You only need to input your API URI into Apipheny now that you’ve picked your endpoint to retrieve the exact data you want.

All you have to do is copy and paste your API URL into the API URL Path box, as shown below:

You can choose any of the supported API endpoints.

Step 4.) Run your API request

When you’ve selected your endpoint and inserted your API URL into Apipheny, simply click the “Run” button at the bottom of the Apipheny add-on, and your foreign exchange rate data will be imported into your Google Sheet instantly.

That’s all! To import currency rate data into Google Sheets, just enter your API URL into the Apipheny add-on and click Run.

After successfully executing an API request to the currencyapi.com API, try querying a different endpoint or utilizing other Apipheny add-on capabilities.



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?


Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool

Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website