heroes · gedx402

Google search

Google results — POST /v1/serper/search with { q, num?, gl?, hl? }. num is 1–10. Alternative to recommended POST /v1/search.

$0.010 live 402 quote

POST https://search.gedx402.com/v1/serper/search

@x402/fetch (TypeScript)

standard x402 client — fund USDC on Base, set PRIVATE_KEY. integrator quickstart

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const fetchWithPayment = wrapFetchWithPayment(fetch, client);

const res = await fetchWithPayment("https://search.gedx402.com/v1/serper/search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    q: "x402 agent marketplace APIs",
    num: 10
  }),
});
const data = await res.json();

use it in an agent: web research agent in 30 lines (search, read top pages, cited answer).

awal (agent convenience)

Coinbase Agentic Wallet CLI — no private key in code. external payer guide

npx awal@2.12.0 x402 pay \
  --url https://search.gedx402.com/v1/serper/search \
  --method POST \
  --body '{"q":"x402 agent marketplace APIs","num":10}'

curl (discovery)

unauthenticated POST returns 402 + payment-required — inspect pricing before paying.

curl -X POST https://search.gedx402.com/v1/serper/search \
  -H "Content-Type: application/json" \
  -d '{"q":"x402 agent marketplace APIs","num":10}'