CoinGecko Crypto Scraper avatar

CoinGecko Crypto Scraper

Pricing

from $4.00 / 1,000 results

Go to Apify Store
CoinGecko Crypto Scraper

CoinGecko Crypto Scraper

Extract cryptocurrency market data from CoinGecko: price, market cap, 24h volume, circulating supply, price changes (1h/24h/7d/30d), ATH/ATL, sparkline. Sort by market cap, volume, trend. Filter by category (DeFi, NFT, Layer 1). Real-time data via CoinGecko API.

Pricing

from $4.00 / 1,000 results

Rating

0.0

(0)

Developer

cloud9

cloud9

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

CoinGecko Cryptocurrency Scraper

Apify Actor for scraping cryptocurrency market data from CoinGecko.

Features

  • Comprehensive Data: Prices, market cap, volume, supply, price changes
  • Flexible Inputs: Scrape by category, page, or custom URL
  • Rate Limiting: Built-in delays to respect server limits
  • Retry Logic: Exponential backoff for failed requests
  • Proxy Support: Uses Apify residential proxies
  • User-Agent Rotation: Reduces detection risk

Input Schema

{
"searchUrl": "https://www.coingecko.com/",
"category": "decentralized-finance-defi",
"page": 1,
"perPage": 100,
"sortBy": "market_cap_desc",
"maxResults": 100
}

Input Parameters

ParameterTypeDefaultDescription
searchUrlstring-Custom CoinGecko URL to scrape
categorystring-Category slug (e.g., "decentralized-finance-defi")
pagenumber1Starting page number
perPagenumber100Results per page (max 100)
sortBystring-Sort order (e.g., "market_cap_desc")
maxResultsnumber100Maximum results to return

Output Schema

{
"name": "Bitcoin",
"symbol": "BTC",
"rank": 1,
"price": 45000.50,
"marketCap": 880000000000,
"volume24h": 25000000000,
"circulatingSupply": 19500000,
"totalSupply": 21000000,
"change1h": 0.5,
"change24h": 2.3,
"change7d": -1.2,
"change30d": 5.6,
"ath": 69000,
"athDate": "2021-11-10",
"atl": 67.81,
"atlDate": "2013-07-06",
"imageUrl": "https://...",
"coinGeckoUrl": "https://www.coingecko.com/en/coins/bitcoin",
"sparkline7d": [44000, 44500, ...]
}

Usage Examples

Scrape Top 100 Cryptocurrencies

{
"maxResults": 100
}

Scrape DeFi Category

{
"category": "decentralized-finance-defi",
"maxResults": 50
}

Scrape Specific Page

{
"page": 3,
"maxResults": 100
}

Custom URL

{
"searchUrl": "https://www.coingecko.com/en/categories/layer-1",
"maxResults": 200
}

Development

Local Testing

# Install dependencies
npm install
# Build TypeScript
npm run build
# Run locally
npm start

Build Docker Image

docker build -t coingecko-scraper .
docker run -it coingecko-scraper

Technical Details

Architecture

  • TypeScript: Type-safe implementation
  • gotScraping: HTTP client with proxy support
  • Cheerio: Fast HTML parsing
  • Apify SDK: Actor framework

Rate Limiting

  • 2-3 second delay between pages
  • Exponential backoff on errors (2s, 4s, 8s)
  • Maximum 3 retry attempts per request

Proxy Configuration

Uses Apify's residential proxy pool via APIFY_PROXY_URL environment variable.

User-Agent Rotation

Rotates between 5 common browser user agents to reduce detection.

Limitations

  • CoinGecko may update their HTML structure
  • Some advanced metrics require individual coin pages
  • Rate limits may apply on free proxies

License

MIT