Brave Search via Spawnpay

Web search through Brave with Spawnpay routing — every query gets a USDC receipt and a budget guardrail.

BYOK $0.001 / 2xx No reselling — your upstream relationship stays exactly as it is.

Why route through Spawnpay

Agents that need a clean, anti-bot-resistant search backend. Per-customer query metering with no Stripe integration. Multi-tenant SaaS where each end-user has their own daily search budget enforced client-side.

Endpoint

Method
GET
Upstream path
/res/v1/web/search
Upstream auth
X-Subscription-Token
Auth note
X-Provider-Key is forwarded as the raw X-Subscription-Token header upstream.
Routing fee
$0.001 USDC per upstream 2xx (4xx is free)
Provider docs

curl

curl -X POST https://spawnpay.ai/api/proxy \
  -H 'Authorization: Bearer spk_live_…' \
  -H 'X-Provider-Key: $BRAVE_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "provider": "brave",
  "path": "/res/v1/web/search",
  "method": "GET",
  "query": {
    "q": "spawnpay universal proxy"
  }
}'

Node (spawnpay-paywall)

import { proxy } from 'spawnpay-paywall';

const out = await proxy({
  "provider": "brave",
  "path": "/res/v1/web/search",
  "method": "GET",
  "query": {
    "q": "spawnpay universal proxy"
  },
  "providerKey": process.env.BRAVE_KEY
});

console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt

What you get back

The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.

▶ Try Brave Search live → 60-sec quickstart All providers