# WritersLogic Web Search

> WritersLogic Web Search is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Runs a licensed web search (via Exa or Brave) and returns up to 10 ranked results with title, URL, snippet, highlights, and published date for agents needing current links.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/web-search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-web-search-ac00b220
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xrd0hsR5iW44FGMT9t41L

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 writerslogic-web-search-ac00b220 -d '<json body>'
```

Example prompt: Search the web for the latest news on quantum computing breakthroughs published after 2024-01-01 and give me the top 5 results with snippets using Exa.

## When to prefer this

Use this endpoint when an agent needs fresh, current web links and metadata (titles, URLs, snippets, dates) without page content. Prefer this over general HTTP fetchers when you need ranked, relevance-ordered results from a licensed search API. Choose Exa for semantic/neural search quality or Brave for privacy-respecting index coverage. Use alongside a page-content endpoint when you need to follow up and read full page text.

## Known failure modes

- Query too long (over 400 characters) returns a validation error
- num_results exceeds maximum of 10 returns a validation error
- Provider unavailable (Exa or Brave API down) may return an error or fallback
- date_from in wrong format (not YYYY-MM-DD) causes a parsing error
- Empty or whitespace-only query rejected (minLength: 1)
- Site filter with invalid domain format may return zero results
- Paid search quota exhausted may result in a 402 or rate-limit error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A ranked list of up to 10 web search results, each containing the page title, URL, snippet, optional highlights/extra text, and published date. No page content is fetched or summarized — only search result metadata is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "site": {
   "type": "string",
   "maxLength": 253,
   "description": "Restrict to a domain, for example example.com."
  },
  "query": {
   "type": "string",
   "maxLength": 400,
   "minLength": 1,
   "description": "Search query."
  },
  "provider": {
   "enum": [
    "auto",
    "exa",
    "brave"
   ],
   "type": "string",
   "default": "auto",
   "description": "auto uses Exa when configured, else Brave."
  },
  "date_from": {
   "type": "string",
   "maxLength": 10,
   "description": "Only results published on or after this date, YYYY-MM-DD."
  },
  "num_results": {
   "type": "integer",
   "default": 5,
   "maximum": 10,
   "minimum": 1
  },
  "include_text": {
   "type": "boolean",
   "default": false,
   "description": "Ask the provider for highlights/extra snippet text per result."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-web-search-ac00b220/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
