Collection

The Collection API allows you to easily get colletion assets information.

Get nft list of a collection

Get nft list of a collection

Method

get

Path

/v1/collection/nft_list

Parameters

  • id : required, contract address of nft

  • chain_id : required, chain id, eg: eth, bsc, xdai, for more info.

  • start: integer offset, default is 0, max is 100000.

  • limit: integer limit size, default is 20, max is 100.

Returns

Array of Object - An object with following fields:

  • id : string - Unique Id.

  • contract_id: string - The address of the token contract.

  • inner_id : string - The index id.

  • name : string - The nft's name.

  • description : string - The nft's description.

  • content_type: string - The nft's content type. eg: image_url, video_url, audio_url

  • content : string - The nft's content. null if not available.

  • detail_url: string - refer to the nft's detail page

  • thumbnail_url: string - refer to the nft's thumbnail page

  • contract_name: string - Contract name.

  • is_erc1155:boolean - Whether it is erc1155.

  • is_erc721:boolean - Whether it is erc721.

  • attributes: Array of the following Object

    • trait_type : string - attribute type

    • value: attribute value

Request

curl -X 'GET' \
  'https://pro-openapi.debank.com/v1/collection/nft_list?id=0x495f947276749ce646f68ac8c248420045cb7b5e&chain_id=eth&start=1000&limit=1' \
  -H 'accept: application/json'\
  -H 'AccessKey: YOUR_ACCESSKEY'

Result

[
    {
        "id": "23dc491df93d2fb37083e6f3c743cd5c",
        "description": "Santa Chess Set 2020",
        "name": "Reindeer knight_green",
        "contract_id": "0x495f947276749ce646f68ac8c248420045cb7b5e",
        "inner_id": "9297472344724926092841919778025655237517835814992492894761274031257371541554",
        "content_type": "image_url",
        "content": "",
        "thumbnail_url": "",
        "detail_url": "https://opensea.io/assets/0x495f947276749ce646f68ac8c248420045cb7b5e/9297472344724926092841919778025655237517835814992492894761274031257371541554",
        "attributes": [],
        "is_erc1155": true,
        "is_erc721": false,
        "contract_name": "OpenSea Shared Storefront"
    }
]

Last updated