JSON API

We have a simple JSON API, composed of two verbs:

This accepts two required parameters, currency code, and amount.


Example: http://btctox.org/api/tobtc?amount=10&currencyCode=ILS

This accepts two required parameters, currency code, and amount.


Example: http://btctox.org/api/frombtc?amount=10&currencyCode=ILS

Like tobtc, only it returns a weighted average price, according to the last 1, 7 or 30 days.

This accepts three required parameters, currency code, amount and period.


Example: http://btctox.org/api/tobtcweighted?amount=10&currencyCode=ILS&period=7d

Like frombtc, only it returns a weighted average price, according to the last 1, 7 or 30 days.

This accepts three required parameters, currency code, amount and period.


Example: http://btctox.org/api/frombtcweighted?amount=10&currencyCode=ILS&period=7d

  • The currency code should be exist on this list of codes.
  • No uptime guarantees are made. From my testing, Mt. Gox API will often fail, thus failing ours as well.
  • Weighted BTC rates are up to 16 minutes stale - we cache the results from BitcoinCharts API, because they only allows one query every 15 minutes.