# x402 Gateway Web Search

> x402 Gateway Web Search is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-15, last successful call 2026-05-30).

Performs neural web search and returns highlighted snippets from articles, news, and research pages

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/search/web
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-05-30
- Success rate: 91% of calls made through Zero
- Activations on Zero: 11
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-27f82682
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-IjRpzBYKOtzefZH8Vfrp

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 x402-gateway-production-up-railway-app-27f82682 -d '<json body>'
```

Example prompt: Search the web for the latest trends in renewable energy in 2024 and return the top 5 results with highlighted snippets.

## When to prefer this

Use this endpoint when you need live, current web search results with highlighted snippets — especially for news, recent events, or research queries. Prefer it over static knowledge bases when freshness matters or when you need sourced URLs from real web pages.

## Known failure modes

- Query too vague or empty — returns no results or error
- Limit parameter out of allowed range — validation error
- Upstream search provider unavailable — 5xx error
- Payment not provided or invalid — 402 payment required
- Rate limit exceeded — throttling error

## How this service works

Neural web search with highlighted snippets — find articles, news, research, and any web content

## Output

Returns a list of web search results including article titles, URLs, and highlighted text snippets relevant to the query, truncated for large result sets.

## Example request

```json
{
 "limit": 5,
 "query": "artificial intelligence trends 2024"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "example": "latest ethereum news",
       "description": "Search query"
      },
      "category": {
       "type": "string",
       "example": "news",
       "description": "Content category filter (news, research paper, company, tweet, github, pdf)"
      },
      "numResults": {
       "type": "number",
       "default": 10,
       "example": 10,
       "description": "Number of results (1-30)"
      },
      "includeText": {
       "type": "boolean",
       "default": false,
       "description": "Include full page text in results"
      },
      "includeDomains": {
       "type": "array",
       "items": {
        "type": "string",
        "example": "arxiv.org"
       },
       "example": [
        "arxiv.org",
        "github.com"
       ],
       "description": "Only include results from these domains"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-27f82682/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
