Live Defi Protocols Tvl Buy
by Scrapling x402 Data Store in Onchain & crypto
DeFi protocol TVL rankings: tracked on-chain TVL per protocol with 1d/7d change - full dataset, 867 rows in one paid download (JSON, JSONL, CSV or Markdown), refreshed about every 30 min. Free 3-row preview at /v1/datasets/live_defi_protocols_tvl/preview
https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy- Price
- $0.09
- per call in USDC
- Uptime
- 96.5%
- last 30 days
- Response time
- 643 ms
- 926 ms slowest 5%
- Last check
- Passed
- 35 min ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy
Each call costs $0.09 in USDC on Polygon, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy
content-type: application/json
{}Example response
The provider's example. We can't check it without paying.
Example response, 68 lines
{
"dataset_id": "live_defi_protocols_tvl",
"format": "json",
"record_count": 867,
"records": [
{
"category": "Lending",
"chain_tvl_usd": {
"Arbitrum": 763177750,
"Avalanche": 354469217,
"BSC": 241309082,
"Base": 751254073,
"Celo": 3245488,
"Ethereum": 19931597950,
"Gnosis": 52909388,
"Linea": 9477069,
"Mantle": 76294939,
"Metis": 26887,
"Monad": 19038139,
"Optimism": 59675897,
"Plasma": 91270639,
"Polygon": 159310339,
"Scroll": 1278992,
"Soneium": 67369,
"Sonic": 60134322,
"X Layer": 12917390,
"zkSync": 333928
},
"chains": "Ethereum, Arbitrum, Base, Avalanche, BSC, Polygon, Plasma, Mantle, Sonic, Optimism, Gnosis, Monad, X Layer, Linea, Celo",
"change_1d_pct": 2.006,
"change_7d_pct": -4.808,
"coverage": "priced on-chain balances of known protocol contracts (core assets priced via Chainlink or our DEX pools); long-tail tokens left unpriced, so TVL is a floor",
"main_chain": "Ethereum",
"market_cap_usd": null,
"name": "aave-v3",
"pools_tracked": 340,
"rank": 1,
"sanity_flags": [],
"slug": "aave-v3",
"source": "onchain",
"symbol": null,
"tvl_usd": 22587788858,
"unpriced_tokens": [
"celo:0x471ece3750da237f93b8e339c536989b8978a438",
"celo:0x765de816845861e75a25fca122bb6898b8b1282a",
"celo:0xd221812de1bd094f35587ee8e174b07b6167d9af",
"celo:0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73",
"era:0x5a7d6b2f92c77fad6ccabd7ee0624e64907eaf3e",
"era:0x703b52f2b28febcb60e1372858af5b18849fe867",
"era:0xad17da2f6ac76746ef261e835c50b2651ce36da8",
"era:0xc1fa6e2e8667d9be0ca938a54c7e0285e9df924a",
"era:0xd4169e045bcf9a86cc00101225d9ed61d2f51af2",
"mantle:0x051665f2455116e929b9972c36d23070f5054ce0",
"mantle:0x779ded0c9e1022225f8e0630b35a9b54be713736",
"mantle:0x93e855643e940d025be2e529272e4dbd15a2cf74",
"mantle:0xfc421ad3c883bf9e7c4f42de845c4e4405799e73",
"metis:0x4c078361fc9bbb78df910800a991c7c3dd2f6ce0",
"metis:0xbb06dca3ae6887fabf931640f67cab3e3a16f4dc",
"metis:0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000",
"metis:0xea32a96608495e54156ae48931a7c20f0dcc1a21",
"monad:0x10aeaf63194db8d453d4d85a06e5efe1dd0b5417",
"monad:0x211cc4dd073734da055fbf44a2b4667d5e5fe5d2",
"monad:0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34"
],
"url": null
}
]
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.09.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy' \
-H 'content-type: application/json' \
--data-raw '{}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy' \
-H 'content-type: application/json' \
--data-raw '{}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.09 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.09" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.09 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fscraplingdata.xyz%2Fv1%2Fdatasets%2Flive_defi_protocols_tvl%2Fbuy&method=POST
const res = await pay("https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.09 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.09"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://scraplingdata.xyz/v1/datasets/live_defi_protocols_tvl/buy",
json={},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 35 min ago | Passed | 402 | 227 ms | $0.09 |
| 14 h ago | Passed | 402 | 206 ms | $0.09 |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 660 ms | $0.09 |
| 4 days ago | Passed | 402 | 843 ms | $0.09 |
Show 10 older checks
| 5 days ago | Passed | 402 | 831 ms | $0.09 |
| 5 days ago | Passed | 402 | 743 ms | $0.09 |
| 5 days ago | Passed | 402 | 831 ms | $0.09 |
| 6 days ago | Passed | 402 | 695 ms | $0.09 |
| 6 days ago | Passed | 402 | 701 ms | $0.09 |
| 7 days ago | Passed | 402 | 926 ms | $0.09 |
| 7 days ago | Passed | 402 | 757 ms | $0.09 |
| 7 days ago | Passed | 402 | 719 ms | $0.09 |
| 7 days ago | Passed | 402 | 338 ms | $0.09 |
| 8 days ago | Passed | 402 | 1.1 s | $0.09 |