Skip to the page

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.

GET /v1/web-search, no key
curl -i -G https://api.specstream.ai/v1/web-search \
  --data-urlencode "q=Who is the CEO of Stripe?" \
  --data-urlencode "speed=fast"
The 402, cut short
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.

x402 questions

Something we didn't answer? Talk to a human

What is x402?
x402 is an open payment protocol on HTTP 402 Payment Required. A server answers a call with its price, the client signs a stablecoin payment, and sends the call again. SpecStream answers x402 v2 on /v1/web-search and /v1/extract.
What does an x402 call cost?
A search of up to 10 results costs $0.007, or $0.002 with speed=fast, news, or images. A page read costs $0.002 for each URL sent. The price is taken when the payment settles, before the call runs.
Which networks and tokens does it take?
USDC on Base, Arbitrum, and Polygon. The wallet needs no ETH: the facilitator pays the gas.
Do I need an API key or an account?
No. The payment is the access. An agent with a wallet calls the route, pays, and reads the answer. A team that wants one balance, plans, and the workspace signs up and gets $10 of credit, no card.
Where is SpecStream listed for x402?
On the Coinbase CDP Bazaar, x402-list, and x402scan. The terms are at https://api.specstream.ai/.well-known/x402, and the OpenAPI document marks both routes with x-payment-info.
Can an agent pay by card instead?
Yes, with Stripe MPP. The same 402 carries a WWW-Authenticate: Payment challenge for a $5 block of credit, paid through Stripe's Link agent wallet and spent at list price.

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.