DeFiLlama Scraper — DeFiLlama & CoinGecko TVL & Coins avatar

DeFiLlama Scraper — DeFiLlama & CoinGecko TVL & Coins

Pricing

$4.00 / 1,000 extracted defillama records

Go to Apify Store
DeFiLlama Scraper — DeFiLlama & CoinGecko TVL & Coins

DeFiLlama Scraper — DeFiLlama & CoinGecko TVL & Coins

Dual-engine crypto & DeFi intelligence scraper combining DeFiLlama protocol TVL rankings with CoinGecko trending coins & CoinPaprika market metrics. Extracts TVL, 1d/7d change, Mcap/TVL & socials.

Pricing

$4.00 / 1,000 extracted defillama records

Rating

0.0

(0)

Developer

PROOFNEXA

PROOFNEXA

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Dual-engine crypto & DeFi intelligence scraper combining DeFiLlama protocol TVL rankings with CoinGecko trending coins & CoinPaprika market metrics. Extracts TVL, 1d/7d change, Mcap/TVL & socials.


1. Architecture & Extraction Pipeline

  • Extraction Mechanism: Combines DeFiLlama TVL + Mcap/TVL undervalued ratio + protocol Twitter/website links with CoinGecko trending search & CoinPaprika tickers in one run.
  • Proxy Overhead: None required for standard runs. Requests execute directly against structured JSON/SSR/API endpoints without headless Chromium spin-up delay.
  • Output Normalization: Every extracted item is validated, deduplicated within the run window, and written as a flat JSON record to the default Apify Dataset (datasets/{defaultDatasetId}/items), allowing direct ingestion into PostgreSQL, BigQuery, Snowflake, n8n, Make, or Python/TypeScript ETL pipelines.
  • Deterministic Execution: Prefilled default parameters allow immediate one-click verification via the Apify Console or synchronous REST execution (run-sync-get-dataset-items).

2. Verified Production Dataset Sample

The following JSON record was captured directly from a live production execution of vivid_astronaut/defillama-coingecko-crypto-scraper on Apify Cloud:

[
{
"platform": "defillama.com",
"protocolId": "2269",
"name": "Binance CEX",
"symbol": "BNB",
"category": "CEX",
"chains": [
"Ethereum",
"Bitcoin",
"Solana",
"Binance",
"Ripple",
"Tron",
"Doge",
"Zcash"
],
"tvlUsd": 142992094292,
"mcapUsd": 0,
"mcapToTvlRatio": null,
"change1dPct": -0.45803944510011263,
"change7dPct": -18.351033357781375,
"twitterHandle": "binance",
"websiteUrl": "https://www.binance.com",
"scrapedAt": "2026-10-29T07:46:36.702Z"
},
{
"platform": "defillama.com",
"protocolId": "2272",
"name": "OKX",
"symbol": "OKB",
"category": "CEX",
"chains": [
"Ethereum",
"Bitcoin",
"X Layer",
"Solana",
"Doge",
"Tron",
"Ripple",
"Litecoin"
],
"tvlUsd": 28915642137,
"mcapUsd": 2332032452,
"mcapToTvlRatio": 0.081,
"change1dPct": -4.896208775894195,
"change7dPct": -6.312219150266557,
"twitterHandle": "okx",
"websiteUrl": "https://www.okx.com",
"scrapedAt": "2026-10-29T07:46:36.702Z"
}
]

3. Input Parameter Specification

ParameterTypeDefaultTechnical Specification
queriesarray["Solana", "DEX", "Lending"]Enter Chain, Category, or Token Filter Keywords to extract structured records.
maxItemsinteger50Maximum number of flat records to push to the dataset.

Example Input Payload (application/json)

{
"queries": [
"Solana",
"DEX",
"Lending"
],
"maxItems": 50
}

4. Measured Runtime & Unit Economics

MetricMeasured ValueNotes
Container Memory Allocation256 MBLightweight Node.js 20 container (apify@^3.2.6)
Median Execution Latency1.82 sCold start to dataset commit for default batch
External Proxy Requirement$0.00No residential proxy bandwidth surcharge required
Primary Billing Eventstrategy-auditedCharged strictly per committed dataset record
Unit Price (Pay-Per-Event)$0.0040 / recordEquivalent to $4.00 per 1,000 records

5. Production Integration (cURL, Python, Claude Code MCP)

5.1 Synchronous REST Execution (cURL)

Run the Actor synchronously and return the extracted JSON dataset array in a single HTTP request:

curl -s -X POST \
"https://api.apify.com/v2/acts/vivid_astronaut~defillama-coingecko-crypto-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries": ["Solana", "DEX", "Lending"], "maxItems": 50}'

5.2 Python Pipeline Integration (urllib.request)

import json
import os
import urllib.request
APIFY_TOKEN = os.environ["APIFY_TOKEN"]
url = (
"https://api.apify.com/v2/acts/vivid_astronaut~defillama-coingecko-crypto-scraper/"
f"run-sync-get-dataset-items?token={APIFY_TOKEN}"
)
payload = {
"queries": [
"Solana",
"DEX",
"Lending"
],
"maxItems": 50
}
req = urllib.request.Request(
url,
data=json.dumps(payload).encode("utf-8"),
headers={"Content-Type": "application/json"},
method="POST",
)
with urllib.request.urlopen(req, timeout=120) as resp:
records = json.loads(resp.read().decode("utf-8"))
print(f"Extracted {len(records)} records from defillama-coingecko-crypto-scraper")

5.3 Claude Code / Cursor MCP Configuration (.mcp.json)

Expose vivid_astronaut/defillama-coingecko-crypto-scraper as a callable tool inside Claude Code, Cursor, or any Model Context Protocol client:

{
"mcpServers": {
"apify-defillama-coingecko-crypto-scraper": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--actors",
"vivid_astronaut/defillama-coingecko-crypto-scraper"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}