nftstorage / nft.storage

**Notice: Uploads Decommissioned - Existing Data is Safe!** NFT.Storage Classic (classic.nft.storage) offers free decentralized storage and bandwidth for NFTs on IPFS and Filecoin. June 2024 Update: No new uploads, but all existing data is safe. Try the new NFT.Storage, which preserves data in long term Filecoin storage. Go to app.nft.storage
https://classic.nft.storage
Other
619 stars 167 forks source link

CIDs of uploaded files can't be retrieved with any API call #2720

Closed husnain-chakor closed 1 month ago

husnain-chakor commented 1 month ago

Hello, I am currently using the NFT.Storage APIs for managing NFT collections and tokens. The documentation provides comprehensive details on creating collections, adding tokens, and other functionalities. However, I am unable to find any information regarding the retrieval of CIDs (Content Identifiers) for the files uploaded to the service. Could you please clarify if there is a way to obtain the CIDs for files uploaded via the NFT.Storage API? Specifically, I am looking to understand if the CIDs are included in any response from the upload or token addition endpoints.

elizabeth-griffiths commented 1 month ago

Hi @husnain-chakor - thanks for reaching out. We're working on improving documentation around retrieval as we speak.

From our FAQ page here: We're enhancing data retrieval from NFT.Storage through collaboration with our Storage Providers to facilitate access via ipfs.io, a part of the decentralized IPFS network. This IPFS public gateway is currently under development to support efficient data retrieval. In the meantime, it's accessible for experimental use at ipfs.io/[enter CID].

For less frequent retrievals, get your content directly from the Filecoin storage provider. Learn more about retrieving from Storage Providers.

For more consistent, day-to-day retrieval needs, the IPFS.io gateway may not be suitable due to the varying reliability of this gateway. For a more suitable frequent retrieval use case, we recommend considering one of these options.

-- Please give ipfs.io/[enter CID] a try and let us know how it works for you.

husnain-chakor commented 1 month ago

Thanks for your response, I'll try the IPFS.io gateway and see if it works for me.

elizabeth-griffiths commented 1 month ago

Great! How did it work out?

elizabeth-griffiths commented 1 month ago

Bumping this up

husnain-chakor commented 1 month ago

So, it didn't work out for me. But i have left it for now and will wait for your documentation update.