# Apiosk Gateway – Brave Search Execute

> Apiosk Gateway – Brave Search Execute is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Executes a Brave Search query via the Apiosk x402 pay-per-call gateway, returning web search results for a given query string.

## Facts

- Endpoint: POST https://gateway.apiosk.com/brave-search/execute
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiosk-gateway-brave-search-execute-ccc897cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tqi9U5BuN4c_MiQYYUcIc

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 apiosk-gateway-brave-search-execute-ccc897cd -d '<json body>'
```

Example prompt: Search the web for 'latest AI regulation news in the EU' and give me the top results including titles and URLs.

## When to prefer this

Use this endpoint when you need programmatic web search results via Brave Search, especially in a crypto-native or x402 payment context where per-call USDC micropayments are acceptable. Prefer this over scraping or other search APIs when you want Brave's privacy-focused index, JSON-structured results, and seamless on-chain billing at $0.05 per call.

## Known failure modes

- Payment failure – insufficient USDC balance or x402 payment not accepted, returns 402 error
- Invalid operation selector – unrecognized operation id returns error in result
- Upstream Brave Search error – Brave API outage or rate limit, reflected in upstream_status field
- Malformed JSON payload in input field – gateway may reject or misroute the request
- Network timeout – high latency upstream may result in timeout response

## How this service works

Pay-per-call API gateway on the x402 protocol (HTTP 402 + USDC on Base). This document covers the gateway's discovery and execution meta-endpoints. Individual provider APIs are reachable at /{api_slug}/{path} and described by GET /{api_slug}/metadata.

## Output

Returns a JSON object with status, the upstream Brave Search response body (titles, URLs, snippets), the operation used, latency in milliseconds, and the USDC cost charged for the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "JSON payload forwarded to the selected operation."
  },
  "operation": {
   "type": "string",
   "description": "Operation id, /path, or METHOD /path selector."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "status",
  "result"
 ],
 "properties": {
  "api": {
   "type": "string"
  },
  "cost": {
   "type": "string"
  },
  "result": {
   "description": "Upstream response body."
  },
  "status": {
   "type": "string"
  },
  "latency": {
   "type": "number"
  },
  "operation": {
   "type": "string"
  },
  "upstream_status": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiosk-gateway-brave-search-execute-ccc897cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
