GET /api/data-api/v3/cryptocurrency/listing
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cmc/api/data-api/v3/cryptocurrency/listingCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freePaginated coin listing (cryptoCurrencyList plus totalCount). Default sortBy=rank is not market cap.
name=listings. Default sortBy=rank and sortType=desc returns limit+1 rows with unranked CMC20 (id 38442, cmcRank null) pinned first. sortBy=market_cap and sortType=desc returns exactly limit rows. totalCount is a string. Listing quotes spell fully diluted cap fullyDilluttedMarketCap and set quotes[0].name to USD.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
start | query | int | optional | 1-based row offset. default: 1example: 1 |
limit | query | int | optional | Page size. With sortBy=rank the body can contain limit+1 rows. default: 100example: 100 |
sortBy | query | strmarket_cap | rank | optional | Verified values are rank (client default; not market cap; returns limit+1 with CMC20 first) and market_cap. default: rankexample: rank |
sortType | query | strasc | desc | optional | Verified values are desc and asc. asc on rank starts at the bottom of the board. default: descexample: desc |
convert | query | str | optional | Quote currency code. The listings default is USD. default: USDexample: USD |
convertIds | query | str | optional | Comma-separated convert ids. 2781 is USD. example: 2781 |
cryptoType | query | str | optional | Listing universe filter. Typical value: all. default: allexample: all |
tagType | query | str | optional | Tag filter. Typical value: all. default: allexample: all |
audited | query | str | optional | Audited-only flag as the string true or false. default: falseexample: false |
aux | query | str | optional | Extra field selector. No verified value is recorded. |
ids | query | str | optional | Comma-separated CMC ids. example: 1,1027 |
Response
type: object
data key: cryptoCurrencyList
count key: totalCount
pagination: offset
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/api/data-api/v3/cryptocurrency/listing?start=1&limit=100&sortBy=rank&sortType=desc&convert=USD&convertIds=2781&cryptoType=all&tagType=all&audited=false&ids=1%2C1027"