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

# Get token rarity by open transaction hash



## OpenAPI

````yaml /api-reference/vibemarket_openapi.yml get /rarity
openapi: 3.0.0
info:
  title: vibe.market Boosterbox API
  version: 1.0.0
  description: >
    API for managing boosterboxes, games (packs), and metadata on vibe.market.


    **Get your free API key at:**
    https://docs.vibechain.com/api-reference/vibemarket-intro


    **Default Chain:** Base (chainId: 8453)
servers:
  - url: https://build.vibechain.com/vibe/boosterbox
security: []
paths:
  /rarity:
    get:
      summary: Get token rarity by open transaction hash
      parameters:
        - $ref: '#/components/parameters/API_KEY'
        - in: query
          name: transactionHash
          required: true
          schema:
            type: string
          description: The transaction hash
        - in: query
          name: contractAddress
          required: true
          schema:
            type: string
          description: The contract address
      responses:
        '200':
          description: Token rarity information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RarityResponse'
components:
  parameters:
    API_KEY:
      in: header
      name: API-KEY
      description: >-
        Free API key needed to authorize requests. Get one at:
        https://docs.vibechain.com/api-reference/vibemarket-intro
      required: true
      schema:
        type: string
        default: DEMO_REPLACE_WITH_FREE_API_KEY
  schemas:
    RarityResponse:
      type: object
      properties:
        success:
          type: boolean
        rarity:
          type: integer
          description: >-
            Rarity level (0=Common, 1=Uncommon, 2=Rare, 3=Super Rare,
            4=Legendary)
        rarityName:
          type: string
          enum:
            - Common
            - Uncommon
            - Rare
            - Super Rare
            - Legendary
        tokenId:
          type: integer
          description: The token ID
        randomValue:
          type: string
          description: Random value used for determination
        tokenSpecificRandomness:
          type: string
          description: Token-specific randomness

````