# Mem0 Cloud Memory Search

> Mem0 Cloud Memory Search is a paid API for AI agents from mem0-cloud.saastemly.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-31).

Semantic search over stored memories using embedding similarity, returning the closest matches with relevance scores filtered by a secret memory key and entity identifiers.

## Facts

- Endpoint: POST https://mem0-cloud.saastemly.com/v3/memories/search?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mem0-cloud-memory-search-4bfe78a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MXTVDn5PggrZbyTwLR4cr

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 mem0-cloud-memory-search-4bfe78a6 -d '<json body>'
```

Example prompt: Search my Mem0 memories for anything related to 'dietary preferences' for user_id 'user_abc123' — return the top 5 results with a relevance threshold of 0.3, using my memory key 'mK9xR2pL7qT4wN6vB8dY1cZ3'.

## When to prefer this

Choose this endpoint when you need to semantically retrieve previously stored facts or memories for a specific user, agent, app, or session — especially when keyword search is insufficient and meaning-based similarity ranking is needed. Prefer it over general vector search services when the data was stored via the companion Mem0 Cloud add endpoint and access is controlled by a shared memory_key secret.

## Known failure modes

- Missing or invalid memory_key causes no results or unauthorized error
- Filters object missing all of user_id/agent_id/app_id/run_id returns a validation error
- Query string exceeding 500 characters is rejected
- top_k outside 1–100 range causes a parameter error
- Threshold set too high returns an empty results array
- Memory key loss makes stored memories permanently unreachable
- Expired memories excluded by default unless show_expired is true

## How this service works

Search your stored memories by meaning, like mem0's search: embeds the query and returns the closest memories with a relevance score from 0 to 1. Only memories stored under the same memory_key (your secret string; required) are searched. filters must name at least one of user_id, agent_id, app_id, run_id. Returns {results:[{id, memory, score, metadata, ...}]}.

## Output

Returns a JSON object with a 'results' array, each element containing: memory id, memory text, relevance score (0–1), metadata fields, and any expiration or entity tagging. Results are ranked by semantic similarity to the query, filtered by the provided entity identifiers and minimum threshold.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "What to look for, in natural language (up to 500 characters)"
  },
  "top_k": {
   "type": "integer",
   "description": "How many memories to return, 1-100 (default 10)"
  },
  "filters": {
   "type": "object",
   "description": "mem0 filters: at least one of user_id, agent_id, app_id, run_id, each a string, \"*\" or {\"in\": [up to 20 strings]}; AND lists of those. OR and NOT are not supported."
  },
  "threshold": {
   "type": "number",
   "description": "Minimum relevance score, 0-1 (default 0.1; 0 disables)"
  },
  "memory_key": {
   "type": "string",
   "description": "Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable."
  },
  "show_expired": {
   "type": "boolean",
   "description": "Include memories whose expiration_date has passed (default false)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mem0-cloud-memory-search-4bfe78a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mem0-cloud.saastemly.com](https://www.zero.xyz/host/mem0-cloud.saastemly.com/llms.txt)
