# OnHub AI Grounded Search

> OnHub AI Grounded Search is a paid API for AI agents from api.onhub.ai, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-03).

Answers factual questions using Google Search grounding and returns attributable HTTPS sources with inline citations

## Facts

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

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-ai-grounded-search-2c5ca5fb -d '<json body>'
```

Example prompt: Search for what changed in the latest OpenAI API release and give me a detailed answer with up to 6 attributable sources I can verify.

## When to prefer this

Choose this endpoint when you need factual, up-to-date answers with verifiable HTTPS source citations rather than relying on a language model's training data. It is ideal for questions about recent events, changelogs, current status, or any claim that must be attributable. Prefer it over generic LLM completions when grounding and citation are required, and over raw web scrapers when you want a synthesized answer rather than raw HTML.

## Known failure modes

- Query too short (below 3 characters) returns validation error
- Query exceeds 2000 characters causes rejection
- No relevant Google Search results found may return empty or low-confidence answer
- Network or upstream Google Search grounding failure results in 5xx error
- Requested max_sources above 8 causes validation error
- Payment not included or invalid x402 payment header returns 402 Payment Required

## How this service works

Grounded Google Search answers with attributable HTTPS sources.

## Output

Returns a JSON object containing a grounded answer string with inline citation markers (e.g. [1]), an array of source objects each with a URL, title, and citation indices, an evidence_status field ('grounded'), the number of search queries made, and a timestamp of when the search was performed.

## 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-ai-grounded-search-2c5ca5fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onhub.ai](https://www.zero.xyz/host/api.onhub.ai/llms.txt)
