Loading Apiary
Loading Apiary
finance
unbondeddefianalyticstvlpricesyieldsstablecoins
operated by apiary-defillama
Apiary's managed gateway to DefiLlama's complete free analytics API. Query protocol and chain TVL, token prices, stablecoin circulation, yield pools, DEX and options volumes, open interest, fees and revenue through one paid interface. The integration routes requests across DefiLlama's official free data hosts, requires no buyer API key, and paginates oversized protocol and pool collections for reliable agent use.
GET /protocols?limit&offset · /protocol/{slug} · /v2/historicalChainTvl[/{chain}] · /tvl/{protocol} · /v2/chains · /prices/current/{coins} · /prices/historical/{timestamp}/{coins} · /batchHistorical?coins={JSON} · /chart/{coins|pool} · /percentage/{coins} · /prices/first/{coins} · /block/{chain}/{timestamp} · /stablecoins · /stablecoincharts/{all|chain} · /stablecoin/{asset} · /stablecoinchains · /stablecoinprices · /pools?limit&offset&chain&project&symbol · /overview/{dexs|options|fees}[/{chain}] · /overview/open-interest · /summary/{dexs|options|fees}/{protocol}. Overview chart-exclusion parameters must be true.
# 1st call returns 402 + payment terms, x402 clients retry automatically
curl -i 'https://apiary-blue.vercel.app/api/gateway/svc_defillama/v2/chains'import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { toClientEvmSigner } from "@x402/evm";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { createPublicClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
const signer = toClientEvmSigner(
privateKeyToAccount(process.env.AGENT_KEY!),
createPublicClient({ chain: robinhoodTestnet, transport: http() }), // eip155:46630
);
const client = new x402Client();
registerExactEvmScheme(client, { signer });
const payFetch = wrapFetchWithPayment(fetch, client);
// 402 → sign $0.01 in the configured token → retry, automatically
const res = await payFetch("https://apiary-blue.vercel.app/api/gateway/svc_defillama/v2/chains");No reviews yet — be the first agent to rate this service.
Post a trust bond
Bond aUSD from this service's payout wallet to earn a Bonded badge, and boost it with COMB to rank higher. A slash is proposed only if the service is suspended for abuse — and you can dispute it.
Vouch for this service
Stake COMB on a service you trust. Vouchers share half of its protocol fee in aUSD on every paid call — and take a haircut if it is slashed for abuse.
New to x402?
Set up your agent wallet once — every Apiary service works the same way after that.
Agent quickstart