> For the complete documentation index, see [llms.txt](https://docs.okaylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.okaylabs.io/utilities/rarity-check.md).

# Rarity Check

## Description

Checking an NFT Rarity is determining how valuable it is within its collection. It is important to go through this step before buying an NFT, as usually, the rarer it is, the higher its price is.

The OkayLabs rarity check tool gives you the option to go through any collection and take a look at the NFT ranking.

We made the decision to start off with the main networks, aka **Solana** and **Ethereum**. If you have a request for another network, or a specific collection that you did not find for some reason, contact us [here](https://app.okaylabs.io/contact-us).

This NFTs rarity calculation has been developed by us, using the rarity scoring model. We picked it among others because to us, it is up there with the most reliable ways to evaluate the rarity of NFTs. Precise and straight to the point, it’ll help you make the right decision.

<figure><img src="/files/1GHzQlja4Upi4rLN1opB" alt=""><figcaption><p>Browse through the collections of look for one to see its NFTs rarity</p></figcaption></figure>

<figure><img src="/files/0Hov0T9yOlMivV7JLmju" alt=""><figcaption><p>Look for a specific NFT or filter through them with their attributes</p></figcaption></figure>

<figure><img src="/files/0ccKqMXpJoLDMjyG73gA" alt=""><figcaption><p>Check out the details of each attribute</p></figcaption></figure>

## How it works

To put it simply; we go through the entire collection and calculate the rarity of each trait, and we get the NFT's rarity score from the sum of its traits rarity scores. The score of each attribute itself is determined based on its number of occurrences in the entire collection.

We believe in mathematics in this project, and we do not depend on feelings, vibes or else for Rarity Check.

Because we believe in transparency and honesty, here are our formulas:

{% hint style="info" %}
Rarity score of a trait = Number of NFTs with that trait value / Total number of NFTs in the collection​
{% endhint %}

The total rarity score for a particular NFT is the sum of the rarity scores for all features in that particular NFT.

{% hint style="info" %}
Total rarity score =$$\sum$$ Rarity score of all its traits values
{% endhint %}

The total rarity score for a particular NFT is the sum of the rarity scores for all features in that particular NFT.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.okaylabs.io/utilities/rarity-check.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
