Skip to main content
POST
/
api
/
debank
/
users
/
protocols
/debank/users/protocols
curl --request POST \
  --url https://api.anysite.io/api/debank/users/protocols \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "id": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "DebankProtocol",
    "name": "<string>",
    "chain": "<string>",
    "usd_value": 123,
    "image": "<string>",
    "positions": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
id
string
required

Wallet address (EVM 0x address)

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

count
integer
required

Max number of DeFi protocol positions to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:DebankProtocol
name
string | null
chain
string | null
usd_value
number | null
image
string | null
positions
object[]