---
updatedAt: 2025-06-25T21:54:17.000Z
agentTools:
  projectIndex: https://docs.nftgo.io/llms.txt
---

# Get holder addresses by collection

Return all holders' addresses of a collection given a contract address. Sort by nft_num.

# OpenAPI definition

````json
{
  "openapi": "3.0.2",
  "info": {
    "title": "API Documentation | NFTGo",
    "description": "\nNote: You can find our listing criteria here: https://docs.nftgo.io/docs/listing-criteria\n\n# Introduction\n[NFTGo.io](https://nftgo.io/) is a data analytics platform for NFTs. We provide support for NFTs on the Ethereum blockchain. This API includes:\n* Support for metrics like Market Cap and Volume (globally and per-collection)\n* NFT metadata and price information\n* Access to the custom rarity model\n* Address and portfolio tracking\n* Collection transaction history\n* NFT and profit rankings\n* .. And much more!\n\n# Authentication\nTo start exploring the NFTGo API, you need to sign up for an API key [here](https://nftgo.io/data-api/).\nUsing your API key, you can make requests to the NFTGo API by sending the API key as a **header** in your request. Below is an example:\n```Bash\ncurl http://127.0.0.1:5001/<your-request-url> -H X-API-KEY:<YOUR-API-KEY>\n```\n\nAll requests should be prefixed with [http://127.0.0.1:5001/.](http://127.0.0.1:5001/)\n\n# Rate limits\nCurrently, we have a rate limit of 5 request per second (5RPS). If your project needs a specialized plan, you can contact us [here](https://docs.google.com/forms/d/e/1FAIpQLSdToHwUCisiDhNiW_UcVdRgjjLxLNt3fW1cruvZoPpxKxJuGQ/viewform).\n\n\n",
    "version": "1.1.0",
    "x-logo": {
      "url": "https://static.nftgo.io/nftgo-logo-with-text-light.svg"
    }
  },
  "servers": [
    {
      "url": "https://data-api.nftgo.io"
    }
  ],
  "paths": {
    "/eth/v1/collection/{collection}/all-holders": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Get holder addresses by collection",
        "description": "Return all holders' addresses of a collection given a contract address. Sort by nft_num.",
        "operationId": "get_collection_all_holders_eth_v1_collection__collection__all_holders_get",
        "parameters": [
          {
            "description": "The collection filter can be a contract address, collection id, slug or opensea slug.If the slug contains special characters, you need to escape them before performing the query.",
            "required": true,
            "schema": {
              "title": "Collection",
              "type": "string",
              "description": "The collection filter can be a contract address, collection id, slug or opensea slug.If the slug contains special characters, you need to escape them before performing the query."
            },
            "example": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
            "name": "collection",
            "in": "path"
          },
          {
            "description": "The index of data segments. The returned data is divided into many segments.    One segment is returned at a time. {offset} parameter indicates the index of data segments.",
            "required": false,
            "schema": {
              "title": "Offset",
              "minimum": 0,
              "type": "integer",
              "description": "The index of data segments. The returned data is divided into many segments.    One segment is returned at a time. {offset} parameter indicates the index of data segments.",
              "default": 0
            },
            "name": "offset",
            "in": "query"
          },
          {
            "description": "The size of a returned data segment",
            "required": false,
            "schema": {
              "title": "Limit",
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "description": "The size of a returned data segment",
              "default": 10
            },
            "name": "limit",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleHolderInfoList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "SimpleHolderInfo": {
        "title": "SimpleHolderInfo",
        "required": [
          "holder_address",
          "nft_num"
        ],
        "type": "object",
        "properties": {
          "holder_address": {
            "title": "Holder Address",
            "maxLength": 42,
            "minLength": 42,
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string",
            "description": "holder's address",
            "example": "0x0a2542a170aa02b96b588aa3af8b09ab22a9d7ac"
          },
          "nft_num": {
            "title": "Nft Num",
            "minimum": 0,
            "type": "integer",
            "description": "The number of NFTs owned by this address",
            "example": 3
          }
        }
      },
      "SimpleHolderInfoList": {
        "title": "SimpleHolderInfoList",
        "required": [
          "total",
          "last_updated",
          "holders_info"
        ],
        "type": "object",
        "properties": {
          "total": {
            "title": "Total",
            "type": "integer",
            "description": "Total number of items",
            "example": 10000
          },
          "last_updated": {
            "title": "Last Updated",
            "type": "integer",
            "description": "Last updated timestamp in seconds",
            "example": 1652598929
          },
          "holders_info": {
            "title": "Holders Info",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SimpleHolderInfo"
            },
            "description": "A list of holders' information"
          }
        },
        "description": "如果 Model 的数据存在有效期， 则它应该继承 LastUpdatedModel"
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
````