Code Sample: Get Live Exchange Rates
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: