Skip to main content
POST
/
api
/
defillama
/
prices
/defillama/prices
curl --request POST \
  --url https://api.anysite.io/api/defillama/prices \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "coins": [
    "<string>"
  ],
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@defillama_price",
    "price": 123,
    "symbol": "<string>",
    "timestamp": 123,
    "confidence": 123,
    "decimals": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
coins
string[]
required

Token identifiers as 'chain:address' (e.g. 'ethereum:0xC02a...') or 'coingecko:slug' (e.g. 'coingecko:ethereum'). Accepts a list or a single comma-separated string.

Minimum array length: 1
Examples:
[
"ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"coingecko:bitcoin"
]

"coingecko:ethereum,coingecko:bitcoin"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@defillama_price
price
number | null
symbol
string | null
timestamp
integer | null
confidence
number | null
decimals
integer | null