Skip to main content
POST
/
api
/
defillama
/
pools
/
search
/defillama/pools/search
curl --request POST \
  --url https://api.anysite.io/api/defillama/pools/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "chain": "Ethereum",
  "project": "lido",
  "stablecoin": true,
  "min_apy": 1,
  "min_tvl": 1
}
'
[
  {
    "pool": "<string>",
    "@type": "@defillama_pool",
    "chain": "<string>",
    "project": "<string>",
    "symbol": "<string>",
    "tvl_usd": 123,
    "apy": 123,
    "apy_base": 123,
    "apy_reward": 123,
    "apy_mean_30d": 123,
    "apy_pct_1d": 123,
    "apy_pct_7d": 123,
    "apy_pct_30d": 123,
    "volume_usd_1d": 123,
    "volume_usd_7d": 123,
    "is_stablecoin": false,
    "il_risk": "<string>",
    "exposure": "<string>",
    "pool_meta": "<string>",
    "reward_tokens": [],
    "underlying_tokens": [],
    "predictions": {
      "@type": "@defillama_pool_prediction",
      "predicted_class": "<string>",
      "predicted_probability": 123,
      "binned_confidence": 123
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of pools to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
chain
string | null

Filter by blockchain name

Example:

"Ethereum"

project
string | null

Filter by project

Example:

"lido"

stablecoin
boolean | null

Filter to stablecoin pools only

min_apy
number | null

Minimum APY (percent)

Required range: x >= 0
min_tvl
number | null

Minimum TVL in USD

Required range: x >= 0

Response

Successful Response

pool
string
required
@type
string
default:@defillama_pool
chain
string | null
project
string | null
symbol
string | null
tvl_usd
number | null
apy
number | null
apy_base
number | null
apy_reward
number | null
apy_mean_30d
number | null
apy_pct_1d
number | null
apy_pct_7d
number | null
apy_pct_30d
number | null
volume_usd_1d
number | null
volume_usd_7d
number | null
is_stablecoin
boolean
default:false
il_risk
string | null
exposure
string | null
pool_meta
string | null
reward_tokens
string[]
underlying_tokens
string[]
predictions
DefillamaPoolPrediction · object