OpenSea · Schema

SearchResultResponse

A single search result with a type discriminator and the corresponding typed object

NFTMarketplaceWeb3BlockchainTradingDigital Assets

Properties

Name Type Description
type string The type of search result
collection object Collection details, present when type is 'collection'
token object Token details, present when type is 'token'
nft object NFT details, present when type is 'nft'
account object Account details, present when type is 'account'
View JSON Schema on GitHub

JSON Schema

SearchResultResponse.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opensea.io/schemas/SearchResultResponse",
  "title": "SearchResultResponse",
  "type": "object",
  "description": "A single search result with a type discriminator and the corresponding typed object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of search result",
      "example": "collection"
    },
    "collection": {
      "$ref": "#/components/schemas/CollectionSearchResponse",
      "description": "Collection details, present when type is 'collection'"
    },
    "token": {
      "$ref": "#/components/schemas/TokenSearchResponse",
      "description": "Token details, present when type is 'token'"
    },
    "nft": {
      "$ref": "#/components/schemas/NftSearchResponse",
      "description": "NFT details, present when type is 'nft'"
    },
    "account": {
      "$ref": "#/components/schemas/AccountSearchResponse",
      "description": "Account details, present when type is 'account'"
    }
  },
  "required": [
    "type"
  ]
}