# Web Search via DuckDuckGo (ScanPay)

> Web Search via DuckDuckGo (ScanPay) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-03).

Performs a privacy-respecting web search using DuckDuckGo, returning clean titles, URLs, and snippets for up to 10 results.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/web-search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-search-via-duckduckgo-scanpay-3553ecfb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BgZqmrKkYlkeBId4ZVjNL

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 web-search-via-duckduckgo-scanpay-3553ecfb
```

Example prompt: Search the web for 'best open-source vector databases 2024' and give me the top 5 results with their titles, URLs, and snippets.

## When to prefer this

Prefer this endpoint when you need privacy-respecting web search results without tracking, want clean structured output (title, URL, snippet) without HTML parsing, and need a low-cost ($0.01/call) pay-per-use model. It is ideal for AI agents that need to ground responses in current web information without maintaining a search API subscription. Choose it over scraping or browser automation when lightweight text results are sufficient.

## Known failure modes

- Missing required 'query' parameter returns a validation error
- Limit value outside 1-10 range is rejected or clamped
- DuckDuckGo rate limits or downtime may yield empty results or errors
- Payment failure (non-payment of $0.01 USDC) results in HTTP 402 response
- Very obscure queries may return zero results with an empty results array

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

A JSON object containing the original query, a product identifier, and an array of result objects each with a title, URL, and snippet. Up to 10 results are returned depending on the limit parameter.

## 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": [
      "query"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "default": 5,
       "maximum": 10,
       "description": "Max results (1-10)"
      },
      "query": {
       "type": "string",
       "description": "Search query"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "fastapi python",
  "product": "scanpay.web_search",
  "results": [
   {
    "url": "https://fastapi.tiangolo.com/",
    "title": "FastAPI - FastAPI",
    "snippet": "FastAPI is a modern, fast (high-performance), web framework for building APIs with Python."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-search-via-duckduckgo-scanpay-3553ecfb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
