GETGet NFT collections

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/nft/collections
CU150

Query NFT collections that match the specified filters.

Query Parameters
collection_addressstring[]

Collection address in any form. Maximum: 1024 addresses.

owner_addressstring[]

Address of the collection owner in any form. Maximum: 1024 addresses.

limitinteger (int32)

Limit the number of rows to return. Use with offset to batch requests.

offsetinteger (int32)

Skip the first N rows. Use with limit to batch requests.

Responses
{address}object

Address book entry. The key is an address that appears in the response, in raw format workchain:hex.

domainstring

TON DNS domain linked to the address. null when no domain is associated.

interfacesstring[]

Contract interfaces detected for the address, for example wallet_v4r2. Can be null or empty when none are detected.

user_friendlystring

Address in user-friendly base64url format.

{address}object

Metadata entry. The key is the address of the token contract, in raw format workchain:hex.

is_indexedboolean

Whether the metadata for this address has been indexed. When false, token_info may not be available yet.

token_infoobject[]

List of token metadata entries (Jetton, NFT collection, or NFT item) associated with the address.

descriptionstring

Description of the token from its metadata.

extraobject

Additional metadata fields that are not covered by the other properties, for example decimals, uri, and resized image URLs.

imagestring

URL of the token image from its metadata.

is_nsfwboolean

Whether the token is flagged as NSFW (not safe for work) content.

is_scamboolean

Whether the token is flagged as a scam.

namestring

Name of the token from its metadata.

nft_indexstring

Index of the NFT item within its collection, as a decimal string. Present only for NFT items.

symbolstring

Ticker symbol of the token from its metadata. Present for Jettons.

typestring

Kind of token contract the metadata belongs to, for example jetton_masters, nft_collections, or nft_items.

validboolean

Whether the token metadata was retrieved and parsed successfully.

addressstring

Address of the NFT collection contract in raw format workchain:hex.

code_hashstring

Hash of the NFT collection contract code cell, base64 encoded.

collection_contentobject

Content data stored in the collection contract, such as the metadata uri or on-chain metadata attributes.

data_hashstring

Hash of the NFT collection contract data cell, base64 encoded.

last_transaction_ltstring

Logical time (lt) of the last transaction of the NFT collection contract, as a decimal string.

Example: 0

next_item_indexstring

Index that the collection assigns to the next minted NFT item, as a decimal string. It also equals the number of minted items when items are minted sequentially, and is -1 for collections with non-sequential indexes.

owner_addressstring

Address of the collection owner in raw format workchain:hex. null when the collection has no owner.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/nft/collections?limit=1&offset=0" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "nft_collections": [
    {
      "address": "-1:035D180AA6918B9F3D9756DEA7D599CB908290E18FEE14CD4B0788DC2B60CED7",
      "owner_address": null,
      "last_transaction_lt": "52186208000001",
      "next_item_index": "-1",
      "collection_content": {
        "name": "test collection"
      },
      "data_hash": "YWFEYzei52qsvP40CDWUihGoTH62cqW6/NgClIVm5nQ=",
      "code_hash": "iEEMIg+CIYFmgmnOg+ucwNOznCGZnItV3gM2CiDnwoI="
    }
  ],
  "address_book": {
    "-1:035D180AA6918B9F3D9756DEA7D599CB908290E18FEE14CD4B0788DC2B60CED7": {
      "user_friendly": "Ef8DXRgKppGLnz2XVt6n1ZnLkIKQ4Y_uFM1LB4jcK2DO17mi",
      "domain": null,
      "interfaces": [
        "nft_collection"
      ]
    }
  },
  "metadata": {
    "-1:035D180AA6918B9F3D9756DEA7D599CB908290E18FEE14CD4B0788DC2B60CED7": {
      "is_indexed": true,
      "token_info": [
        {
          "valid": true,
          "type": "nft_collections",
          "name": "test collection",
          "is_nsfw": false,
          "is_scam": false
        }
      ]
    }
  }
}