A

Agentbit · Defi Protocol

by Agentbit

POSTBase

$0.002

per call · USD Coin on Base

DeFi protocol fundamentals in one call: current TVL, 1-day and 7-day change, category, chains and website for any protocol — search by name, or screen the whole universe by category and chain ranked by TVL. Open DefiLlama data, refreshed server-side every 15 minutes.

Endpoint

POST https://agentbit.app/v1/defi/protocol

1

Calls / 30d

1

Unique payers / 30d

Sep 6

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agentbit.app/v1/defi/protocol", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "category": "lending",
    "chain": "base",
    "limit": 5
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agentbit.app/v1/defi/protocol" \
  -H "Content-Type: application/json" \
  -d '{"category":"lending","chain":"base","limit":5}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "protocols": [
    {
      "category": "Lending",
      "chains": [
        "Ethereum",
        "Base",
        "Arbitrum"
      ],
      "change_1d_percent": -0.42,
      "change_7d_percent": 2.13,
      "name": "AAVE V3",
      "slug": "aave-v3",
      "tvl_usd": 21500000000,
      "url": "https://aave.com"
    }
  ],
  "result_count": 1,
  "universe_size": 3900
}

Payment details

Pay to0x4395c7e383b7e05665aad7f36ed77c01923dd965
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of DeFi and the homepage with a featured placement.

Get featured →

More from Agentbit & similar services