# LensCrypt DeFi Yields API

> LensCrypt DeFi Yields API is a paid API for AI agents from tolens.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Fetches current DeFi yield opportunities and APY data across protocols

## Facts

- Endpoint: GET https://tolens.vercel.app/api/yields
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lenscrypt-defi-yields-api-21bb76dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4jfV4ov9OhTLYBvCTi80V

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 lenscrypt-defi-yields-api-21bb76dc
```

Example prompt: What are the best DeFi yield farming opportunities available right now — show me protocols with the highest APY so I can decide where to put my crypto to work?

## When to prefer this

Use this endpoint when you need current DeFi yield rates and APY comparisons across multiple protocols in a single call. Prefer over manual protocol checks when building yield optimization agents or comparing passive income opportunities. Best for agents that need yield data alongside other crypto intelligence from the same LensCrypt suite (wallet analytics, token safety, etc.) to avoid managing multiple API keys.

## Known failure modes

- Payment required (402) if USDC x402 payment header not included
- Empty or sparse results if no yield data is currently indexed
- Rate limiting if called too frequently
- Network errors from Vercel deployment downtime
- Stale data if underlying yield aggregator sources are lagging

## How this service works

81 paid REST endpoints covering wallet analytics, DeFi yields, token safety, smart money tracking, whale alerts, sniper detection, GMX perps, Solana tools, protocol stats, gas tracking, DEX quotes, NFT analytics, social signals, and 8 AI-powered endpoints (MiMo V2.5). Pay USDC via x402 protocol on Base.

## Output

Returns a JSON object with current DeFi yield data including protocol names, APY rates, pool information, and chain details across various DeFi platforms. Response includes status field and yield opportunity listings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lenscrypt-defi-yields-api-21bb76dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tolens.vercel.app](https://www.zero.xyz/host/tolens.vercel.app/llms.txt)
