/Request example { "addresses": [ "1135cJtSMMuascWt4hRiYNjTXcq5JTjEA5", "112fxrGV41UDCUFFmfzntyd9B8sE96mB3M" ], "action": "getBalance" } //Response example { "1135cJtSMMuascWt4hRiYNjTXcq5JTjEA5": { "clicks": "2", "earnings": "0.000130000000" }, "112fxrGV41UDCUFFmfzntyd9B8sE96mB3M": { "clicks": "1", "earnings": "0.000625000000" } } PHP example: $query = array(); $query['addresses'] = array(); $query['action'] = 'getBalance'; $query['addresses'][] = "1135cJtSMMuascWt4hRiYNjTXcq5JTjEA5"; $query['addresses'][] = "112fxrGV41UDCUFFmfzntyd9B8sE96mB3M"; $url = 'http://coinurl.com/revenue-sharing.php'; $content = json_encode($query); $curl = curl_init($url); //Enable if you have problems using HTTPS //curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); //curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-type: application/json")); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $content); $result = curl_exec($curl); curl_close($curl); $stats = json_decode($result, true); foreach ($stats as $key => $value) { echo "Address: {$key}
"; echo "Number of clicks: {$value['clicks']}
"; echo "Earnings: {$value['earnings']}

"; }