# agent402.tools Search Autocomplete

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

Returns up to 20 query suggestions for a partial text input as a flat JSON array, useful for query expansion and topic exploration.

## Facts

- Endpoint: GET https://agent402.tools/api/search-suggest
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-search-autocomplete-94b8034c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZrWevd6BHFhae9XzUrFoc

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-tools-search-autocomplete-94b8034c
```

Example prompt: Can you give me 10 autocomplete suggestions for the partial search query 'climate cha' so I can see what related topics people search for?

## When to prefer this

Use this endpoint when you need lightweight, fast query suggestion or autocomplete functionality without spinning up a full search engine. Ideal for query expansion pipelines, building search UIs, did-you-mean features, or exploring related topics from a seed term. Prefer this over a full-text search endpoint when you only need suggestion strings, not actual search results or ranked documents.

## Known failure modes

- Missing required 'q' parameter returns an error
- Query exceeding 400 characters is rejected
- Count parameter outside 1-20 range may return default of 5 suggestions
- Empty or whitespace-only query may return empty array
- Network or service unavailability returns HTTP error

## How this service works

Search autocomplete: query suggestions for a partial input as a flat JSON array. Useful for query expansion, did-you-mean refinement, and topic exploration. Returns up to 20 suggestions.

## Output

A flat JSON array of up to 20 string suggestions that complete or relate to the partial input query, suitable for query expansion, did-you-mean refinement, or topic exploration.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Partial query (max 400 chars)"
      },
      "count": {
       "type": "number",
       "description": "Suggestions to return, 1-20 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "count",
      "suggestions"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "suggestions": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 5,
  "query": "agent4",
  "suggestions": [
   "agent402",
   "agent4 mexico",
   "agent4 movie",
   "agent4you",
   "agent 47"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-search-autocomplete-94b8034c/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)
