Marketplace API
Retrieve collection details

Retrieve collection details#

This interface is used to retrieve more information about individual collections, including real-time statistics such as floor prices.

Request address#

GET https://www.okx.com/api/v5/mktplace/nft/collection/detail

Request param#

ParameterTypeRequiredDescription
slugStringYesCollection slug, which is the unique identifier of the collection

Response param#

ParameterTypeDescription
nameStringCollection name
desStringCollection description
imageStringCollection logo URL
backgroundImageStringCollection background image URL
slugStringCollection slug, which is the unique identifier of the collection
certificateFlagBooleanCollection certification flag
officialWebsiteStringCollection official website
instagramUrlStringThe Instagram URL of the collection
discordUrlStringThe Discord URL of the collection
mediumUrlStringThe Medium URL of the collection
twitterUrlStringThe Twitter URL of the collection
categoryListArrayThe category list of the collection
assetContractsArrayAn array of the asset contract model that are associated with this collection, including the contract address, the protocol standard, the owner address, and whether the ERC-2981 protocol is supported, etc.
statsObjectA dictionary containing some statistics related to this collection, including the trade volume and the floor prices. An object of the collection stats model

Request example#

shell
curl -X GET "https://www.okx.com/api/v5/mktplace/nft/collection/detail" \
  -H 'OK-ACCESS-KEY: XXX' \
  -H 'OK-ACCESS-TIMESTAMP: XXX' \
  -H 'OK-ACCESS-PASSPHRASE: XXX' \
  -H 'OK-ACCESS-SIGN: XXX' \
  -d "slug=xxx"

Response example#

200
{
  "code": 0,
  "data": {
    "cursor": "NA==",
    "data": [
    {
      "assetContracts": [
        {
          "chain": "Ethereum",
          "contractAddress": "0xff9c1b15b16263c61d017ee9f65c50e4ae0113d7",
          "erc2981": false,
          "ownerAddress": "0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00",
          "tokenStandard": "erc721"
        }
      ],
      "backgroundImage": "https://static.coinall.ltd/cdn/nft/files/collection/8000-background.png",
      "categoryList": [],
      "certificateFlag": true,
      "des": "Loot is randomized adventurer gear generated and stored on chain. Stats, images, and other functionality are intentionally omitted for others to interpret. Feel free to use Loot in any way you want.",
      "discordUrl": "",
      "image": "https://static.coinall.ltd/cdn/nft/78d10ba9-63fc-4104-a13c-73e51ac2acb6.jpg",
      "instagramUrl": "",
      "mediumUrl": "",
      "name": "Loot (for Adventurers)",
      "officialWebsite": "https://lootproject.com",
      "slug": "loot-for-adventurers",
      "stats": {
        "floorPrice": "866.74799",
        "latestPrice": "616.4433",
        "ownerCount": "2522",
        "totalCount": "7779",
        "totalVolume": "552505219.5371664"
      },
      "twitterUrl": ""
    }
    ]
  },
  "msg": ""
}