---
title: "Exchange Rates API"
url: "https://michalak.world/posts/exchange-rates-api/"
description: "Post about an exchange rates API"
summary: "Information about the exchangerateapi.io API."
date: 2019-04-12
lastmod: 2026-08-19
tags: ["API","Drupal 7","Drupal 8","Drupal Commmerce","Drupal Development","Integration"]
section: "posts"
author: "Michael Michalak"
site: "https://michalak.world/"
---

# Exchange Rates API

Post about an exchange rates API

Wow, what a great little API.  Exchange Rates API is a free API that helps with currency conversion rates.  

All that needs to be sent is the base currency and the currency that you want to convert.  Then the conversion rate is returned.  Making it simple. 

Example

GET Request: 
```
https://api.exchangeratesapi.io/latest?base=USD&symbols=GBP
```

Result: 
```
{"base":"EUR","rates":{"USD":1.1264,"GBP":0.86168},"date":"2019-04-11"}
```

Another option is to send a base currency and to get the currency rates of multiple currencies.  This can be done in one API call.  

Example

GET Request: 
```
https://api.exchangeratesapi.io/latest?base=EUR&symbols=USD,GBP,HKD
```

Result: 
```
{"base":"EUR","rates":{"USD":1.1264,"HKD":8.8354,"GBP":0.86168},"date":"2019-04-11"}
```

Resources
- https://exchangeratesapi.io/

