![]() ![]() If you found this tutorial helpful then don't forget to share. You can go for paid plans if you want more API requests and get the latest conversion rate in less time. To minimize unnecessary calls use Database, COOKIE, or SESSION to store currency conversion rates and update their value on regular time intervals by sending an API request. Only Free Currency Converter API updates rates in less time compared to the other 3 APIs free plan. $exchange_rate = $response->data->->value It returns USD exchange rates by default, but you can change that by specifying base_currency parameter and to return the conversion rate for a specific currency then specify it using the currencies parameter.įor getting the conversion rate you need to multiply your amount with the returned exchange rate. The only API you can use in the free plan is, which returns conversion rates. You can view request usage and your most recent requests from the dashboard, which has also been provided.Paid plans are available which will give you much more up-to-date rates and high volume. ![]() At the time of writing this API allows 300 calls per month.Navigate to the following link to get the API key:.$exchange_rate = $response->exchange_rate $converted_amount = $response->converted_amount It also returns the conversion rate with the response. It has also provided a dashboard from where you can view request usage. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |