Get exchange coin listings
Find coins listed on a specific exchange. On Coinranking, we use this endpoint on our exchange coin listings page.
https://api.coinranking.com/v2/exchange/:uuid/coins
Preview access
Free, Basic and Startup plans can test this endpoint with five successful requests per account per UTC day. Use the documented endpoint URL with your existing API key. Preview access is applied automatically. The allowance resets at 00:00 UTC.
All API keys, resource IDs, query parameters and pagination requests share this endpoint's allowance for your account. Failed requests do not consume the preview allowance. Successful previews also count toward your normal API usage, and your plan's result, historical-window and rate limits still apply. See endpoint previews for limits, response headers and quota errors.
Path parameters
| Parameter | Description |
|---|---|
uuid String | UUID of the exchange you want to request |
Query parameters
| Parameter | Description |
|---|---|
referenceCurrencyUuid (optional) String | UUID of coin (either fiat or crypto), the price of the reference currency is used to calculate the volume. Defaults to US Dollar, but you can use any coin. You can find UUIDs for reference currencies in any coin endpoint, including a convenient dedicated reference currency endpoint Default value: yhjMzLPhuIDlExample:
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?referenceCurrencyUuid=5k-_VTxqtCEI
|
limit (optional) Number | Limit. Used for pagination. The maximum amount of results you can fetch in one request is 100 for Free and 5000 for all paid plans, including previews where available. Default value: 50Size range: 0-5000 Example:
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?limit=10
|
offset (optional) Number | Offset. Used for pagination Default value: 0Example:
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?offset=50
|
orderBy (optional) String | Index to sort on. Default is 24h volume Default value: 24hVolumeAllowed values: 24hVolume price numberOfMarkets Example:
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?orderBy=numberOfMarkets
|
orderDirection (optional) String | order in ascending or descending order Default value: descAllowed values: asc desc Example:
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?orderDirection=asc
|
search (optional) String | Filter the results by searching for coin names or symbols. Example:
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?search=bitcoin
|
cursor (optional) String |
Cursor for pagination. Use the
https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?cursor=eyJ0IjoxLC...
|
Code examples
curl 'https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets' \
-H 'x-access-token: your-api-key' \
-G const options = {
headers: {
'x-access-token': 'your-api-key',
},
};
fetch('https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets', options)
.then((response) => response.json())
.then((result) => console.log(result)); <?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets",
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; import requests
headers = {
'x-access-token': 'your-api-key'
}
response = requests.request("GET", "https://api.coinranking.com/v2/exchange/-zdvbieRdZ/coins?referenceCurrencyUuid=5k-_VTxqtCEI&limit=50&offset=0&orderBy=numberOfMarkets", headers=headers)
print(response.text) Response
HTTP/1.1 200 OK
{
"status": "success",
"data": {
"stats": {
"total": 3
},
"coins": [
{
"rank": 3,
"uuid": "ETHxDUgYGNAdQ",
"symbol": "ETH",
"name": "Ethereum",
"iconUrl": "https://cdn.coinranking.com/rk4RKHOuW/eth.svg",
"price": "203",
"btcPrice": "0.3",
"24hVolume": "380",
"numberOfMarkets": 2,
"coinrankingUrl": "https://coinranking.com/coin/razxDUgYGNAdQ+ethereum-eth"
},
{
"rank": 2,
"uuid": "USDxDUgYGNAdQ",
"symbol": "USDT",
"name": "Tether",
"iconUrl": "https://cdn.coinranking.com/SJs1nH_OZ/usdt.svg",
"price": "1",
"btcPrice": "0.0055573924999568905",
"24hVolume": "2795542.586905519",
"numberOfMarkets": 2,
"coinrankingUrl": "https://coinranking.com/coin/HIVsRcGKkPFtW+tether-usdt"
}
]
},
"pagination": {
"limit": 50,
"hasNextPage": false,
"hasPreviousPage": false,
"nextCursor": null,
"previousCursor": null
}
} Response fields
| Property | Description |
|---|---|
status String | Status of the request Allowed values:success |
data Object | |
data.stats Object | |
data.stats.total Number | Total number of coins |
data.coins Object[] | |
data.coins.rank String | The rank for this coin in this exchange |
data.coins.uuid String | UUID of the coin |
data.coins.symbol String | Currency symbol |
data.coins.name String | Name of the coin |
data.coins.iconUrl String | Location of the icon. Replace |
data.coins.price String | Price of the coin |
data.coins.btcPrice String | Price of the coin expressed in Bitcoin. |
data.coins.24hVolume String | 24h trade volume |
data.coins.numberOfMarkets Number | The amount of markets this coin is exchanged in on this exchange |
data.coins.coinrankingUrl String | Where to find the coin on coinranking.com |
pagination Object | Pagination information. See Pagination for more details. |
pagination.limit Number | The number of results per page |
pagination.hasNextPage Boolean | Whether there are more results available after the current page |
pagination.hasPreviousPage Boolean | Whether there are results available before the current page |
pagination.nextCursor String/null | Cursor to use for the next page, or null if there are no more results |
pagination.previousCursor String/null | Cursor to use for the previous page, or null if on the first page |
Error response
HTTP/1.1 422 Unprocessable Entity
{
"status": "fail",
"type": "REFERENCE_UNAVAILABLE",
"message": "Reference currency not available"
} Error responses
| Error | Description |
|---|---|
EXCHANGE_NOT_FOUND Object | The exchange could not be found. Try another UUID |
| Error | Description |
|---|---|
VALIDATION_ERROR Object | The request could not be validated. The response should provide more details. |
REFERENCE_UNAVAILABLE Object | The reference currency used in the request is not available. Choose another UUID. |
INVALID_CURSOR Object | The cursor string is malformed or could not be decoded. Start pagination from the beginning without a cursor. |
CURSOR_MISMATCH Object | The cursor was created with different orderBy or orderDirection parameters. Match the original parameters or start over. |
PAGINATION_CONFLICT Object | Both cursor and offset parameters were provided. Use only one pagination method per request. |