Retrieve NFTs from wallets using Crossmint’s APIs
wallets.read
wallets:nfts.read
const walletAddress = 'your_wallet_address'; const chain = 'polygon-amoy'; const apiKey = 'your_api_key'; async function fetchNFTs() { const response = await fetch( `https://staging.crossmint.com/api/2022-06-09/wallets/${chain}:${walletAddress}/nfts?page=1&perPage=10`, { method: 'GET', headers: { 'X-API-KEY': apiKey, }, } ); const data = await response.json(); console.log(data); } fetchNFTs().catch(console.error);
Was this page helpful?