Filter Nft Items

This service returns Nft items with pagination

Filter Nft Items

GET {{server-url}}/nft-items/filter

It returns list of Nft items with pagination

Query Parameters

Name
Type
Description

page

Number

Represents page number. Default 0

name

String

Represents Nft Item's name

orderDirection

String

Represents order direction. It can be ASC or DESC. Default DESC

size

Number

Represents content size. Default 10

id

Number

Represents Nft Item's identifier

Headers

Name
Type
Description

Authorization*

String

UUID formatted access token

PROJECT-ID*

String

UUID formatted project's identifier

{
    // Response
}

Example Response Body

{
    "data": {
        "content": [
            {
                "id": 410,
                "name": "r/place - 300",
                "description": "Reddit r/place 2022 Edition - 300",
                "url": "https://stagingnftgift.s3.eu-west-1.amazonaws.com/1649243914981",
                "totalSupply": 300,
                "contractType": "ERC1155",
                "attributes": [
                    {
                        "traitType": "Pace",
                        "value": "5",
                        "icon": "icon"
                    },
                    {
                        "traitType": "Weight",
                        "value": "100",
                        "icon": "icon"
                    }
                ],
                "categories": [
                    {
                        "id": 315,
                        "name": "Car"
                    }
                ]
            },
            {
                "id": 409,
                "name": "r/place - 180",
                "description": "Reddit r/place 2022 Edition - 180",
                "url": "https://stagingnftgift.s3.eu-west-1.amazonaws.com/1649243914981",
                "totalSupply": 180,
                "contractType": "ERC1155",
                "attributes": [],
                "categories": []
            },
            {
                "id": 408,
                "name": "r/place - 90",
                "description": "Reddit r/place 2022 Edition - 90",
                "url": "https://stagingnftgift.s3.eu-west-1.amazonaws.com/1649243914981",
                "totalSupply": 90,
                "contractType": "ERC1155",
                "attributes": [],
                "categories": []
            },
            {
                "id": 388,
                "name": "r/place",
                "description": "Reddit r/place 2022 Edition",
                "url": "https://stagingnftgift.s3.eu-west-1.amazonaws.com/1649243914981",
                "totalSupply": 50,
                "contractType": "ERC1155",
                "attributes": [],
                "categories": []
            },
            {
                "id": 348,
                "name": "r/place - 1",
                "description": "Reddit r/place 2022 Edition - 1",
                "url": "https://stagingnftgift.s3.eu-west-1.amazonaws.com/1649243914981",
                "totalSupply": 1,
                "contractType": "ERC721",
                "attributes": [],
                "categories": []
            }
        ],
        "pageable": {
            "sort": {
                "sorted": true,
                "unsorted": false,
                "empty": false
            },
            "pageNumber": 0,
            "pageSize": 10,
            "offset": 0,
            "paged": true,
            "unpaged": false
        },
        "totalPages": 1,
        "totalElements": 5,
        "last": true,
        "numberOfElements": 5,
        "number": 0,
        "size": 10,
        "first": true,
        "sort": {
            "sorted": true,
            "unsorted": false,
            "empty": false
        },
        "empty": false
    },
    "message": null,
    "code": 0,
    "error": false
}

Response Fields

Key
Type
Description

id

Number

Represents Nft item's identifier

name

String

Represents Nft item's name

description

String

Represents Nft item's description

url

String

Represents Nft item's content url

totalSupply

Number

Represents count of Nft item

contractType

String

Represents Nft item's contract type. It can be ERC721 or ERC1155

attributes

Array

Represents Nft item's attributes

categories

Array

Represents Nft item's category.

Last updated