IPFS stands for InterPlanetary File System, which is a protocol where various file types can be stored on a peer-to-peer network. All NFTs minted on Nifty Gateway are done so with an IPFS hash where the NFT's media data is stored. These IPFS hashes are minted on chain and are queryable within Etherscan.
To query your NFT's IPFS hash, head over the NFT's detail page and click on the contract address (as shown below).
From there, you'll be taken to a separate Etherscan window. Select 'Contract' and 'Read Contract'
Next, head back to the NFT's detail page on Nifty Gateway (or OpenSea) and copy the NFT's token ID located at the end of the URL
Now, navigate back to the Etherscan window, scroll down to 'tokenIPFSHash' and past your NFT's token ID. Copy the string
You can now paste your string to the end of the following URL to view your NFT's media file stored on IPFS: https://ipfs.io/ipfs/
To view the token's full metadata, repeat the steps above in the 'tokenURI' section of the contract on Etherscan and paste the string to the end of the following URL: https://ipfs.io/ipfs/
(Please note that contracts minted prior to July, 2021 may still return a URL beginning with https://api.niftygateway.com/..., as we complete Phase 3 of our NFT Preservation effort)