At the moment there are many services from where you can get these notorious rates, but they are all either inconvenient, or they do not have one or more currencies you need.
Short review
Of course, on the Internet you can find a much larger list of services and sites that provide data on exchange rates, but I will list only a few, and I will tell you in more detail about only one.
cbr.ru - Central Bank of the Russian Federation.
See Technical Resources -> Getting Data Using XML - there are examples, you can get courses in XML format. If you need very accurate courses, so to speak, from the manufacturer - you are here. But I'll tell you right away the list will not please you much, and XML and possible interruptions in the work of the site, as well as weekends when the courses will not change for you.
apilayer.com services are the most modern API. There are free plans. Lots of possibilities. We will talk about them today.
currate.ru is a supposedly free service for obtaining exchange rates.
Why is the unknown service Currate included in this list, because in my opinion it is some kind of intermediary between apilayer.com, since positioned as absolutely free, but with a limit of 1000 requests per month.
Moreover, this limitation appeared immediately after it was introduced by apilayer.com and its services. Take note, those who use it. This may not be the best option.
In general, when choosing a service for exchange rates, please pay attention to this. You shouldn't start a startup using such fakes, they can potentially damage your future application.
Currency Layer
currencylayer.com - 168 . , , . JSON.
- 1000 , , USD.
, - 10 Basic, 10000 + Source Currency Switching, , , , , .
, , , 10000 , , 100 - , , .
, Api Layer, N 30 . 5 . , .
-, , , .
-, , , , , 10 2.
Coin Layer
, 2011 . , .
coinlayer.com - API- , , .
385 25 .
Fixer
fixer.io - , 170 . 170 , 60 .
, Fixer, , .
, Fixer.io Currency Layer .
, , . .
, Fixer.io , .. GitHub, , , Fixer.io Currency Layer Api Layer.
, Api Layer, . .
, , , .
, , . . JSON. JSONP. .
API, , - API.
API, access_key URL- ( -).
End-
live -
historical -
convert -
timeframe -
change - (, )
https://api.currencylayer.com/live?access_key=YOUR_ACCESS_KEY
JSON, :
JSON
{
"success": true,
"terms": "https://currencylayer.com/terms",
"privacy": "https://currencylayer.com/privacy",
"timestamp": 1430401802,
"source": "USD",
"quotes": {
"USDAED": 3.672982,
"USDAFN": 57.8936,
"USDALL": 126.1652,
"USDAMD": 475.306,
"USDANG": 1.78952,
"USDAOA": 109.216875,
"USDARS": 8.901966,
"USDAUD": 1.269072,
"USDAWG": 1.792375,
"USDAZN": 1.04945,
"USDBAM": 1.757305
}
}
source , timestamp -, API quotes , ().
, Basic / 10$ .
( ยซ ยป) - , API ( :) USD.
source API . . ( USDEUR, USD )
, , (quotes), .
.
, - ApiLayer, PHP GitHub . , , .
- < 20, , , PHP 8 Larave / Symfony.
.
- , Laravel / Symfony GitHub .