# Crypto & Web Data API – Web Search

> Crypto & Web Data API – Web Search is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-11).

Returns up to 20 organic web search results (title, URL, snippet, domain) for a given query, ad-free, powered by DuckDuckGo.

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/search?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-web-data-api-web-search-59b74b58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iaWrnq8TzwyuR02_Y-2Y6

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 crypto-web-data-api-web-search-59b74b58
```

Example prompt: Search the web for 'x402 payment protocol overview' and give me the top 10 organic results with their titles, URLs, and snippets — no ads, US English region.

## When to prefer this

Choose this endpoint when you need clean, ad-free organic web search results with structured metadata (title, URL, snippet, domain, rank) suitable for further processing. It is ideal when you want to pair search with /api/v1/fetch to read result pages as Markdown, or when you need regional search results. Prefer this over news-specific endpoints when you want broader web coverage beyond recent headlines, and over direct URL fetching when you don't yet know which URLs to visit.

## Known failure modes

- Missing required 'q' parameter returns a validation error
- Limit value outside 1–20 range is rejected
- Invalid region code may return no results or fall back to default
- Query with no matching results returns an empty results array
- Upstream DuckDuckGo rate-limiting or downtime causes 5xx errors
- Payment not received (x402) results in 402 Payment Required response

## How this service works

Web search for agents: up to 20 organic results with title, URL, snippet and domain, no ads. Pair with /api/v1/fetch to read a result as Markdown.

## Output

A JSON object containing the search query, engine name ('duckduckgo'), total result count, and an array of up to 20 results each with: rank (integer), title (string), url (string), domain (string), and snippet (string). Results are organic only — no ads or sponsored listings.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query"
      },
      "limit": {
       "type": "integer",
       "maximum": 20,
       "minimum": 1
      },
      "region": {
       "type": "string",
       "description": "e.g. us-en, de-de (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": "x402 payment protocol",
  "engine": "duckduckgo",
  "results": [
   {
    "url": "https://www.x402.org/",
    "rank": 1,
    "title": "x402 - payments over HTTP",
    "domain": "x402.org",
    "snippet": "An open protocol for internet-native payments..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-web-data-api-web-search-59b74b58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
