Get wallet NFT portfolio
curl --request GET \
--url https://api.zerion.io/v1/wallets/{address}/nft-portfolio \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.zerion.io/v1/wallets/{address}/nft-portfolio"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.zerion.io/v1/wallets/{address}/nft-portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/wallets/{address}/nft-portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"links": {
"self": "https://api.zerion.io/v1/wallets/0x42b9df65b219b3dd36ff330a4dd8f327a6ada990/nft-portfolio/?currency=usd"
},
"data": {
"type": "wallet_nft_portfolio",
"id": "nft-portfolio-0x42b9df65b219b3dd36ff330a4dd8f327a6ada990",
"attributes": {
"positions_distribution_by_chain": {
"arbitrum": 140.14877478334236,
"aurora": 75.59585404617037,
"avalanche": 54.39483513803602,
"binance-smart-chain": 1439.98965199211,
"ethereum": 1439.98965199211,
"fantom": 104.5039957833603,
"loopring": 0,
"optimism": 55.111921042409875,
"polygon": 37.55943746454931,
"solana": 0,
"xdai": 74.08441891963194
}
}
}
}{
"links": {
"self": "https://api.zerion.io/v1/wallets/0x42b9df65b219b3dd36ff330a4dd8f327a6ada990/nft-portfolio/?currency=usd"
},
"data": {}
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}wallets
Get wallet NFT portfolio
Aggregate NFT portfolio value for a wallet, totalled from floor prices across chains.
GET
/
v1
/
wallets
/
{address}
/
nft-portfolio
Get wallet NFT portfolio
curl --request GET \
--url https://api.zerion.io/v1/wallets/{address}/nft-portfolio \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.zerion.io/v1/wallets/{address}/nft-portfolio"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.zerion.io/v1/wallets/{address}/nft-portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/wallets/{address}/nft-portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"links": {
"self": "https://api.zerion.io/v1/wallets/0x42b9df65b219b3dd36ff330a4dd8f327a6ada990/nft-portfolio/?currency=usd"
},
"data": {
"type": "wallet_nft_portfolio",
"id": "nft-portfolio-0x42b9df65b219b3dd36ff330a4dd8f327a6ada990",
"attributes": {
"positions_distribution_by_chain": {
"arbitrum": 140.14877478334236,
"aurora": 75.59585404617037,
"avalanche": 54.39483513803602,
"binance-smart-chain": 1439.98965199211,
"ethereum": 1439.98965199211,
"fantom": 104.5039957833603,
"loopring": 0,
"optimism": 55.111921042409875,
"polygon": 37.55943746454931,
"solana": 0,
"xdai": 74.08441891963194
}
}
}
}{
"links": {
"self": "https://api.zerion.io/v1/wallets/0x42b9df65b219b3dd36ff330a4dd8f327a6ada990/nft-portfolio/?currency=usd"
},
"data": {}
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}Authorizations
Headers
Custom header that allows you to get data for testnets.
Available options:
testnet Path Parameters
The web3 wallet address. Must be a valid EVM address. Returns 400 if the address is not one Zerion tracks, such as a token contract, router or exchange hot wallet. Smart-contract wallets like Safe and ERC-4337 accounts are tracked as normal. Ethereum-compatible address (EVM).
Pattern:
^0x[a-fA-F0-9]{40}$Example:
"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
Query Parameters
Denominated currency value of returned prices
Available options:
eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf Was this page helpful?