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

# Get collection by contract

Return basic information about a collection

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "egg-swagger",
    "description": "swagger-ui for egg",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://data-api.nftgo.io"
    }
  ],
  "tags": [
    {
      "name": "Collection",
      "description": ""
    }
  ],
  "paths": {
    "/eth/v2/collection/{contract_address}/info": {
      "get": {
        "tags": [
          "Collection"
        ],
        "summary": "Get collection by contract ",
        "description": "Return basic information about a collection ",
        "operationId": "eth_v2_collection_{contract_address}_info",
        "parameters": [
          {
            "name": "contract_address",
            "in": "path",
            "description": "Address of the contract for this NFT collection ",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
          }
        ],
        "responses": {
          "200": {
            "description": "OK ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCollectionByContractResponse"
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "GetCollectionByContractResponse": {
        "required": [
          "blockchain",
          "categories",
          "collection_id",
          "contract_type",
          "contracts",
          "description",
          "discord_url",
          "has_rarity",
          "instagram_url",
          "logo",
          "name",
          "official_website_url",
          "opensea_slug",
          "opensea_url",
          "slug",
          "telegram_url",
          "twitter_url"
        ],
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection id of the collection",
            "example": "6113f83c3126bb611b9b119d"
          },
          "blockchain": {
            "type": "string",
            "description": "The blockchain of the collection",
            "example": "ETH"
          },
          "name": {
            "type": "string",
            "description": "Collection name",
            "example": "Bored Ape Yacht Club"
          },
          "slug": {
            "type": "string",
            "description": "A slug is generated from a collection name by using applying lower-case to all letters in the collection name and replacing all spaces with a '-'",
            "example": "bored-ape-yacht-club"
          },
          "opensea_slug": {
            "type": "string",
            "description": "OpenSea slug of the collection",
            "example": "boredapeyachtclub"
          },
          "description": {
            "type": "string",
            "description": "Collection description",
            "example": "Limited Edition Jame Bond NFT"
          },
          "official_website_url": {
            "type": "string",
            "description": "Official website url of the collection",
            "example": "https://boredapeyachtclub.com/"
          },
          "opensea_url": {
            "type": "string",
            "description": "OpenSea url of the collection",
            "example": "https://opensea.io/collection/boredapeyachtclub"
          },
          "logo": {
            "type": "string",
            "description": "The url or base64 data of image or video associated with the collection",
            "example": "https://i.seadn.io/gae/Ju9CkWtV-1Okvf45wo8UctR-M9He2PjILP0oOvxE89AyiPPGtrR3gysu1Zgy0hjd2xKIgjJJtWIc0ybj4Vd7wv8t3pxDGHoJBzDB?w=500&auto=format"
          },
          "contracts": {
            "type": "array",
            "description": "The list of contracts of the collection",
            "example": [
              "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
            ],
            "items": {
              "type": "string"
            }
          },
          "contract_type": {
            "type": "string",
            "description": "Type of contract: ERC721 or ERC1155",
            "example": "ERC721"
          },
          "categories": {
            "type": "array",
            "description": "List of categor(ies) that a collection belongs to",
            "example": [
              "PFP"
            ],
            "items": {
              "type": "string"
            }
          },
          "discord_url": {
            "type": "string",
            "description": "Discord url of the collection",
            "example": "https://discord.gg/3P5K3dzgdB"
          },
          "instagram_url": {
            "type": "string",
            "description": "Instagram url of the collection",
            "example": "https://www.instagram.com/boredapeyachtclub/"
          },
          "twitter_url": {
            "type": "string",
            "description": "Twitter url of the collection",
            "example": "https://twitter.com/BoredApeYC"
          },
          "telegram_url": {
            "type": "string",
            "description": "Telegram url of the collection",
            "example": "https://t.me/boredapeyachtclub"
          },
          "has_rarity": {
            "type": "boolean",
            "description": "Whether the collection has rarity rankings",
            "example": true
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "x-original-swagger-version": "2.0",
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```