CoinMarketCap cryptocurrency listings
Cryptocurrencies ranked on CoinMarketCap: id, rank, name, symbol, slug, logo, price, market cap, 24 h volume, 1 h/24 h/7 d change, circulating/total/max supply, all-time high and low, 24 h high and low, number of market pairs, tags, platform (for tokens), date added, plus quotes with every requested currency (price, market cap, fully diluted cap, volume 24 h/7 d/30 d, change 1 h to 1 y and YTD, dominance, turnover). Sort by any column, filter coins vs tokens, by tag, by ranges of market cap, price, 24 h volume, 24 h change and circulating supply, and to audited projects (applied filters are echoed in filters). Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
sort | rank | market_cap | name | price | volume_24h | circulating_supply | total_supply | max_supply | percent_change_1h | percent_change_24h | percent_change_7d | date_added | Sort column (default market_cap). Example: market_cap |
sort_dir | desc | asc | desc (default; asc for name) or asc. |
type | all | coins | tokens | all (default), coins or tokens. |
tag | string | Tag slug, e.g. memes, defi, layer-1, ai-big-data, stablecoin. |
convert | string | Up to 3 comma-separated currencies for quotes, e.g. USD,EUR,BTC (default USD). Example: USD |
market_cap_min | number | Only coins with at least this market cap (USD). |
market_cap_max | number | Only coins with at most this market cap (USD). |
price_min | number | Only coins priced at least this (USD). |
price_max | number | Only coins priced at most this (USD). |
volume_24h_min | number | Only coins with at least this 24 h volume (USD). |
volume_24h_max | number | Only coins with at most this 24 h volume (USD). |
percent_change_24h_min | number | Only coins whose 24 h change is at least this percentage, e.g. 5 or -10. |
percent_change_24h_max | number | Only coins whose 24 h change is at most this percentage. |
circulating_supply_min | number | Only coins with at least this circulating supply. |
circulating_supply_max | number | Only coins with at most this circulating supply. |
audited | boolean | true: only projects with a published audit. |
page | integer | Page number (default 1). Pass next_page from the previous response. |
limit | integer | Coins per page, 1-200 (default 100). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/coinmarketcap/v1/listings?sort=market_cap" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/coinmarketcap/v1/listings",
params={"sort": "market_cap"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/coinmarketcap/v1/listings");
url.searchParams.set("sort", "market_cap");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).