# SAN Foundation Web Search

> SAN Foundation Web Search is a paid API for AI agents from gateway.sanfoundation.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Search the open web for a topic and return up to 10 ranked results with source URL, title, publish date, and relevant excerpts

## Facts

- Endpoint: POST https://gateway.sanfoundation.com/x402/v1/web-search
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/san-foundation-web-search-6f7a2727
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rGspz6o4AhABUO0PvuxM8

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 san-foundation-web-search-6f7a2727 -d '<json body>'
```

Example prompt: Search the web for the latest developments in quantum computing breakthroughs and show me the top results with their sources and key excerpts.

## When to prefer this

Choose this endpoint when an agent needs to retrieve ranked, excerpted web search results from the open internet in response to a free-text query — especially when source attribution (URL, title, date) and ranked excerpts are required. Prefer it over a URL-fetch endpoint when you don't already have a specific URL and need discovery. It is well-suited for research, fact-checking, and information gathering tasks where breadth of sources matters.

## Known failure modes

- Empty results array if query matches no indexed pages
- Payment failure or 402 error if USDC payment is not processed correctly
- Malformed query may return low-quality or unrelated results
- Publish date may be null if the page does not expose a date signal
- Rate limiting or gateway timeout on high-volume usage

## How this service works

Search the open web for a topic and return ranked results with relevant excerpts. Each result includes the source URL, page title, publish date when known, and the excerpts the underlying ranker scored as most relevant.

## Output

Returns an array of up to 10 ranked search results, each containing: source URL, page title, optional publish date (when known), and an array of text excerpts that the underlying ranker scored as most relevant to the query.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "search"
     ],
     "properties": {
      "search": {
       "type": "string",
       "description": "Free-text search query. The handler returns up to 10 ranked results."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "url": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "excerpts": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "publish_date": {
          "type": "string",
          "nullable": true
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/san-foundation-web-search-6f7a2727/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.sanfoundation.com](https://www.zero.xyz/host/gateway.sanfoundation.com/llms.txt)
