Skip to main content
POST
/
api
/
defillama
/
protocols
/
search
/defillama/protocols/search
curl --request POST \
  --url https://api.anysite.io/api/defillama/protocols/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "query": "<string>",
  "category": "<string>",
  "chain": "<string>"
}
'
[
  {
    "id": "<string>",
    "name": "<string>",
    "@type": "@defillama_protocol_list_item",
    "alias": "<string>",
    "symbol": "<string>",
    "category": "<string>",
    "chain": "<string>",
    "chains": [],
    "url": "<string>",
    "description": "<string>",
    "image": "<string>",
    "gecko_id": "<string>",
    "cmc_id": "<string>",
    "twitter": "<string>",
    "tvl": 123,
    "change_1h": 123,
    "change_1d": 123,
    "change_7d": 123,
    "mcap": 123,
    "listed_at": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of results

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

Max scrapping execution timeout (in seconds)

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

Filter protocols by name (case-insensitive substring)

category
string | null

Filter protocols by exact category

chain
string | null

Filter protocols by supported chain

Response

Successful Response

id
string
required
name
string
required
@type
string
default:@defillama_protocol_list_item
alias
string | null
symbol
string | null
category
string | null
chain
string | null
chains
string[]
url
string | null
description
string | null
image
string | null
gecko_id
string | null
cmc_id
string | null
twitter
string | null
tvl
number | null
change_1h
number | null
change_1d
number | null
change_7d
number | null
mcap
number | null
listed_at
integer | null