# AGISHub Memory Search

> AGISHub Memory Search is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Semantically searches a named memory namespace and returns the most relevant stored entries using vector similarity — the retrieval step of a RAG pipeline.

## Facts

- Endpoint: GET https://api.agishub.com/v1/memory-search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-memory-search-18b37e81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QLb6AUIoosFNL0wB2nCcs

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 agishub-memory-search-18b37e81
```

Example prompt: Search my 'customer-support' namespace for the top 3 entries most similar to 'how do I reset my password?' and return what you find.

## When to prefer this

Use this endpoint when you need to retrieve the most semantically relevant stored entries from a named memory namespace as part of a RAG pipeline or agent memory recall loop. It is specifically designed for the retrieval step — prefer it over generic full-text search when you need similarity-ranked results based on meaning rather than keyword overlap. Ideal when entries were upserted via the paired memory upsert endpoint on the same platform.

## Known failure modes

- Namespace not found — returns empty results or error if the namespace hasn't been populated
- Query too short or empty — rejected due to minLength:1 validation
- top_k out of range — rejected if below 1 or above 20
- No matching entries — returns empty results if no stored content is semantically close to the query
- Network timeout — if the vector search backend is slow or unavailable

## How this service works

Semantically search a memory collection (namespace) and return the most relevant stored entries. The retrieval half of RAG.

## Output

Returns a ranked list of the most semantically similar stored entries from the specified namespace, ordered by relevance to the query. The number of results is controlled by top_k (default 5, max 20).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "namespace",
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "minLength": 1,
       "description": "Natural-language query; returns the most semantically similar stored entries."
      },
      "top_k": {
       "type": "integer",
       "maximum": 20,
       "minimum": 1,
       "description": "How many results to return (default 5)."
      },
      "namespace": {
       "type": "string",
       "minLength": 1,
       "description": "The namespace to search within (the same key used on upsert)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Semantically search a memory collection (namespace) and return the most relevant stored entries. The retrieval half of R"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-memory-search-18b37e81/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agishub.com](https://www.zero.xyz/host/api.agishub.com/llms.txt)
