# Joe Market Data – DeFi Analytics

> Joe Market Data – DeFi Analytics is a paid API for AI agents from joe-market-data.marnick-yezo.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns DeFi ecosystem analytics including chain TVL breakdowns and top protocol rankings sourced from DefiLlama

## Facts

- Endpoint: GET https://joe-market-data.marnick-yezo.workers.dev/defi-analytics
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/joe-market-data-defi-analytics-8cc33af6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oc3xAKQGqLcX5kVEqn8Xp

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 joe-market-data-defi-analytics-8cc33af6
```

Example prompt: Pull the latest DeFi analytics from DefiLlama — I want to see which chains and protocols have the highest TVL right now, and optionally filter by the Lido protocol.

## When to prefer this

Choose this endpoint when you need aggregated DeFi TVL data across chains and protocols from DefiLlama, especially within an Otto-compatible or x402-payment agent pipeline. Prefer this over direct DefiLlama API calls when you need a pay-per-call micropayment model on Base with no API key management.

## Known failure modes

- Invalid or unrecognized protocol slug returns no data or an empty result set
- DefiLlama upstream unavailability may cause delayed or failed responses
- Missing required 'input' object in the request body returns a validation error
- Rate limiting or payment failure may result in 402 responses

## How this service works

Public-data market intel for AI agents: token prices (CoinGecko), DefiLlama TVL/fees/stables, Polymarket odds. Otto-compatible path names. $0.001 USDC per call on Base. No LLM/TTS/image.

## Output

Returns a JSON object with a 'data' field containing an array of chains with their TVL values, a list of top protocols with their TVL, and a 'meta' field confirming the source (DefiLlama), endpoint path, and cost (0.001 USDC).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "protocol": {
       "type": "string",
       "description": "Optional protocol slug (e.g. aave, lido, uniswap)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "chains": [
    {
     "tvl": 50000000000,
     "name": "Ethereum"
    }
   ],
   "top_protocols": [
    {
     "tvl": 30000000000,
     "name": "Lido"
    }
   ]
  },
  "meta": {
   "source": "defillama",
   "endpoint": "/defi-analytics",
   "cost_usdc": "0.001"
  },
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/joe-market-data-defi-analytics-8cc33af6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from joe-market-data.marnick-yezo.workers.dev](https://www.zero.xyz/host/joe-market-data.marnick-yezo.workers.dev/llms.txt)
