CoinMarketCap Scraper
Extract cryptocurrency rankings, prices, market data, and exchange info from CoinMarketCap. Built on spider-browser .
- target
- coinmarketcap.com
- success rate
- 99.9%
- latency
- ~4ms
Extract data in minutes.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://coinmarketcap.com/");
await page.content();
const data = await page.evaluate(`(() => {
const coins = [];
document.querySelectorAll("table tbody tr").forEach(el => {
const rank = el.querySelector("td:nth-child(2) p")?.textContent?.trim();
const name = el.querySelector("td:nth-child(3) p[color='text']")?.textContent?.trim();
const symbol = el.querySelector("td:nth-child(3) p[color='text3']")?.textContent?.trim();
const price = el.querySelector("td:nth-child(4) span")?.textContent?.trim();
const change = el.querySelector("td:nth-child(5) span")?.textContent?.trim();
if (name) coins.push({ rank, name, symbol, price, change });
});
return JSON.stringify({ total: coins.length, coins: coins.slice(0, 20) });
})()`);
console.log(JSON.parse(data));
await spider.close(); One endpoint for coinmarketcap.com.
Structured JSON from coinmarketcap.com with a single POST. AI-resolved selectors, cached on the first call.
curl -X POST https://api.spider.cloud/fetch/coinmarketcap.com/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/coinmarketcap.com/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/coinmarketcap.com/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data); Fields you can pull.
Market data capture
Extract real-time quotes, charts, and financial metrics from coinmarketcap.com.
Dynamic charts
Full browser rendering for interactive charts, tables, and streaming tickers.
Bulk screening
Process thousands of tickers and financial instruments concurrently.
More Finance scrapers.
Yahoo Finance Scraper
Extract stock quotes, financial statements, analyst ratings, and market news from Yahoo Finance.
Google Finance Scraper
Extract stock quotes, market indices, and financial news from Google Finance.
CoinGecko Scraper
Extract cryptocurrency prices, market caps, volume data, and historical charts from CoinGecko.
Start scraping coinmarketcap.com.
Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.