# Agent402 Coin Search

> Agent402 Coin Search is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Search for cryptocurrencies, NFTs, exchanges, and categories by name, symbol, or partial query via CoinGecko data

## Facts

- Endpoint: GET https://agent402.tools/api/coin-search
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-coin-search-ac4449c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4zq6T5NspxLm0mywzFG2o

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-coin-search-ac4449c9
```

Example prompt: Search for coins matching 'render' on CoinGecko and show me the top 5 results with their IDs, symbols, and ranks.

## When to prefer this

Choose this endpoint when you need to resolve a human-readable coin name or ticker symbol to a canonical CoinGecko ID, discover coins by partial name fragment, or retrieve basic coin metadata (rank, symbol) without needing full price or OHLCV data. It is well-suited for agent workflows that must identify tokens before making further price or market calls, and works without API keys — payment is handled per-call in USDC via x402.

## Known failure modes

- Query string missing or empty returns validation error
- Query longer than 64 characters rejected
- Limit out of range (must be 1–50) returns error
- No matching results returns empty arrays with zero counts
- Upstream CoinGecko API unavailable may return error or stale cached data
- Payment failure (insufficient USDC) blocks the call at the x402 layer

## How this service works

Resolve a name or ticker to coin ids: full-text search returning matching coins (id, symbol, name, market cap rank, ordered by rank), exchanges (id, name, market type) and categories (id, name), plus NFT collections. `limit` per group 1-50 (default 10). The id resolver for every other coin tool: an agent holding "PEPE" or "render" gets the canonical id here before calling coin-profile, coin-ohlc or coin-history. Cached in-process for 5 minutes.

## Output

A JSON object containing arrays of matching coins (with id, name, symbol, rank), NFTs, exchanges, and categories; plus the original query string, per-group result counts, the data source (coingecko), a cached flag, and a fetchedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "limit": {
       "type": "number",
       "description": "Max results per group, 1-50 (default 10)."
      },
      "query": {
       "type": "string",
       "description": "Name, symbol or fragment, 1-64 chars (e.g. \"usdc\", \"render\", \"pepe\")."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "source",
      "fetchedAt",
      "cached",
      "query",
      "counts",
      "coins",
      "exchanges",
      "categories",
      "nfts"
     ],
     "properties": {
      "nfts": {
       "type": "array"
      },
      "coins": {
       "type": "array"
      },
      "query": {
       "type": "string"
      },
      "cached": {
       "type": "boolean"
      },
      "counts": {
       "type": "object"
      },
      "source": {
       "type": "string"
      },
      "exchanges": {
       "type": "array"
      },
      "fetchedAt": {
       "type": "string"
      },
      "categories": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nfts": [],
  "coins": [
   {
    "id": "usd-coin",
    "name": "USDC",
    "rank": 6,
    "symbol": "USDC"
   }
  ],
  "query": "usdc",
  "cached": false,
  "counts": {
   "nfts": 0,
   "coins": 5,
   "exchanges": 0,
   "categories": 1
  },
  "source": "coingecko",
  "exchanges": [],
  "fetchedAt": "2026-08-22T13:20:00.000Z",
  "categories": [
   {
    "id": "usdc-stablecoins",
    "name": "USDC Stablecoins"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-coin-search-ac4449c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
