How to retrieve a minted NFTs

Mint an NFT before calling the lists NFTs

if you wish to list your NFTs collection on your platform, make sure you have minted it before you start making an API call. Read more about "how to mint an NFT" for more details.

Retrieve a minted NFTs

/nft/nfts API is used to retrieve the list of NFTs. This API uses lots of parameters that are given below like user, batch number or symbol to get your minted tokens but you can use your user to fetch all your NFTs.

  • user - The address or ID of the owner of the NFTs.
  • uuid - The UUID of the NFT.
  • symbol - The symbol of the NFT batch.
  • batch - The batch number.
  • sequence - The sequence of the NFT within the batch.
  • nft - The NFT number.
  • domain - The domain of the issuer of the NFTs.
  • tags - Filter by tags.
  • count - Number of results to return.
  • page - Number of results to return.
curl 
 --request GET 'https://api.nft.kred/nft/nfts?token=YourTokenValue&user=615c1567e9b6cca632112de6&count=20&page=1' \
 --header 'Accept: application/json'
import requests

url = "https://api.nft.kred/nft/nfts?token=YourTokenValue&user=YourUser&count=50&page=1"

payload={}
headers = {
  'Accept': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Sample Response

{
"base":"string"
"login": array
"loginapp":"string"
"meta": array
"nft": array
}