Moralis API can't find meta data

473 Views Asked by At

I'm attempting to retrieve metadata from these NFTs using the Moralis APIs. So far I'm partially successfull with the API enpoint https://deep-index.moralis.io/api/v2/nft/{address}/{ID}?chain=matic&format=decimal I'm able to get the data for any NFT with an ID of 1 - 670. Any NFT with an ID higher than 671 gives the response { "message": "No metadata found! Try again later" }

After attempting a bit on my own I asked the question on the moralis forum. They advised me to re-sync the metadata / uri, which I did using the API https://deep-index.moralis.io/api/v2/nft/{address}/{ID}/metadata/resync?chain=matic&flag=uri&mode=sync. This gives the response { "status": "The metadata could not be updated! Try again later" } testing the API to grab the meta data again confirms that nothing was changed.

Any solutions to this issue or alternative ways to get the metadata are welcome.

2

There are 2 best solutions below

0
On

Moralis now have automatic metadata refresh, so your metadata should be available and automatically updated if there's any change to the metadata

However, if the metadata is not IPFS-based, then you still need to call the resync APIs

Since there's a problem on your end with the resync API, let me know what input you have so I can test it out on my end

Otherwise, let me know if you still have an issue on that

1
On

Some NFTs still return null or empty tokenUri or metadata. Token URI is IPFS-based.

Empty Metadata