Mar 19

Google Currency Conversion API

Well, the api is pretty straight forward.
I found it from the Curreny Conversion gadget of iGoogle.

Here is the example:

http://www.google.com/ig/calculator?hl=en&q=1USD%3D%3FPHP

Here is templage in php:

$amount = "1";
$from_Currency = "USD";
$to_Currency = "PHP";

$query_URL = "http://www.google.com/ig/calculator?hl=en&q=$amount$to_Currency.%3D%3F$to_Currency";

The resposnse looks like this:
{lhs: “1 U.S. dollar”,rhs: “45.6704421 Philippine pesos”,error: “”,icc: true}

Not sure if Google is credible to use for conversation, however, if we are just working on simple project, this will be a good help. :-D

5 Responses to “Google Currency Conversion API”

  1. Default avatar eagle says:

    Shouldn’t the link be:
    “http://www.google.com/ig/calculator?hl=en&;q=$amount$from_Currency.%3D%3F$to_Currency”?

    [Reply]

    Default avatar

    Jay Ar Bauson Reply:

    You can try it. :)

    [Reply]

  2. Not sure I get everything, but nice stuff either way.

    [Reply]

  3. Like a Beginner, I’m often looking on the web for articles or blog posts that may support me. Thank you

    [Reply]

  4. Default avatar Mike says:

    How to get currency symbol?

    [Reply]

Leave a Reply

preload preload preload
Bless CV