Indexes are simple but exhaustive lists of data in a category, such as coins or exchanges.
List of all coins currently available on coinranking, for indexing purposes.
GET /indexes/coins
curl https://api.coinranking.com/v2/indexes/coins \
-H 'x-access-token: your-api-key' \
-G
const request = require('request');
const options = {
method: 'GET',
url: 'https://api.coinranking.com/v2/indexes/coins',
headers: {
'x-access-token': 'your-api-key'
}
};
request(options, (error, response) => {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.coinranking.com/v2/indexes/coins",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"x-access-token: your-api-key"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
List of all exchanges currently available on coinranking, for indexing purposes.
GET /indexes/exchanges
curl https://api.coinranking.com/v2/indexes/exchanges \
-H 'x-access-token: your-api-key' \
-G
const request = require('request');
const options = {
method: 'GET',
url: 'https://api.coinranking.com/v2/indexes/exchanges',
headers: {
'x-access-token': 'your-api-key'
}
};
request(options, (error, response) => {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.coinranking.com/v2/indexes/exchanges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"x-access-token: your-api-key"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;