# searchYieldPools

**Identifier:** `defillama_searchYieldPools`

**Provider:** [DefiLlama](https://kirha.com/providers/defillama.md)

Search DeFi yield pools across all chains and protocols. Filter by chain, project, stablecoin-only, and sort by APY or TVL. Use this to find yield opportunities.

## Run it with the CLI

```bash
kirha tools run defillama_searchYieldPools \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "defillama_searchYieldPools",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "chain": {
      "description": "blockchain name (e.g., 'Ethereum', 'Arbitrum', 'Solana')",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "project": {
      "description": "protocol slug (e.g., 'aave-v3', 'lido', 'compound-v3')",
      "type": "string"
    },
    "query": {
      "description": "token symbol or project name (e.g., 'USDC', 'aave', 'STETH')",
      "type": "string"
    },
    "sortBy": {
      "default": "apy:desc",
      "enum": [
        "apy:desc",
        "apy:asc",
        "tvlUsd:desc",
        "tvlUsd:asc"
      ],
      "type": "string"
    },
    "stablecoin": {
      "description": "if true, return only stablecoin pools",
      "type": "boolean"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "pools": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "apy": {
            "type": "number"
          },
          "apyBase": {
            "type": "number"
          },
          "apyMean30d": {
            "type": "number"
          },
          "apyPct1D": {
            "type": "number"
          },
          "apyPct30D": {
            "type": "number"
          },
          "apyPct7D": {
            "type": "number"
          },
          "apyReward": {
            "type": "number"
          },
          "chain": {
            "type": "string"
          },
          "exposure": {
            "type": "string"
          },
          "ilRisk": {
            "type": "string"
          },
          "pool": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "stablecoin": {
            "type": "boolean"
          },
          "symbol": {
            "type": "string"
          },
          "tvlUsd": {
            "type": "number"
          },
          "volumeUsd7d": {
            "type": "number"
          }
        },
        "required": [
          "pool",
          "chain",
          "project",
          "symbol",
          "stablecoin",
          "ilRisk",
          "exposure"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "pools"
  ],
  "type": "object"
}
```

-----

[All DefiLlama tools](https://kirha.com/providers/defillama.md) · [< Back to tools list](https://kirha.com/tools.md)