Get a free API key Generate key

Indexes

Indexes are simple but exhaustive lists of data in a category, such as coins or exchanges. These endpoints are not available in the free tier, but are reserved for all-you-can-eat and enterprise users

Get coins index

List of all coins currently available on coinranking, for indexing purposes.

GET /indexes/coins

Examples

Example: cURL

curl https://api.coinranking.com/v2/indexes/coins \
  -H 'x-access-token: your-api-key' \
  -G

Example: NodeJs

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);
});

Example: PHP

<?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;

Success response example - Response:

HTTP/1.1 200 OK
{
  "status": "success",
  "coins": [
    [
      "Qwsogvtv82FCd",
      "bitcoin-btc",
      "Bitcoin",
      "BTC",
      "https://coinranking.com/coin/Qwsogvtv82FCd+bitcoin-btc"
    ],
    [
      "razxDUgYGNAdQ",
      "ethereum-eth",
      "Ethereum",
      "ETH",
      "https://coinranking.com/coin/razxDUgYGNAdQ+ethereum-eth"
    ],
    [
      "-l8Mn2pVlRs-p",
      "xrp-xrp",
      "XRP",
      "XRP",
      "https://coinranking.com/coin/-l8Mn2pVlRs-p+xrp-xrp"
    ],
    [
      "ZlZpzOJo43mIo",
      "bitcoincash-bch",
      "Bitcoin Cash",
      "BCH",
      "https://coinranking.com/coin/ZlZpzOJo43mIo+bitcoincash-bch"
    ]
  ]
}

Get exchanges index

List of all exchanges currently available on coinranking, for indexing purposes.

GET /indexes/exchanges

Examples

Example: cURL

curl https://api.coinranking.com/v2/indexes/exchanges \
  -H 'x-access-token: your-api-key' \
  -G

Example: NodeJs

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);
});

Example: PHP

<?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;

Success response example - Response:

HTTP/1.1 200 OK
{
  "status": "success",
  "exchanges": [
    [
      "aqGkNG_0Ye",
      "cryptopia",
      "https://coinranking.com/exchange/aqGkNG_0Ye+cryptopia"
    ],
    [
      "xQsRNi-ifi",
      "coinexchange",
      "https://coinranking.com/exchange/xQsRNi-ifi+coinexchange"
    ],
    [
      "8aFS17GYSA",
      "bitcoincom",
      "https://coinranking.com/exchange/8aFS17GYSA+bitcoincom"
    ],
    [
      "2v4Ta4MBo__",
      "blockchaininfo",
      "https://coinranking.com/exchange/2v4Ta4MBo__+blockchaininfo"
    ]
}