# Quickstart: web search for AI agents in 3 steps

Search402 is a pay-per-call web search and page-extraction API for AI agents. No sign-up and no API key:
each call is paid with the x402 protocol in USDC on Base.

## 1. Try it free
```bash
curl "https://search.missioncoregroup.com/v1/preview?q=postgres+full+text+search"
```
Returns the top 3 titles and URLs as Markdown (20 free calls a day per IP).

## 2. Give your agent a wallet
Any Base wallet holding a little USDC (a few dollars covers ~1,000 searches at $0.005). Use a dedicated wallet.

## 3. Call the paid endpoint with an x402 client
```js
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPaymentFromConfig(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(process.env.KEY)) }] });
const res = await pay("https://search.missioncoregroup.com/v1/search?q=postgres+gin+index&format=json");
console.log(await res.json());
```
```python
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm.exact import ExactEvmClientScheme
client = x402Client().register("eip155:8453", ExactEvmClientScheme(Account.from_key(KEY)))
async with x402HttpxClient(client) as http:
    r = await http.get("https://search.missioncoregroup.com/v1/search?q=python+asyncio&format=json")
```

Next: [API reference](https://search.missioncoregroup.com/docs/api.md) · [MCP setup](https://search.missioncoregroup.com/docs/mcp.md) · [Pricing](https://search.missioncoregroup.com/docs/pricing.md)
