Exchange rates between currencies, and an amount converted. Use /api/exchange/{from} for every rate of one currency, /api/exchange/{from}/{to} for one rate, and /api/exchange/{from}/{to}/{amount} to convert. Free: 1,000 requests a day, counted from midnight to midnight in Malawi. Without a limit: subscribe for MWK 2,000 a month in the dashboard, under Dev Tools. A month runs from the day you pay to the same day of the next month.
https://telcomw.com/api/exchange/USD/MWK/50Put the 3 letter currency codes in the URL (upper or lower case). Your API key goes in the X-API-Key header (or ?api_key= in the address). The amount is optional.
| Parameter | Sent in | Required | Description |
X-API-Key |
header | YES | Your API key, sent as a header. You can also send it as Authorization: Bearer YOUR_API_KEY, or, because this is a GET, as the api_key parameter in the address. |
api_key |
query | NO | Your API key in the address, instead of the header. A key in an address can be kept in logs, so prefer the header. |
from |
path | YES | The currency you have, for example USD. |
to |
path | NO | The currency you want, for example MWK. Leave it out to get every rate of the first currency. |
amount |
path | NO | The amount of the first currency to convert, for example 50 or 99.50. It needs the to currency. |
curl --location --request GET 'https://telcomw.com/api/exchange/USD/MWK/50' \ --header 'X-API-Key: YOUR_API_KEY'
curl --location --request GET "https://telcomw.com/api/exchange/USD/MWK/50" ^ --header "X-API-Key: YOUR_API_KEY"
<?php
$headers = [
'X-API-Key: YOUR_API_KEY',
];
$ch = curl_init('https://telcomw.com/api/exchange/USD/MWK/50');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
const axios = require('axios');
axios.request({
method: 'get',
url: 'https://telcomw.com/api/exchange/USD/MWK/50',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
}).then((res) => console.log(res.data))
.catch((err) => console.error(err.response ? err.response.data : err.message));
import requests
headers = {
'X-API-Key': 'YOUR_API_KEY'
}
response = requests.request('GET', 'https://telcomw.com/api/exchange/USD/MWK/50', headers=headers)
print(response.json())
The response is JSON.
{
"success": true,
"request_id": "req_5f2c9a1d0e7b4a63",
"data": {
"from": "USD",
"to": "MWK",
"rate": 1750.512345,
"rounded_rate": 1750.51,
"updated_at": "2026-12-01T00:02:31.000Z",
"stale": false,
"amount": 50,
"result": 87525
}
}
{
"success": true,
"request_id": "req_5f2c9a1d0e7b4a63",
"data": {
"base": "USD",
"updated_at": "2026-12-01T00:02:31.000Z",
"stale": false,
"rates": {
"EUR": 0.92,
"GBP": 0.79,
"MWK": 1750.5,
"USD": 1,
"ZAR": 18.4
}
}
}
{
"success": false,
"request_id": "req_5f2c9a1d0e7b4a63",
"error": {
"code": "INVALID_CURRENCY",
"message": "A currency is its 3 letter code, for example USD, MWK or EUR. Use /api/exchange/USD/MWK"
}
}
{
"success": false,
"request_id": "req_5f2c9a1d0e7b4a63",
"error": {
"code": "UNKNOWN_CURRENCY",
"message": "We have no rate for XYZ."
}
}
{
"success": false,
"request_id": "req_5f2c9a1d0e7b4a63",
"error": {
"code": "DAILY_LIMIT_REACHED",
"message": "The free plan allows 1,000 requests a day and today's are used. It starts again at midnight (Malawi time)."
}
}
| Field | Description |
data.from / data.to | The currencies of the rate. |
data.rate | How much of the to currency 1 unit of the from currency buys, in full. |
data.rounded_rate | The same rate rounded to 2 decimals (4 significant digits when the rate is under 1), ready to show to people. |
data.amount, data.result | Only when you sent an amount: the amount, and what it is worth in the to currency. |
data.base, data.rates | Only for /api/exchange/{from}: the currency and its rate against every other currency. |
data.updated_at | When the rates were last updated (they change once a day). They are market rates for information: for a payment, use the rate you agreed on. |
data.stale | true when we could not refresh the rates for more than a day: they are the last we have. |
X-RateLimit-Limit | Response header: the requests you can make a day (1,000), or unlimited when you have a subscription. |
X-RateLimit-Remaining | Response header: the requests left today. |
X-Plan | Response header: free or subscribed. |