# httpay.xyz DefiLlama DeFi Analytics Gateway

> httpay.xyz DefiLlama DeFi Analytics 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-08).

Proxies requests to the DefiLlama DeFi analytics API via a pay-per-call x402 payment gateway, enabling access to TVL, protocol, yield, and chain data.

## Facts

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

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-gateway-462e81df -d '<json body>'
```

Example prompt: Can you pull the current TVL and protocol stats for Uniswap from DefiLlama, including its chain breakdown?

## When to prefer this

Use this endpoint when your agent needs programmatic access to DefiLlama's DeFi analytics data (TVL, yields, protocol stats, chain data) without managing a DefiLlama API key, paying instead per-call via x402/USDC micropayments. Ideal for agents operating in crypto-native environments that already use x402 payment flows.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required
- Invalid DefiLlama path — returns 404 Not Found from upstream
- DefiLlama upstream outage — returns 502 or 503
- Rate limiting by upstream DefiLlama API — returns 429
- Malformed path parameter — returns 400 Bad Request

## How this service works

API Gateway: DefiLlama DeFi analytics API

## Output

Returns DefiLlama API response data for the requested path — typically JSON containing TVL figures, protocol metadata, yield rates, chain breakdowns, or pool statistics depending on the endpoint queried.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-defillama-defi-analytics-gateway-462e81df/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)
