Blockin.ai OpenAPI
  • Welcome
  • 🥳GETTING STARTED
    • 🗝️Creating an Account
    • 👀Product Overview
  • 😈REFERENCE
    • 🐙API Reference
      • Chain
        • Query available chain list
      • Protocol
        • Query available protocol
        • Query available protocol list
        • Query all available protocol list
        • Query available tagInfo list
        • Query available protocol detail
        • Query available protocol detail list
        • Query all available protocol detail list
        • Query liquidity change list by chain name and pool address
        • Query swap list by chain name and pool address
      • User
        • Query used chain by user address
        • Query chain balance by chain name and user address
        • Query protocol portfolio list by chain name and user address
        • Query protocol portfolios on all chains by user address
        • Query protocol portfolio by chain name, protocol name and user address
        • Query protocol portfolios on all chains by protocol name and user address
        • Query protocol top holders by chain name and protocol name
        • Query simple protocol list by chain name and user address
        • Query simple protocol list on all chains by user address
        • Query token list by chain name and user address
        • Query token list on all chains by user address
        • Query token top holders by chain name and token address
        • Query collections by chain name and user address
        • Query collections on all chains by user address
        • Query collections on Bitcoin by user address
        • Query items by chain name, collection address and user address
        • Query inscriptions on Bitcoin by user address
        • Query items transfer list by chain name and user address
        • Query history list by chain name and user address
        • Query all history list by user address
        • Query User history - Advanced edition
        • Query total balance on all supported chains by user address
        • Query token authorized list by chain name and user address
        • Query nft authorized list by chain name and user address
        • Query 24-hour net assets curve by chain name and user address
        • Query 24-hour net assets curve on all supported chains by user address
        • Query 24-hour protocol portfolios curve by chain name and user address
        • Query 24-hour protocol portfolios curve on all supported chains by user address
        • Query 24-hour wallet curve by chain name and user address
        • Query 24-hour wallet curve on all supported chains by user address
      • Token
        • Query token info
        • Query token info list
        • Query token market info list
        • Subscribe to token kline data
        • Unsubscribe token kline
        • Query pool list by chain name and token address
        • Query liquidity change list by chain name and token address
        • Query swap list by chain name and token address
        • Query real-time exchange rate
        • Query real-time token price
        • Query LP_token info
        • Query symbol's price from foreign exchange
      • NFT
        • Query collection metadata by chain name and collection address
        • Query collection trade list by chain name and collection address
        • Query item info list by chain name and collection address
        • Query item metadata by chain name, collection address and item id
        • Refresh collection metadata
        • Query inscriptions metadata on Bitcoin by inscriptions id
      • Mirror
        • Query historical token list
        • Query historical protocol portfolios
        • Query historical assets
        • Query historical token list on all supported chains
        • Query historical protocol portfolios on all supported chains
        • Query historical assets on all supported chains
        • Query historical LP_token info
      • Subscription
        • Create history subscription
        • Update history subscription
        • Delete history subscription
        • History subscription query
        • Socket Subscription Connection
        • Subscription notify
        • Alter history subscription
        • History subscription- Query Batch_no List
        • Create history subscription V2
        • Delete history subscription V2
        • Query history subscription wallet V2
        • Query history subscription detail V2
        • History subscription Message query V2
        • Socket Subscription Connection V2
    • 📜Enumeration
    • 🎭Error Code
      • Pre exec error code
    • 🍪Related Features
      • Usage
    • ⌨️Change Log
    • 😎Terms of Service
Powered by GitBook
On this page
  • Description
  • Request Header
  • Request Parameters
  • Response
  • Public Response
  • Response Content
  • Pagination Content
  • CollectionItem Content
  • Attribute Content
  • Request Sample
  • Successful Response Sample
  • Failed Response Sample
  1. REFERENCE
  2. API Reference
  3. NFT

Query item info list by chain name and collection address

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

  • Path: https://api.blockin.ai/v2/nft/collection/item_list

  • Description: Query collection item info list

Request Header

Parameter
Required
Type
Description

Content-Type

Y

String

application/json

AccessKey

Y

String

1bdb01c947c54919b64d1fc6794atest

Request Parameters

Parameter
Required
Type
Description

address

Y

String

Collection's address

chain_name

Y

String

page

Y

Integer

Page number

page_size

Y

Integer

Page size(minimum:1 ,maximum:100)

Response

Public Response

Parameter
Required
Type
Description

success

Y

Boolean

Success Boolean

data

N

Object

Response object

error_code

N

String

Error code

error_msg

N

String

Error message

Response Content

Parameter
Required
Type
Description

list

N

List

Paginated list

pagination

N

Object

Page info

Pagination Content

Parameter
Required
Type
Description

current

Y

String

Current page number

page_size

Y

Integer

Current page size

total

Y

Integer

Total number

count_page

Y

Integer

Total page number

CollectionItem Content

Parameter
Required
Type
Description

collection_address

Y

String

Collection's address

collection_name

N

String

Collection's name

symbol

N

String

Collection's symbol

item_id

Y

String

The item id of the NFT in Number

name

N

String

Collection's item name

description

N

String

Description

item_url

N

String

URL of the item metadata

minter

N

String

The user address who minted the item

mint_block_height

N

Long

The block height when the NFT was minted

mint_block_time

N

Long

The block time when the NFT was minted

image

N

String

Item's image url

animation

N

String

Animation url

external_url

N

String

External image url

amount

N

String

The amount of item

attributes

N

List

List of attributes

last_metadata_sync

N

Long

When the metadata was last updated at

Attribute Content

Parameter
Required
Type
Description

trait_type

Y

String

Item's trait type

value

Y

String

Trait value

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/nft/collection/item_list?address=0x0ffce51b969c4aab7ce078ba7127385ac5939204&page=1&page_size=10&chain_name=Ethereum"

Successful Response Sample

{
    "success": true,
    "data": {
        "list": [
            {
                "collection_address": "0x0ffce51b969c4aab7ce078ba7127385ac5939204",
                "collection_name": "Pepe Millionaires",
                "symbol": "PEPEMIL",
                "item_id": "321",
                "name": "Pepe Millionaires #321",
                "description": null,
                "item_url": "ipfs://bafybeiga3vv4ly6xnm7uxjqmjokwp47lxryeubcbr7p3a7q7jnvdhtyfde/321",
                "minter": "0xb798e1944d57dac59da1ddd833506f49967dd6f3",
                "mint_block_height": 17471588,
                "mint_block_time": 1686665567,
                "image": "https://ipfs.io/ipfs/bafybeigkfchr45s2ih2k5jh2p6p2nhtcouvshivokf6udatcbx3ozejkum/321.png",
                "animation": null,
                "external_url": "https://ipfs.io/ipfs/bafybeigkfchr45s2ih2k5jh2p6p2nhtcouvshivokf6udatcbx3ozejkum/321.png",
                "amount": "1",
                "attributes": [
                    {
                        "value": "Aquamarine",
                        "trait_type": "Background"
                    },
                    {
                        "value": "Pepe",
                        "trait_type": "Body"
                    },
                    {
                        "value": "Pepe T-shirt Red",
                        "trait_type": "Clothes"
                    },
                    {
                        "value": "Closed",
                        "trait_type": "Eyes"
                    },
                    {
                        "value": "Lincoln",
                        "trait_type": "Head"
                    },
                    {
                        "value": "Happy",
                        "trait_type": "Mouth"
                    }
                ],
                "last_metadata_sync": 1687459246
            }
        ],
        "pagination": {
            "current": 3,
            "page_size": 1,
            "total": 3,
            "count_page": 3
        }
    },
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

{
    "success": false,
    "data": null,
    "error_code": "INVALID_PARAM",
    "error_msg": "Invalid chain"
}
PreviousQuery collection trade list by chain name and collection addressNextQuery item metadata by chain name, collection address and item id

Last updated 1 year ago

eg : eth,Ethereum,pol.

😈
🐙
Enumeration