> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Collection NFTs

> Get the NFTs of a collection by contract address.



## OpenAPI

````yaml /reference/api-json.json get /nft/nft-in-collection
openapi: 3.0.0
info:
  title: Unified Request
  description: One API for all your web3 needs.
  version: '1.0'
  contact: {}
servers:
  - url: https://api-test.uniblock.dev/uni/v1
    description: Test-Gateway
security:
  - {}
  - ApiKeyAuth: []
tags: []
paths:
  /nft/nft-in-collection:
    get:
      tags:
        - NFT
      summary: Get Collection NFTs
      description: Get the NFTs of a collection by contract address.
      operationId: NFTInCollection
      parameters:
        - name: chainId
          required: true
          in: query
          description: Unique identifier for a blockchain network.
          schema:
            default: 1
            example: 1
            type: string
            enum:
              - 1
              - 10
              - 100
              - 10143
              - 10200
              - 11011
              - 11124
              - 11155111
              - 11155420
              - 11235
              - 11297108099
              - 11297108109
              - 1135
              - 1284
              - 1285
              - 130
              - 1301
              - 1313161554
              - 137
              - 14
              - 168587773
              - 1868
              - 1946
              - 2020
              - 25
              - 250
              - 2741
              - 30
              - 300
              - 31
              - 321
              - 322
              - 324
              - 32769
              - 33101
              - 33111
              - 33139
              - 360
              - 369
              - 37111
              - 4002
              - 4202
              - 42161
              - 421614
              - 42220
              - 42261
              - 42262
              - 43113
              - 43114
              - 480
              - 4801
              - 50
              - 51
              - 534351
              - 534352
              - 5371
              - 5373
              - 54211
              - 545
              - 56
              - 59141
              - 59144
              - 61
              - 7332
              - 747
              - 7777777
              - 80002
              - 80094
              - 81457
              - 8453
              - 84532
              - 88882
              - 88888
              - 97
              - 999999999
              - stellar
              - stellar-testnet
              - toncoin
        - name: contractAddress
          required: false
          in: query
          description: The address of the NFT collection to query.
          schema:
            default: '0x81Ae0bE3A8044772D04F32398bac1E1B4B215aa8'
            example: '0x81Ae0bE3A8044772D04F32398bac1E1B4B215aa8'
            type: string
        - name: collectionSlug
          required: false
          in: query
          description: >-
            OpenSea collection slug to query. Provide either contractAddress or
            collectionSlug, not both.
          schema:
            type: string
        - name: cursor
          required: false
          in: query
          description: Cursor from previous query to get next page of results.
          schema:
            type: string
        - name: includeRaw
          required: false
          in: query
          description: >-
            Returns the raw data given by the provider. WARNING: removes backup
            feature, and raw data returned is not normalized which might make
            switching providers difficult
          schema:
            example: null
            type: boolean
        - name: provider
          required: false
          in: query
          description: >-
            Overrides our autorouting. Only specify this parameter if you would
            like to specify only a single provider to use for this request.
          schema:
            type: string
            enum:
              - Alchemy
              - Moralis
              - Tatum
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NFTInCollectionResponse'
components:
  schemas:
    NFTInCollectionResponse:
      type: object
      properties:
        contractAddress:
          type: object
          example: '0x81ae0be3a8044772d04f32398bac1e1b4b215aa8'
        contractType:
          type: object
          example: ERC721
        contractName:
          type: object
          example: Dreadfulz
        contractSymbol:
          type: object
          example: Dreadfulz
        nfts:
          type: array
          items:
            $ref: '#/components/schemas/NFTInCollectionResponseItem'
        cursor:
          type: string
          example: >-
            ALC_MHgyMzEyZjAwMTQ5ZDAxMDgwNmQ5ZWY2ZjNlYTMyMGViMWUxYTZiYzhlOjB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDFhYTpmYWxzZQ==
      required:
        - contractAddress
        - contractType
        - contractName
        - contractSymbol
        - nfts
        - cursor
    NFTInCollectionResponseItem:
      type: object
      properties:
        tokenId:
          type: string
          example: '1'
        tokenURI:
          type: string
          example: >-
            http://token.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372
        lastUpdated:
          type: string
          example: '2023-04-25T22:17:00.509Z'
        metadata:
          $ref: '#/components/schemas/NFTMetadata'
        rawMetadata:
          type: string
          example: >-
            {"name":"Dreadfulz #0","description":"7,777 Dreadfulz have inked
            their name in fealty to the Grand Inquisitor. Bound by avarice,
            lustful for
            $DREAD.","image":"https://ipfs.io/ipfs/QmZbxmneJTMFfa8SXpv8QweHi34CUMU4LpuPH5UVNvrAbG/0.jpg","external_url":"","attributes":[{"value":"Legendary","trait_type":"DIVISION"}],"properties":{"category":"image","files":[{"type":"image/png","uri":"0.png"}],"creators":[]}}
      required:
        - tokenId
        - tokenURI
        - lastUpdated
        - metadata
        - rawMetadata
    NFTMetadata:
      type: object
      properties:
        name:
          type: string
          example: 'CyrptoMexa #372'
        description:
          type: string
          example: >-
            CryptoMexas are the sixth edition in the CryptoCitizens collection,
            an ongoing generative portrait series based on real people from
            communities around the world. Holders of CryptoCitizens are members
            of the Bright Moments DAO.
        image:
          type: string
          example: >-
            https://media-proxy.artblocks.io/0xbdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0/5000372.png
        traits:
          example: |-
            [
                      {
                        "value": "All CryptoMexas",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Body: Dark",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "City: CDMX",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Gear: Vihuela",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Bodywear: Charro Suit",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Facewear: Red Shades",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Footwear: Black Shoes",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Headwear: White Cap",
                        "trait_type": "CryptoMexa"
                      },
                      {
                        "value": "Background: Avenida Álvaro Obregón",
                        "trait_type": "CryptoMexa"
                      }
                    ]
          type: array
          items:
            type: string
      required:
        - name
        - description
        - image
        - traits
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key to access the API (optional)

````