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

# Search NFTs

This endpoints allows you to search a paginated list of NFTs by owner, mint, or claimer address.

# 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": {
      "SearchNftsResponse": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "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"
              ]
            }
          },
          "page": {
            "type": "number",
            "description": "Page number",
            "example": 1
          },
          "limit": {
            "type": "number",
            "description": "Number per page",
            "example": 10
          },
          "totalPages": {
            "type": "number",
            "description": "Total number of pages",
            "example": 1
          },
          "totalResults": {
            "type": "number",
            "description": "Total number of results",
            "example": 1
          }
        },
        "required": [
          "results",
          "page",
          "limit",
          "totalPages",
          "totalResults"
        ]
      }
    }
  },
  "paths": {
    "/v2/projects/n/{projectId}/nfts/search": {
      "get": {
        "summary": "Search NFTs",
        "description": "This endpoints allows you to search a paginated list of NFTs by owner, mint, or claimer address.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Non-Transferable Projects"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "schema": {
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "number",
              "nullable": true,
              "default": 1,
              "description": "Page number"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number",
              "nullable": true,
              "maximum": 100,
              "default": 10,
              "description": "Items per page"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "sortBy",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchNftsResponse"
                }
              }
            }
          },
          "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
    }
  }
}
```