---
agentTools:
  projectIndex: https://underdog.readme.io/llms.txt
---

# Retrieve an NFT

This endpoint allows you to retrieve an NFT by NFT ID.

# OpenAPI definition

```json
{
  "info": {
    "version": "2.0.0",
    "title": "Underdog Protocol API"
  },
  "servers": [
    {
      "url": "https://devnet.underdogprotocol.com",
      "description": "Solana Devnet"
    },
    {
      "url": "https://mainnet.underdogprotocol.com",
      "description": "Solana Mainnet"
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "GetNftResponse": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 32,
            "description": "Name stored as on-chain metadata",
            "example": "Underdog NFT"
          },
          "symbol": {
            "type": "string",
            "maxLength": 10,
            "description": "Symbol stored as on-chain metadata",
            "example": "UPDG"
          },
          "description": {
            "type": "string",
            "description": "Description stored in the metadata",
            "example": "I minted this NFT with the Underdog API"
          },
          "image": {
            "type": "string",
            "description": "Image for your NFT. When creating an NFT, this can be a base64 encoded string or a URL pointing to an image.",
            "example": "https://hatrabbits.com/wp-content/uploads/2017/01/random.jpg"
          },
          "animationUrl": {
            "type": "string",
            "description": "URL pointing to the asset's animation.",
            "example": "https://i.imgur.com/mGfz7Ig.mp4"
          },
          "externalUrl": {
            "type": "string",
            "description": "URL pointing to an external URL defining the asset",
            "example": "https://app.underdogprotocol.com"
          },
          "attributes": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                }
              ]
            },
            "description": "Key-value pairs of your NFT attributes",
            "example": {
              "points": 10,
              "name": "LeBron"
            }
          },
          "id": {
            "type": "number",
            "description": "Unique ID for an NFT in a Project"
          },
          "projectId": {
            "type": "number",
            "description": "The ID of the Project the NFT is part of"
          },
          "transferable": {
            "type": "boolean",
            "description": "Whether or not the NFT can be transferred based on the Project its a part of"
          },
          "compressed": {
            "type": "boolean",
            "description": "Whether or not the NFTs in the Project are compressed"
          },
          "mintAddress": {
            "type": "string",
            "description": "Base-58 encoded string representing an on-chain address",
            "example": "dustFPTV7dujoJjgkKtf6is3bYaFEy1nswS23vxHfvt"
          },
          "ownerAddress": {
            "type": "string",
            "description": "Wallet address for the NFT's owner",
            "example": "dustFPTV7dujoJjgkKtf6is3bYaFEy1nswS23vxHfvt"
          },
          "claimerAddress": {
            "type": "string",
            "description": "Wallet address allowed to claim the NFT",
            "example": "dustFPTV7dujoJjgkKtf6is3bYaFEy1nswS23vxHfvt"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "image",
          "id",
          "mintAddress",
          "status"
        ]
      }
    }
  },
  "paths": {
    "/v2/projects/t/{projectId}/nfts/{nftId}": {
      "get": {
        "summary": "Retrieve an NFT",
        "description": "This endpoint allows you to retrieve an NFT by NFT ID.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Transferable Projects"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "schema": {
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "nftId",
            "schema": {
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetNftResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 120,
      "2": 18,
      "3": 31,
      "4": 87,
      "5": 216,
      "6": 33,
      "7": 0,
      "8": 11,
      "9": 154,
      "10": 241,
      "11": 226
    }
  }
}
```