# DefiLlama Yield Pool History

> DefiLlama Yield Pool History is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns historical APY and TVL time series for a specific DeFi yield pool identified by its DefiLlama pool UUID.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/yields-chart
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-yield-pool-history-d59ba90a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zQRepXEcppKfcWMrse7lG

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 defillama-yield-pool-history-d59ba90a
```

Example prompt: Pull the historical APY and TVL chart for DefiLlama pool id 747c1d2a-c668-4682-b9f9-673d42f3836a so I can see how the yield has trended over time.

## When to prefer this

Use this endpoint when you need the full historical APY and TVL trajectory for a single, specific DeFi yield pool and you already have its DefiLlama pool UUID. It is ideal for charting yield trends, auditing past performance, or comparing a pool's historical returns. For current yield listings or discovering pool UUIDs, use the /yields list endpoint first.

## Known failure modes

- Invalid or unknown pool UUID returns an error or empty response
- Pool id not provided returns a 400-level validation error
- Upstream DefiLlama data unavailable causes a timeout or 5xx error
- Malformed UUID format may cause a parsing error

## How this service works

Yield pool history by DefiLlama — historical APY and TVL for one pool by pool id.

## Output

A time series of APY and TVL data points for the specified pool, showing how yield and total value locked have changed historically — essentially a chart-ready dataset indexed by timestamp.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pool"
     ],
     "properties": {
      "pool": {
       "type": "string",
       "pattern": "^[^/?#]+$",
       "maxLength": 100,
       "minLength": 1,
       "description": "DefiLlama pool id (uuid, from the /yields list)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "data": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "apy": {
            "type": "number"
           },
           "tvlUsd": {
            "type": "number"
           },
           "timestamp": {
            "type": "string",
            "format": "date-time"
           }
          }
         }
        },
        "status": {
         "type": "string"
        }
       }
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "Time the upstream was queried"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "data": [
    {
     "apy": 4.21,
     "tvlUsd": 123000000,
     "timestamp": "2026-06-30T00:00:00Z"
    }
   ],
   "status": "success"
  },
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-yield-pool-history-d59ba90a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
