List coins
Use this function to list all coins with their data which are available on cryptocoincharts.
URL: GET http://api.cryptocoincharts.info/listCoins
RESULT: array with coins objects
id: coin ID
name: coin name
website: URL of website if available
price_btc: last traded price of best market
volume_btc: 24h trading volume recalculated to BTC
PHP example
// fetch data
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://api.cryptocoincharts.info/listCoins");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$rawData = curl_exec($curl);
curl_close($curl);
// decode to array
$data = json_decode($rawData);
// show data
echo "
";";
foreach ($data as $row) echo $row->id." - ".$row->name."\n";
echo "
Where do I put this URL: GET http://api.cryptocoincharts.info/listCoins
The example tells you. All of their examples are fully functioning code that you place tags around and place anywhere on a .php file.