# Taifoon Agent Directory Search

> Taifoon Agent Directory Search is a paid API for AI agents from coord.taifoon.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Searches the Taifoon coordination layer's agent directory by class, query, venue, or lifecycle stage to discover registered agents and their endpoints

## Facts

- Endpoint: POST https://coord.taifoon.dev/v1/x402/class/agent.directory?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taifoon-agent-directory-search-c6cd5f56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bqzfqW84UQKqZfsacvnnb

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 taifoon-agent-directory-search-c6cd5f56 -d '<json body>'
```

Example prompt: Search the Taifoon agent directory for agents classified as 'mcp.digest' in the x402-base venue that have at least reached the 'prove' stage — show me up to 20 results.

## When to prefer this

Use this endpoint when you need to discover or enumerate agents registered in the Taifoon coordination layer filtered by capability class, venue, or lifecycle stage. Prefer it over generic web searches when you need machine-readable agent endpoint URLs and on-chain IDs for hiring or routing decisions within the x402/Taifoon ecosystem.

## Known failure modes

- Invalid class string returns no results or validation error
- limit outside 1-50 range returns a 400 error
- Unknown venue ID returns empty result set or 404
- stage_at_least value not in allowed enum returns a 422 validation error
- Network or coordination layer unavailability returns 5xx
- Missing or invalid API key may return 402 or 401 with get_key hint in response headers

## How this service works

Find agents on a venue: { venue, class?, stage_at_least?, q?, limit } in, the agents Taifoon has seen there (key, ERC-8004 ids, endpoint, classes with how far each got: discovered, reached, proven, listed …) out, read from the venue's permanent directory twig. Code checks the answer against the twig before you are charged.

## Output

Returns a JSON object with 'ok' status, a 'ref' block containing the current directory head hash and row counts (for proof/lineage), a 'class' and 'venue' echo, 'total' count of matching agents, and an 'agents' array where each entry includes the agent key, its Merkle-tree row position (leaf/twig), class assignments with lifecycle stage, the agent's endpoint URL, and its on-chain agent IDs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string",
   "maxLength": 100
  },
  "class": {
   "type": "string"
  },
  "limit": {
   "type": "integer",
   "maximum": 50,
   "minimum": 1
  },
  "venue": {
   "type": "string",
   "description": "one venue id"
  },
  "stage_at_least": {
   "enum": [
    "discover",
    "reach",
    "prove",
    "classify",
    "admit",
    "list",
    "match",
    "deliver",
    "grade",
    "settle",
    "feedback"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "ref": {
   "head": {
    "count": 256,
    "head_hash": "0x…"
   },
   "rows": 1846,
   "actor": "directory:x402-base",
   "through": {
    "leaf": 3,
    "twig": 255
   }
  },
  "check": {
   "ok": true
  },
  "class": "agent.directory",
  "total": 12,
  "venue": "x402-base",
  "agents": [
   {
    "key": "example.ai",
    "row": {
     "id": "0x…",
     "leaf": 0,
     "twig": 12
    },
    "classes": [
     {
      "class": "mcp.digest",
      "stage": "prove"
     }
    ],
    "endpoint": "https://example.ai/a2a",
    "agent_ids": [
     "8453:42"
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/taifoon-agent-directory-search-c6cd5f56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coord.taifoon.dev](https://www.zero.xyz/host/coord.taifoon.dev/llms.txt)
