[SOLVED] Get NFT metadata Solana API not returning Metadata

When I call the Get NFT metadata solana API, I would expect that the metadata to be returned. Instead, I get a result that has a link to the metadata.

For example, when I call the API with this address: BpPYmXCT9M5G6k7nYBMsn8Q9mChnVCirf8LhYdPxpQow

I get the following response:

{
  "mint": "BpPYmXCT9M5G6k7nYBMsn8Q9mChnVCirf8LhYdPxpQow",
  "standard": "metaplex",
  "name": "Cryptid #1386",
  "symbol": "RVN",
  "metaplex": {
    "metadataUri": "https://arweave.net/qbhwIkTkWnzSYw0nnZ-cnYT6Y_gjIpccLs1assTTE48",
    "updateAuthority": "bgft2e7PcxWVmiwTaJLTqx6RnsdL3rdMLtqNuDBi6v4",
    "sellerFeeBasisPoints": 500,
    "primarySaleHappened": 1,
    "owners": [
      {
        "address": "HhpbL8QGrTUcoVfYTV8gwEftpYrC6FScGsNYQD2JpoCV",
        "verified": 1,
        "share": 0
      },
      {
        "address": "crypQ681aWEkZkfv7sLUb2CMv4jZLmQ1DUjPHdBVMzn",
        "verified": 0,
        "share": 100
      }
    ],
    "isMutable": true,
    "masterEdition": false
  }
}

I see that one of the fields is a metadataUri, and if I fetch the data pointed to by that Uri, I get the following:

{"attributes":[{"trait_type":"background","value":"City Background Blue"},{"trait_type":"ground","value":"Sand"},{"trait_type":"sky","value":"None"},{"trait_type":"foreground","value":"Telescope Gold"},{"trait_type":"cryptid","value":"Jersey Devil Patch"},{"trait_type":"pet","value":"Carnivplant"},{"trait_type":"signature","value":"White"},{"trait_type":"frame","value":"None"}],"collection":{"name":"Cryptids of Ravenswood","family":"Ravenswood"},"description":"1,911 Cryptids live in the mysterious town of Ravenswood.","external_url":"https://www.ravenswood.town/","name":"Cryptid #1386","image":"https://arweave.net/TaqzhnkFdheuFjwd20RXViFHsn6awU1fOtKCxqau0M0","properties":{"category":"image","creators":[{"address":"crypQ681aWEkZkfv7sLUb2CMv4jZLmQ1DUjPHdBVMzn","share":100}],"files":[{"type":"image/jpeg","uri":"https://arweave.net/TaqzhnkFdheuFjwd20RXViFHsn6awU1fOtKCxqau0M0"}]},"seller_fee_basis_points":500,"symbol":"RVN"}

I expected to have an api similar to the NFT API, where the API would return the metadata, if it had been cached.

Is that the expectations for this API?

That is the expected result for this API endpoint.

Currently, the API response provides metadataUri using which we can fetch the complete NFT metadata.

Thanks. I worry that the solana API currently will require applications to make a significant amount of API calls and requests. For example, in order to implement an app that displays the nfts from a solana wallet an app needs to

  1. Call the Get NFTs by wallet API
  2. For each NFT returned from above, call the Get NFT metadata API
  3. For each of these, fetch the metadata from the url returned above

While doing the same with the NFT API, requires only a single API call

1 Like

We are aware of this. It will be available in future versions of solana API to fetch NFTs and metadata with just one API call. No ETA as of now. :raised_hands:

Sounds good. I will keep an eye out for the update

1 Like