Google Currency Convertor JSON API

There are many live currency conversion services available on the web and the popular one’s among them are – Google, Yahoo, MSN & XE. Among all these four Google is the developer’s darling and it provides a simple JSON API that can be integrated in your applications


Using the API is very simple and it takes two parameters as input. The first parameter “hl” is the language code in which you want output. The second parameter “q” is the conversion query in the format <number><from currency code>=?<to currency code>. In the URL give above the query requests for conversion of 1 USD in INR.

JSON output for the above query would be  similar to

{lhs: "1 U.S. dollar",rhs: "54.4602984 Indian rupees",error: "",icc: true}

Examples: 100 USD in INR

Example 2: 1 GBP in INR

Example 3: 1 USD in INR, output the data in French language


This is an undocumented service and expect changes at any time. But as long as it works, you got a programmatic way to convert currencies.

Leave a Comment

Your email address will not be published. Required fields are marked *