added

OpenRarity to Rank NFTs

NFTPort launched a Rarity feature to Ethereum NFTs, built up on OpenRarity
standard

An open, transparent and reproducible standard for rarity rankings across the NFT industry

Its now possible to include "rarity" on Contract NFTs endpoints and it returns the general
ranking of an NFT and attributes prevalence

Why is rarity important?

Rarity helps to understand which NFTs are more unique in the whole collection, it's a factor that
many people look to make their purchase decisions (unique NFTs usually cost more and are
valuable) and how to navigate new projects

Example Mutant Ape Yacht Club

  • Contract address - 0x60e4d786628fea6478f785a6d7e704777c86a7c6

CURL

curl --request GET \
     --url 'https://api.nftport.xyz/v0/nfts/0x60e4d786628fea6478f785a6d7e704777c86a7c6?chain=ethereum&page_number=1&page_size=50&include=rarity&refresh_metadata=false' \
     --header 'Authorization: YOUR API KEY' \
     --header 'accept: application/json'

Response

 "rarity": {
      "strategy": "open_rarity",
      "score": 0.881936254439428,
      "rank": 13798,
      "collection_size": 19433,
      "updated_date": "2022-10-31 16:16:00.563379"
    },
    "attributes": [
      {
        "trait_type": "Background",
        "display_type": null,
        "value": "M1 Gray",
        "statistics": {
          "total_count": 1750,
          "prevalence": 9.01
        }
      },
      {
        "trait_type": "Fur",
        "display_type": null,
        "value": "M1 Black",
        "statistics": {
          "total_count": 1789,
          "prevalence": 9.21
        }
      },
      {
        "trait_type": "Eyes",
        "display_type": null,
        "value": "M1 Bloodshot",
        "statistics": {
          "total_count": 1279,
          "prevalence": 6.58
        }
      },
      {
        "trait_type": "Clothes",
        "display_type": null,
        "value": "M1 Caveman Pelt",
        "statistics": {
          "total_count": 244,
          "prevalence": 1.26
        }
      },
      {
        "trait_type": "Hat",
        "display_type": null,
        "value": "M1 Beanie",
        "statistics": {
          "total_count": 841,
          "prevalence": 4.33
        }
      },
      {
        "trait_type": "Mouth",
        "display_type": null,
        "value": "M1 Discomfort",
        "statistics": {
          "total_count": 319,
          "prevalence": 1.64
        }
      }