# httpay.xyz – DefiLlama DeFi Analytics API Gateway

> httpay.xyz – DefiLlama DeFi Analytics API Gateway is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Proxies GET requests to the DefiLlama DeFi analytics API, providing access to TVL, protocol, chain, yield, and stablecoin data via a pay-per-call gateway

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/defillama/%7B*path%7D/*
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-defillama-defi-analytics-api-gateway-3d522cec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_khFFC-tyx3fOF3l7GmGnv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability httpay-xyz-defillama-defi-analytics-api-gateway-3d522cec -d '<json body>'
```

Example prompt: Pull the current total value locked (TVL) for Uniswap from DefiLlama and also show me the top 10 DeFi protocols ranked by TVL right now.

## When to prefer this

Use this endpoint when you need programmatic access to DefiLlama DeFi analytics data (TVL, yields, stablecoins, chain stats) and want to pay per call in USDC via x402 without managing API keys. Ideal for agents that need on-demand DeFi data without a subscription.

## Known failure modes

- Invalid or malformed path returns 404 from upstream DefiLlama API
- Payment not included or insufficient USDC results in 402 Payment Required
- DefiLlama upstream API downtime causes 502/503 gateway error
- Rate limiting on upstream DefiLlama free tier returns 429
- Protocol or pool identifier not found returns empty or null data

## How this service works

API Gateway: DefiLlama DeFi analytics API

## Output

JSON response from DefiLlama containing DeFi analytics data such as protocol TVL, chain TVL breakdowns, yield/APY figures, stablecoin circulating supply, or other requested metrics depending on the path queried.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-defillama-defi-analytics-api-gateway-3d522cec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
