Reputation: 13
i am trying to find a way to get the currency conversion rates on realtime basis , i found http://www.google.com/ig/calculator?hl=en&q=1GBP=?USD was not working .could you please suggest any alternate way of doing this,thanks in advance.
Upvotes: 1
Views: 536
Reputation: 1
If you’re looking for a free and straightforward API for currency conversion, you can try Imhotep Exchange Rate API. It’s completely free and offers cached exchange rates updated every 3 hours, ensuring you get reliable data without exceeding limits. Example Usage:
To fetch the latest rates, make a GET request to:
https://imhotepexchangeratesapi.pythonanywhere.com/latest_rates/YOUR_API_KEY/USD
Example Response:
{ "meta": { "base_currency": "USD", "last_updated_at": "2025-01-10T00:00:00Z" }, "data": { "EUR": 0.85, "GBP": 0.74, "JPY": 110.25 } }
It’s free, easy to use, and works well for most mobile and web development use cases. You can learn more and sign up here: Imhotep Exchange Rate API.
Upvotes: 0
Reputation: 467
I'll recommend CurrencyFreanks.com. It provides real-time currency conversion, current and historical forex exchange rate, currency fluctuation, and IP to currency data through REST API in JSON and XML formats compatible. It has the following features:
Here is the currency conversion endpoint:
$ curl 'https://api.currencyfreaks.com/latest/convert?apikey=YOUR_APIKEY&from=USD&to=EUR&amount=500'
The JSON response will be:
{
"date": "2020-12-08 06:20:00+00",
"current_rates": {
"USD": "1.0",
"EUR": "0.8251"
},
"converted_amount": "412.5415",
"query": {
"given_amount": "500.0",
"from": "USD",
"to": "EUR"
}
}
Upvotes: 0
Reputation: 1523
Try using fixer api . It has option for finding the exchange rates on previous dates also . http://fixer.io/
Upvotes: 0
Reputation: 240
You can try this, but since the result is in xml you have to convert it to a POJO
http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=USD&ToCurrency=GBP
Upvotes: 0