Currency Exchange Rate API

Currency Exchange Rate to Image

IMG (PNG)

GET a simple IMG (PNG) response with converted value (great for forum embeds):

curl https://coinxc.com/convert/BTC/USD/1/img.png

Receives

<value> USD

Some options are available as query string parameters:

curl https://coinxc.com/convert/BTC/HNS/2/img.png?background=black&color=white&font=sans-serif&fontsize=32&decimals=2

The above example includes the following parameters:

  • background - can be an HTML color code, an english name or transparent
  • color - can be an HTML color code or an english name
  • font - can be serif, san-serif, mono
  • fontsize - a number (in pixels)
  • decimals - number of decimals to display




  • Currency Exchange Rate to JSON

    JSON

    GET a JSON response with converted value:

    curl https://coinxc.com/convert/HNS/USD/1/json

    Receives

    {"from":"HNS","to":"USD","amount":"1","value":<value>>}



    Currency Exchange Rate to TXT

    TXT

    GET a simple TXT response with converted value:

    curl https://coinxc.com/convert/BTC/USD/1/txt

    Receives

    <value> USD



    CoinXC