Migration
Migration indexes are to assist developers migrating from API v1 to API v2. ONLY AVAILABLE UNTILL FEBRUARY 2022.
Get coins list
A mapping list of all coins currently available on coinranking, AVAILABLE UNTILL FEBRUARY 2022. This endpoint is meant to assist developers migrating from API v1 to API v2. The main difference between both API's is that id's are replaced by uuids. If you need to convert your coin ids to uuids, you can use this endpoint.
Examples
curl https://api.coinranking.com/v2/migration/coins \
-H 'x-access-token: your-api-key' \
-G
const request = require('request');
const options = {
method: 'GET',
url: 'https://api.coinranking.com/v2/migration/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/migration/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;
Response
HTTP/1.1 200 OK
{
"status": "success",
"coins": [
{
"id": 1,
"uuid": "Qwsogvtv82FCd"
},
{
"id": 2,
"uuid": "razxDUgYGNAdQ"
}
]
}
Response fields
Name | Type | Description |
---|
status | String | Status of the request Allowed values: success |
coins | Object | |
coins.id | Object | ID of the coin, available in API v1 but no longer in V2 |
coins.uuid | Object | Replacement identifier in API v2 |
Get exchanges list
A mapping list of all exchanges currently available on coinranking, AVAILABLE UNTILL FEBRUARY 2022. This endpoint is meant to assist developers migrating from API v1 to API v2. The main difference between both API's is that id's are replaced by uuids. If you need to convert your coin ids to uuids, you can use this endpoint.
Examples
curl https://api.coinranking.com/v2/migration/exchanges \
-H 'x-access-token: your-api-key' \
-G
const request = require('request');
const options = {
method: 'GET',
url: 'https://api.coinranking.com/v2/migration/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/migration/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;
Response
HTTP/1.1 200 OK
{
"status": "success",
"exchanges": [
{
"id": 286,
"uuid": "-zdvbieRdZ"
},
{
"id": 269,
"uuid": "kKbFzL8Tp70u"
}
]
}
Response fields
Name | Type | Description |
---|
status | String | Status of the request Allowed values: success |
exchanges | Object | |
exchanges.id | Object | ID of the exchange, available in API v1 but no longer in V2 |
exchanges.uuid | Object | Replacement identifier in API v2 |