Learn how to build token dashboards with trending data, advanced filters, and token search
filterTokens
, to populate “Discovery” pages where you can showcase tokens that fit specific criteria. From simple search queries to complex filtering and trending data, Codex has you covered across 80+ networks with data on over 40M+ tokens.
This data powers the token discovery features on Defined.fi.
filterTokens
endpoint supports improved symbol matching when using the phrase parameter with $ prefix (eg: $PEPE). Use the $ prefix for results with improved token symbol matches, or without the $ prefix to return partial token symbol matches. You can also use the token contract address to ensure an exact match.
We also recommend utilizing ranking attributes such as volume24
or trending24
, and filters such as liquidity
to help ensure search results are relevant.
Example query with $ prefix and trendingScore24 results
Example query with partial symbol match and volume24 results
filterTokens
. If this is a concern, ensure search results are only returned on-demand when the search phrase is fully entered by the user.Example query with trendingScore24, avg wallet age >1 week, and other filters
filterTokens
is limited to a maximum of 200 results per API call. This is why ranking attributes and specific filters are important to ensure you receive the token results that are most relevant for your query.Example query to find trending launchpad (Bonk) tokens that have migrated
filterTokens
. Defined.fi is the best place to see what is possible with all of our filters:
trendingIgnored
is adjusted regularly to ensure the best results are shown for trending tokens. Set to true
if you want results to include stablecoins, wrapped base tokens, rugs/scams/low quality tokens etc.statsType
filters MEV-related events from data to ensure you receive real user activity.trendingIgnored: false
and statsType: FILTERED
for the cleanest data.