# DefiLlama TVL Lookup for Uniswap

> DefiLlama TVL Lookup for Uniswap is a paid API for AI agents from api.web3identity.com, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-14).

Returns the Total Value Locked (TVL) for the Uniswap DeFi protocol, sourced from DefiLlama

## Facts

- Endpoint: GET https://api.web3identity.com/api/defi/tvl/uniswap
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-web3identity-com-e45cabb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y1Z4crHb4PdKj8_OoSCO7

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 api-web3identity-com-e45cabb7
```

Example prompt: What's the current total value locked in Uniswap across all chains? Pull the latest TVL figure from DefiLlama.

## When to prefer this

Use this endpoint when you need real-time or near-real-time TVL data specifically for Uniswap and want DefiLlama as the authoritative source. Prefer this over generic DeFi APIs when you need the TVL broken down by chain and trust DefiLlama's aggregation methodology.

## Known failure modes

- DefiLlama upstream unavailable — returns 5xx or empty response
- Protocol data temporarily stale — TVL may be slightly delayed
- Rate limit exceeded if called at high frequency
- Payment failure if x402 payment header is missing or invalid — returns 402

## How this service works

Get Total Value Locked for a DeFi protocol from DefiLlama

## Output

Returns a JSON object containing the numeric TVL value in USD, the protocol name ('uniswap'), and an array of chains on which Uniswap has locked value.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "tvl": {
       "type": "number"
      },
      "chains": {
       "type": "array"
      },
      "protocol": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-web3identity-com-e45cabb7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.web3identity.com](https://www.zero.xyz/host/api.web3identity.com/llms.txt)
