# WebLens Memory Set

> WebLens Memory Set is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Stores a key-value memory entry in WebLens's persistent web intelligence memory store

## Facts

- Endpoint: POST https://api.weblens.dev/memory/set?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-memory-set-1d5f7ab1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BQtU6Nf6eCcKmoSnJciZv

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 weblens-memory-set-1d5f7ab1 -d '<json body>'
```

Example prompt: Save the web intelligence result I just extracted to the WebLens memory store under the key 'company_research_acme' so I can retrieve it later in this workflow.

## When to prefer this

Use this endpoint when you need to persist key-value data within the WebLens ecosystem for later retrieval via a companion /memory/get endpoint, especially when orchestrating multi-step web scraping or research workflows where intermediate results need to be stored between agent calls. It is well-suited for agents that repeatedly query the same web sources and want to cache results to save costs.

## Known failure modes

- Missing or invalid key results in a 400 error
- Value payload too large returns a payload size error
- Authentication or payment failure via x402 returns 402 Payment Required
- Duplicate key may silently overwrite existing value without warning
- Network timeout during storage returns a 503 or timeout error

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

A JSON confirmation object indicating whether the memory entry was successfully stored, along with the key used and any relevant metadata about the stored record.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {},
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-memory-set-1d5f7ab1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
