NFT API, giving total wrong results. EG "unrevealed" when token was revealed and has image URL months ago

Hi
How does the NFT API get an update for all tokens of an NFT project please?

Iā€™m trying to pull some data on a few projects and it comes back with metadata as if the project is unrevealed. Missing traits, no image URLS etc. Projects Iā€™ve tried are months and sometimes years old, and metadata is wrong.

Go to etherscan - yes the project has proper URIs
Try getting the metadata from etherscan - yes. Copy image URL - it works?
But in Moralis API it returns all tokens with, for example, ā€œunrevealed.gifā€ for their images.
Do you guys cache stuff? Am I getting old, cached data?

How to refresh all 10k (or 5555 or 8888) of a project?
Resync seems to only be 1 token at a time - this is not helpful. And I donā€™t even know what projects are wrong until after I pull the data!

For example
https://docs.moralis.io/web3-data-api/evm/reference/get-contract-nfts?
Looking at the Avalanche project Woofys
https://snowtrace.io/address/0xBaCD77aC0c456798e05de15999CB212129d90b70/contract/43114/code
Look at token 10 as an example
It returns metadata address of
https://static.cozyverse.xyz/woofys/metadata/10.json
And looking at that JSON the image URL is
https://static.cozyverse.xyz/woofys/images/00010.png

But in the result from the API, the metadata that Moralis gives is:
ā€œtoken_uriā€: ā€œhttps://static.cozyverse.xyz/woofys/metadata/0.jsonā€,
ā€œmetadataā€: {
ā€œnameā€: ā€œWoofy Capsuleā€,
ā€œimageā€: ā€œhttps://static.cozyverse.xyz/woofys/images/00000.gifā€,

And same for all tokens, theyā€™re all wrong.

How to force update for a set of contracts please?

Thanks

Hi @JimBob

Our API does not recognize the metadata changes. In such cases, you can use the reSyncMetadata endpoint to resync the tokenURI and tokenMetadata.

Are you insane? Resync metadata is ONE TOKEN AT A TIME
I came back to Moralis after a long time because it seemed like you were doing better but youā€™re all still half-assing this, arenā€™t you?
Whatā€™s the point of an NFT API if everything is wrong
Itā€™s not one project
Itā€™s a lot of them

Most of the token-revealable NFT contracts use a custom contract code for it so there is no standard way to recognize such token metadata updates. And we only auto-refresh NFT metadata if it is available on IPFS storage.


We could run a force update of the entire contract but it does take time due to the large number of NFTs.
If you are sure that all the NFTs metadata are outdated we can initiate a force update on the contract.


You could also add a button on your website for users to force the metadata resync, just like how Opensea handles such cases.:grinning_face_with_smiling_eyes:
image

I donā€™t know about ā€œmostā€. It usually mentions ā€œURIā€, some regexā€™s could find it probably.

I could add a button but Iā€™m not making a website, Iā€™m undertaking a research project and data analysis.

Also - button for what? Again as I said above, to refresh a single NFT? Is not so useful. Because meanwhile if I WAS building a Dapp of some kind as a marketplace or swap site or NFT info whatever, the other 9,998 would still be wrong until everyone manually refreshed their own tokens.

I suppose we could use the API credits to iterate through them but we wouldnā€™t even get through one project a week then.

I will run the force update for this contract. It should be fixed soon.

Thanks John thatā€™s helpful, kind of you

But as I said, Iā€™m seeing this with other collections and so I need to look into another method for data collection.

Thanks anyway though