---
agentTools:
  projectIndex: https://zashapi.readme.io/llms.txt
---

# Owners

This endpoint returns a list of owners, including token information such as id and quantity.
If no specific token_id is provided, it returns the owners of all tokens in the specified collection.

Available chains:
  - [x] Ethereum
  - [x] Sepolia

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "0.2.0",
    "title": "Zash NFT API",
    "summary": "Supercharge your NFT offering.",
    "termsOfService": "http://zash.sh/termsofservice",
    "contact": {
      "url": "https://zash.sh"
    },
    "x-logo": {
      "url": "https://uploads-ssl.webflow.com/620e57315cd5bf8aa8c47941/62704e83d5ff032ab3ac9fb5_zash_api_logo.png",
      "alttext": "zash logo"
    },
    "description": "# Introduction\n\nSay goodbye to the long mix of addresses and binary numbers reading raw on chain data and fragmented social media. We map all that into meaningful fields - e.g collection, buyer, seller, price, marketplace, twitter count, discord members.\n\nProvided as a live API of clean and indexed NFT metadata, collections and projects.\nSolana & Ethereum live. BNB Chain and others coming soon.‍\n\n# Authentication\n\nCurrently all you need is to obtain an API key. [Get in touch](mailto:efe@joinzash.com) if you don't have one.\n",
    "license": {
      "name": "MIT",
      "url": "https://zash.sh/termsofservice"
    }
  },
  "tags": [
    {
      "name": "Collection",
      "description": "Enriched NFT collection data."
    }
  ],
  "servers": [
    {
      "url": "https://api.zash.sh/v2",
      "description": "Default Server"
    }
  ],
  "paths": {
    "/nft/collection/owners": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Owners",
        "description": "This endpoint returns a list of owners, including token information such as id and quantity.\nIf no specific token_id is provided, it returns the owners of all tokens in the specified collection.\n\nAvailable chains:\n  - [x] Ethereum\n  - [x] Sepolia\n",
        "operationId": "getEvmOwnersCollectionById",
        "parameters": [
          {
            "name": "collection_address",
            "in": "query",
            "description": "Collection address that needs to be fetched.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "0x60e4d786628fea6478f785a6d7e704777c86a7c6"
            }
          },
          {
            "name": "token_id",
            "in": "query",
            "description": "Token ID",
            "required": false,
            "schema": {
              "type": "string",
              "example": "2043"
            }
          },
          {
            "name": "chain",
            "in": "query",
            "description": "Chain code (e.g. eth, sol, matic, bnb)",
            "required": true,
            "schema": {
              "type": "string",
              "default": "eth",
              "example": "eth"
            }
          }
        ],
        "security": [
          {
            "api-key": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionOwners"
                },
                "example": {
                  "owners": {
                    "address": "0x5c8d91e93a2c00cfb510e7e27055513de3251f45",
                    "tokens": {
                      "token_id": "0x1155dd7049d24680",
                      "quantity": 1
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "description": "Collection not found",
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Requested resource can not be fetched."
          }
        }
      },
      "CollectionOwners": {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "owners": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string"
                },
                "tokens": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "token_id": {
                        "type": "string"
                      },
                      "balance": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "responses": {
      "Problem": {
        "description": "Problem",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 139,
      "2": 164,
      "3": 97,
      "4": 147,
      "5": 99,
      "6": 19,
      "7": 0,
      "8": 100,
      "9": 5,
      "10": 234,
      "11": 92
    }
  }
}
```