x402 web search and extract for AI agents
Your agent calls the Search API or the Extract API with no key, gets a 402 with the price, signs it in USDC on Base, Arbitrum, or Polygon, and sends the call again. A fast search costs $0.002, a search $0.007, and a page $0.002.
curl -i -G https://api.specstream.ai/v1/web-search \ --data-urlencode "q=Who is the CEO of Stripe?" \ --data-urlencode "speed=fast"
HTTP/2 402 content-type: application/json payment-required: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOi... www-authenticate: Payment realm="api.specstream.ai", method="stripe", intent="charge", request="eyJhbW91bnQiOiI1MDAi..." { "x402Version": 2, "error": "PAYMENT-SIGNATURE header is required", "resource": { "url": "https://api.specstream.ai/v1/web-search", "serviceName": "SpecStream Web Search" }, "accepts": [ { "scheme": "exact", "network": "eip155:8453", "amount": "2000" }, { "scheme": "exact", "network": "eip155:42161", "amount": "2000" }, { "scheme": "exact", "network": "eip155:137", "amount": "2000" } ] }
One price for each call
The exact scheme at a fixed price, taken when the payment settles, before the call runs. Any x402 v2 client signs it.
- $0.002
- A search of up to 10 results with speed=fast, news=true, or images=true.
- $0.007
- A search of up to 10 results on the default tier: the most accurate web search API in the world.
- $0.002
- Each page or document you send to /v1/extract: PDF, Word, and Excel included, up to 20 a call.
The 402 flow
Four HTTP steps and no account. The facilitator pays the gas, so the wallet needs only USDC.
- Call with no key
- GET /v1/web-search?q=<the question>, or POST /v1/extract with {"urls": [...]}.
- Read the 402
- The PAYMENT-REQUIRED header offers the exact scheme in USDC on Base (eip155:8453), Arbitrum (eip155:42161), and Polygon (eip155:137).
- Sign and send again
- Your client signs the authorization and sends the same request with it in PAYMENT-SIGNATURE.
- Read the answer
- The reply carries the answer and a PAYMENT-RESPONSE header naming the transaction. A retry with the same signature is answered and never taken twice.
Where agents find it
Both routes are listed on the x402 discovery services and in our own machine files, with their terms and an example of each.
- Coinbase CDP BazaarSpecStream Web Search and SpecStream URL to Markdown, with typed output schemas, in the x402 discovery API.
- x402-listBoth paid routes, checked against our ownership file.
- x402scanThe SpecStream server and its paid calls.
- /.well-known/x402Every route with its scheme, networks, price, and an example call.
- agents.mdThe steps for an agent: pay per call, pay by card, or open an account.
- llms.txtEvery page and document an assistant reads first.
x402 questions
Something we didn't answer? Talk to a human
What is x402?
What does an x402 call cost?
Which networks and tokens does it take?
Do I need an API key or an account?
Where is SpecStream listed for x402?
Can an agent pay by card instead?
Pay by card, or open an account
The same routes take a card through Stripe MPP, or an API key on a balance with monthly plans.
Run the first paid call
Point any x402 v2 client at /v1/web-search. Or sign up and get $10 of credit, no card.