Skip to main content
The Search API lets you query the entire DexUtils index by token name, ticker symbol, or contract address and receive ranked results spanning tokens, liquidity pools, and DEX protocols across every supported network. It is designed for search-as-you-type UIs, token pickers, and lookup utilities where you need fast, cross-chain results without knowing the exact network or address up front.
Queries DexUtils for tokens, pools, and DEXes matching the provided search term. Results are ranked by relevance and, where applicable, by liquidity depth.

Query Parameters

string
required
The search query. You can pass a token name (e.g. Pepe), ticker symbol (e.g. PEPE), or a full contract address for an exact match. Partial symbols and names are supported with a minimum of two characters.
string
default:"all"
Restrict results to a specific entity type. Accepted values:
  • token — ERC-20 / SPL tokens and equivalent assets
  • pool — liquidity pool pairs
  • dex — DEX protocol entries
  • all — return all matching entity types
string
Narrow results to a single network (e.g. ethereum, solana). Omit this parameter to search across all supported networks. Retrieve valid network IDs from GET /networks.
integer
default:"10"
Maximum number of results to return. Ceiling is 50. Increase this value when building autocomplete interfaces that benefit from a wider candidate set.

Code Examples

Response Fields

array
required
Ranked array of matching entities. Each object includes a type discriminator field so you can handle tokens, pools, and DEXes in a single response.
integer
required
Total number of results matching your query, before the limit is applied. Use this to show users how many matches exist even when you are displaying only the top results.

Example Response

Example Response
Pass a full contract address as the q value to get an exact match rather than ranked fuzzy results. This is the most reliable way to look up a specific token when you already have its address — for example, when a user pastes an address into your search input.
Newly created tokens and pools may not appear in search results immediately. DexUtils indexes on-chain events in near real time, but search indexing can lag by up to five minutes after a contract first receives liquidity. Use the Tokens or Pools endpoints with the exact address to look up a contract that was deployed very recently.