# OpenWebNinja Google AI Mode Search

> OpenWebNinja Google AI Mode Search is a paid API for AI agents from x402.openwebninja.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Queries Google's AI Mode search experience with a prompt and returns AI-generated answers with session continuity support

## Facts

- Endpoint: GET https://x402.openwebninja.com/google-ai-mode/ai-mode
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openwebninja-google-ai-mode-search-512dfa8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rvk0W-_tEap-7B-qeefSK

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 openwebninja-google-ai-mode-search-512dfa8d
```

Example prompt: Search Google AI Mode for 'what are the best practices for training large language models in 2025' in English for the US region and give me the AI-generated answer.

## When to prefer this

Use this endpoint when you need to access Google's AI Mode search experience programmatically — especially when you want AI-synthesized answers rather than raw search result links, need session continuity for multi-turn research conversations, or require localized results by country and language code. Prefer this over generic web scraping or standard search APIs when the user specifically wants Google's AI-generated overview-style answers.

## Known failure modes

- Missing required 'prompt' query parameter returns a validation error
- Invalid or expired session_token may break conversation continuity
- Unsupported method type (POST, PUT) returns a method-not-allowed error
- Rate limiting or payment failure returns a 402 Payment Required error
- Google AI Mode service unavailability causes upstream errors

## How this service works

40+ public web-data, SERP, e-commerce, real-estate, finance and AI-search APIs, payable per call over x402 (USDC on Base, Polygon, Arbitrum). No account or API key required. Most endpoints $0.003; AI-model endpoints $0.005.

## Output

Returns a JSON object containing an AI-generated answer to the prompt, a session token for follow-up queries, a unique request ID, and echoed parameters including the prompt, language code (hl), and geolocation code (gl).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "gl": {
       "type": "string",
       "default": "us"
      },
      "hl": {
       "type": "string",
       "default": "en"
      },
      "prompt": {
       "type": "string"
      },
      "session_token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "session_token": {
         "type": "string",
         "description": "Token used to maintain session context for follow-up interactions"
        }
       }
      },
      "status": {
       "type": "string",
       "description": "The status of the API response"
      },
      "parameters": {
       "type": "object",
       "properties": {
        "gl": {
         "type": "string",
         "description": "Geolocation/country code used for localization"
        },
        "hl": {
         "type": "string",
         "description": "Language code used for localization"
        },
        "prompt": {
         "type": "string",
         "description": "The input prompt provided by the user"
        }
       }
      },
      "request_id": {
       "type": "string",
       "description": "A unique identifier for the API request"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openwebninja-google-ai-mode-search-512dfa8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.openwebninja.com](https://www.zero.xyz/host/x402.openwebninja.com/llms.txt)
