Some API calls are available with CORS headers if you add a &cors=true paramter to the GET request

URL: https://blockchain.info/ticker

No Parameters

Returns a JSON object with the currency codes as keys. "15m" is the 15 minutes delayed market price, "last" is the most recent market price, "symbol" is the currency symbol.

Response:
{
  "USD" : {"15m" : 6650.3, "last" : 6650.3, "buy" : 6650.3, "sell" : 6650.3, "symbol" : "$"},
  "AUD" : {"15m" : 10857.19, "last" : 10857.19, "buy" : 10857.19, "sell" : 10857.19, "symbol" : "$"},
  "BRL" : {"15m" : 33997.0, "last" : 33997.0, "buy" : 33997.0, "sell" : 33997.0, "symbol" : "R$"},
  "CAD" : {"15m" : 9361.24, "last" : 9361.24, "buy" : 9361.24, "sell" : 9361.24, "symbol" : "$"},
  "CHF" : {"15m" : 6357.36, "last" : 6357.36, "buy" : 6357.36, "sell" : 6357.36, "symbol" : "CHF"},
  "CLP" : {"15m" : 5557655.73, "last" : 5557655.73, "buy" : 5557655.73, "sell" : 5557655.73, "symbol" : "$"},
  "CNY" : {"15m" : 47193.19, "last" : 47193.19, "buy" : 47193.19, "sell" : 47193.19, "symbol" : "¥"},
  "DKK" : {"15m" : 44879.78, "last" : 44879.78, "buy" : 44879.78, "sell" : 44879.78, "symbol" : "kr"},
  "EUR" : {"15m" : 6022.68, "last" : 6022.68, "buy" : 6022.68, "sell" : 6022.68, "symbol" : "€"},
  "GBP" : {"15m" : 5381.18, "last" : 5381.18, "buy" : 5381.18, "sell" : 5381.18, "symbol" : "£"},
  "HKD" : {"15m" : 51546.87, "last" : 51546.87, "buy" : 51546.87, "sell" : 51546.87, "symbol" : "$"},
  "INR" : {"15m" : 499254.59, "last" : 499254.59, "buy" : 499254.59, "sell" : 499254.59, "symbol" : "₹"},
  "ISK" : {"15m" : 928115.87, "last" : 928115.87, "buy" : 928115.87, "sell" : 928115.87, "symbol" : "kr"},
  "JPY" : {"15m" : 719355.11, "last" : 719355.11, "buy" : 719355.11, "sell" : 719355.11, "symbol" : "¥"},
  "KRW" : {"15m" : 8119018.78, "last" : 8119018.78, "buy" : 8119018.78, "sell" : 8119018.78, "symbol" : "₩"},
  "NZD" : {"15m" : 11047.07, "last" : 11047.07, "buy" : 11047.07, "sell" : 11047.07, "symbol" : "$"},
  "PLN" : {"15m" : 27226.2, "last" : 27226.2, "buy" : 27226.2, "sell" : 27226.2, "symbol" : "zł"},
  "RUB" : {"15m" : 526876.0, "last" : 526876.0, "buy" : 526876.0, "sell" : 526876.0, "symbol" : "RUB"},
  "SEK" : {"15m" : 66182.19, "last" : 66182.19, "buy" : 66182.19, "sell" : 66182.19, "symbol" : "kr"},
  "SGD" : {"15m" : 9514.55, "last" : 9514.55, "buy" : 9514.55, "sell" : 9514.55, "symbol" : "$"},
  "THB" : {"15m" : 216460.59, "last" : 216460.59, "buy" : 216460.59, "sell" : 216460.59, "symbol" : "฿"},
  "TRY" : {"15m" : 42917.86, "last" : 42917.86, "buy" : 42917.86, "sell" : 42917.86, "symbol" : "₺"},
  "TWD" : {"15m" : 201011.96, "last" : 201011.96, "buy" : 201011.96, "sell" : 201011.96, "symbol" : "NT$"}
}

URL: https://blockchain.info/tobtc?currency=USD&value=500

Convert x value in the provided currency to btc.

ex: https://blockchain.info/tobtc?currency=USD&value=500

Parameters

Returns the value in BTC.

Response:
10