CoinMarketCap API / Latest listings
CoinMarketCap tool coinmarketcap-cryptocurrency-listings-latest on looot: input fields, $0.000193 per call, output shape, and code to run it with curl, JavaScript or Python.
Paginated list of all active cryptocurrencies with the latest market data. 1 credit per 100 results returned (rounded up, min 1), multiplied by number of convert currencies beyond the first.
- Tool id:
coinmarketcap-cryptocurrency-listings-latest - Provider: CoinMarketCap
- Job: Latest cryptocurrency listings (
cryptocurrency.listings.latest) - Price: $0.000193 per call. A call that fails at the provider costs $0.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
aux |
string | no | |
circulating_supply_max |
number | no | |
circulating_supply_min |
number | no | |
convert |
string | no | Comma-separated fiat/crypto conversions, default USD. |
convert_id |
string | no | |
cryptocurrency_type |
string | no | |
limit |
integer | no | Results to return, default 100, max 5000. |
market_cap_max |
number | no | |
market_cap_min |
number | no | |
percent_change_24h_max |
number | no | |
percent_change_24h_min |
number | no | |
price_max |
number | no | |
price_min |
number | no | |
sort |
string | no | market_cap, name, price, volume_24h, etc. |
sort_dir |
string | no | |
start |
integer | no | Offset, default 1. |
tag |
string | no | all, defi, filesharing. |
volume_24h_max |
number | no | |
volume_24h_min |
number | no |
Output
Shape of the run’s result, checked against 1 real answer:
{ data: { id, name, slug, tags: string[], quote: { USD: { ... } }, symbol, cmc_rank, platform: { id, name, slug, symbol, token_address }, tvl_ratio, date_added, max_supply, last_updated, total_supply, infinite_supply, num_market_pairs, minted_market_cap, circulating_supply, self_reported_market_cap, self_reported_circulating_supply }[], status: { notice, elapsed, timestamp, error_code, total_count, credit_count, error_message } }
Run it
Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.
Example input with placeholder values:
curl -X POST "https://api.looot.ai/v1/runs" \
-H "Authorization: Bearer $LOOOT_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"endpointId":"coinmarketcap-cryptocurrency-listings-latest","input":{"aux":"<aux>"},"wait":30}'const response = await fetch("https://api.looot.ai/v1/runs", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
endpointId: "coinmarketcap-cryptocurrency-listings-latest",
input: {
aux: "<aux>",
},
wait: 30,
}),
});
const run = await response.json();
console.log(run.status, run.result);import os
import uuid
import requests
response = requests.post(
"https://api.looot.ai/v1/runs",
headers={
"Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"endpointId": "coinmarketcap-cryptocurrency-listings-latest",
"input": {
"aux": "<aux>",
},
"wait": 30,
},
timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))To let looot pick among every provider of this job instead, send job:cryptocurrency.listings.latest as endpointId; see the job page.