# OnHub Search — Google-Grounded Factual Q&A

> OnHub Search — Google-Grounded Factual Q&A is a paid API for AI agents from x402.onhub.ai, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-11).

Answers factual questions using Google Search grounding, returning a cited answer with source URLs, paid per request in USDC on Base.

## Facts

- Endpoint: POST https://x402.onhub.ai/v1/search?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onhub-search-google-grounded-factual-q-a-e1039d3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gINxJezLoMiqptpond81-

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 onhub-search-google-grounded-factual-q-a-e1039d3f -d '<json body>'
```

Example prompt: Can you look up what changed in the latest Cloudflare Workers release and give me a standard-length answer with up to 5 sources?

## When to prefer this

Choose this endpoint when your agent needs real-time, web-grounded factual answers with cited sources — especially for questions about recent events, software changelogs, pricing, or any topic where freshness matters. It is distinct from static knowledge-base lookups because it actively searches the web and returns provenance URLs. Prefer it over general LLM inference when you need evidence status and citations, and over raw search APIs when you want a synthesized, human-readable answer rather than a list of raw results.

## Known failure modes

- Query too short (under 3 chars) or too long (over 2000 chars) returns validation error
- max_sources out of range (below 1 or above 8) returns 422
- Payment not included or insufficient USDC triggers 402 Payment Required
- Ambiguous or unanswerable queries may return low-confidence or empty answers
- Transient Google Search grounding failures may cause degraded or unavailable responses

## How this service works

Grounded Google Search answers with attributable HTTPS sources.

## Output

A JSON object containing a grounded answer string with inline citation markers, an array of source objects (each with URL, title, and citation indices), the evidence_status ('grounded'), the number of search queries executed, and a searched_at ISO timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 3,
   "description": "The current factual question to research with Google Search grounding."
  },
  "max_sources": {
   "type": "integer",
   "default": 5,
   "maximum": 8,
   "minimum": 1
  },
  "answer_length": {
   "enum": [
    "brief",
    "standard",
    "detailed"
   ],
   "type": "string",
   "default": "standard"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "What changed in the latest Cloudflare Workers release?",
  "answer": "Cloudflare announced the change in its Workers changelog. [1]",
  "object": "search.result",
  "sources": [
   {
    "url": "https://developers.cloudflare.com/changelog/",
    "title": "Cloudflare changelog",
    "citation_indices": [
     1
    ]
   }
  ],
  "searched_at": "2026-09-22T00:00:00.000Z",
  "evidence_status": "grounded",
  "search_query_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onhub-search-google-grounded-factual-q-a-e1039d3f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onhub.ai](https://www.zero.xyz/host/x402.onhub.ai/llms.txt)
