# DefiLlama — Simplified endpoint to get current TVL of a protocol

Get DefiLlama Protocol Current TVL data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including structured JSON records, identifiers, and response metadata to power lightweight kpi badges, run threshold alerts, and enrich ai agent answers.

Documentation: https://openany.si/defillama/defillama-simplified-endpoint-to-get-current-tvl-of-a-protocol/1ff76e60-1c95-47a4-acfd-5bcf3446534c/
API ID: 1ff76e60-1c95-47a4-acfd-5bcf3446534c
Provider: defillama
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/defillama/tvl/{protocol}
Page update time: 2026-12-03T02:39:15.677Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:39:15.162Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## DefiLlama Protocol Current TVL API

Provide a `protocol` slug (such as `uniswap`) in the path. Unlike `/protocol/{protocol}`, this simplified endpoint returns a single top-level JSON number representing current USD TVL.

## What You Can Build

- **Power lightweight KPI badges**: Display live TVL for a protocol in a header or widget without downloading multi-megabyte history.
- **Run threshold alerts**: Poll a watchlist of protocol slugs and trigger alerts if TVL drops below a configured USD floor.
- **Enrich AI agent answers**: Fetch an exact current TVL scalar with minimal token footprint for agent tool calls.

## Returned Data

| Field | Meaning |
| --- | --- |
| \`\` | Top-level JSON number representing the protocol’s current total value locked in USD |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DefiLlama — Simplified endpoint to get current TVL of a protocol request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "protocol": {
          "type": "string",
          "description": "protocol slug"
        }
      },
      "required": [
        "protocol"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "number"
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/defillama/tvl/uniswap' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
4962012809.795062
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What JSON type does this endpoint return?
It returns a single top-level JSON number (for example, 4962012809.795062), not a wrapped JSON object.

### What currency is the returned number in?
The returned TVL figure is denominated in USD.

### Where do I find valid protocol slugs?
List protocols with the DefiLlama All Protocols TVL API and use the protocol slug (such as uniswap or aave).

### When should I use this instead of Protocol Historical TVL?
Use this simplified endpoint when you only need the current scalar TVL; use Protocol Historical TVL for history and chain/token breakdowns.

### Does this response include per-chain TVL or borrowed balances?
No. It returns only the single aggregate TVL number for the protocol.

### Can I query multiple protocols in one call?
No. This endpoint takes one protocol slug per request; use the All Protocols TVL API to fetch all protocols at once.

## Available implementations
- defillama: https://openany.si/defillama/defillama-simplified-endpoint-to-get-current-tvl-of-a-protocol/1ff76e60-1c95-47a4-acfd-5bcf3446534c/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
