Web search for agents. $0.005/call. No API key.
# 1. Call the endpoint curl https://search402.dev/v1/search?q=bitcoin # Response: 402 Payment Required # Headers include x402 payment instructions # 2. With an x402 client, payment is automatic: import { x402Client, x402HTTPClient } from "@x402/core/client"; import { registerExactEvmScheme } from "@x402/evm/exact/client"; const client = new x402Client(); registerExactEvmScheme(client, { signer: account }); const http = new x402HTTPClient(client); const res = await http.get("https://search402.dev/v1/search?q=bitcoin"); // Payment handled automatically, results returned
Search the web. Returns structured results with titles, URLs, and snippets.
| Param | Required | Default | Description |
|---|---|---|---|
q | yes | — | Search query |
num | no | 10 | Results (1–20) |
gl | no | us | Country code |
type | no | search | search, news, images |
{
"query": "bitcoin",
"results": [
{ "title": "Bitcoin Price", "url": "https://...", "snippet": "...", "position": 1 }
],
"related_searches": ["bitcoin news"],
"knowledge_panel": null,
"timestamp": "2026-03-04T16:00:00Z"
}
Fetch any URL and get clean markdown content.
| Param | Required | Description |
|---|---|---|
url | yes | URL to fetch |
{
"url": "https://example.com",
"title": "Example Domain",
"content": "# Example Domain\n\nThis domain is for use in illustrative examples.",
"word_count": 10,
"timestamp": "2026-03-04T16:00:05Z"
}
$0.005 USDC per call on both endpoints. Pay per request — no subscription, no API key, no account.
| Monthly calls | Cost |
|---|---|
| 200 | $1 |
| 1,000 | $5 |
| 10,000 | $50 |
search402 uses the x402 protocol — an open standard for HTTP-native micropayments.
/v1/search?q=bitcoin)402 Payment Required with payment details in headers