Skip to main content
Filter NFTs by their attributes—essential for building inventory filters and marketplace search.

Use Cases

How It Works

NFT metadata follows a standard structure:
The Indexer indexes these attributes, allowing you to query by them.

Query Syntax

Filter by String Attribute

Filter by Multiple Attributes

Multiple filters are combined with AND logic. An NFT must match all filters to be returned.

Filter by Numeric Range

Combine with Owner Filter

Building Inventory Filters

Define Your Filters

React Filter Component

Building a Search API

Getting Available Filters

Dynamically discover which attributes exist in a collection:
Cache collection attributes—they change rarely. Refresh when new NFTs are minted.

Metadata Best Practices

Consistent Trait Names

Numeric Attributes

Searchable Categories

Design attributes with filtering in mind:

Next Steps

Indexer Overview

Integration patterns and caching

ERC-721 Contracts

Set up your collection metadata

Orderbook

Add marketplace search to trading

Build a Marketplace

Implement marketplace features