Live currency converter api

Posted: Smetanin Date of post: 28.05.2017

jsonrates – Currency exchange rates JSON API

The five currency converter APIs we compared deliver exchange rates in three different formats: JSON , CSV and XML. In order to keep this as simple as possible, we'll choose the format three out of five have in common JSON and outline the most important steps of parsing such API responses using different programming languages and integrating the data in an application of your own. The following code and samples are based on one of our favorite API services, the currencylayer API:.

live currency converter api

First of all, you need to get familiar with how the structure of the respective API's request URL looks and works - in our example using the currencylayer API it looks like this:. See how we defined a few important parameters? Get your free API Access Key here.

live currency converter api

Below you can see the typical JSON API response we would get after executing the above query, containing a number of objects and sub-objects. The timestamp object, for example, contains a UNIX time stamp which indicates the exact time the currency exchange rates which are located in the quotes object were collected.

Now, there are many ways you can make use of this data, we'll give you some examples for PHP cURL and AJAX jQuery , since most of you are going to be using these. Great for simple GET requests where the header, HTTP request method, timeout, cookiejar, redirects, and other important things do not matter.

live currency converter api

See how easy this is? Actually, this is even easier.

Live Currency Quotes - Real Time Prices-Interbank Rates-IBR-USDINR- EURO- POUND- YEN - SWISS FRANC- Historical Data-Currency Rates - Major Currencies - Other Currencies- Rate Certificate

Just access each currency exchange rate value using alert json. Free and Paid Currency Converter API Comparison Simple PHP and AJAX tutorial to get real-time exchange rates.

Overview Full Comparison Code: Get Live Rates Code: The following code and samples are based on one of our favorite API services, the currencylayer API: API Request URL First of all, you need to get familiar with how the structure of the respective API's request URL looks and works - in our example using the currencylayer API it looks like this:

Rating 4,6 stars - 420 reviews
inserted by FC2 system