An agent that runs on its own hits the same wall at every data vendor: a sign up form, an API key to paste, a card to keep on file. A person has to do that once per vendor, and then every task the agent runs draws on one shared key and one shared balance.
x402 removes the wall. The agent calls an endpoint with no key, gets 402 Payment Required with the exact price, signs a USDC payment from its own wallet and sends the same request again. The answer comes back with a header naming the transaction.
SpecStream answers 18 live endpoints this way, listed for machines at api.specstream.ai/.well-known/x402. This post shows how to wire them into an agent, what each call costs, and how to give each task its own budget.
The catalog an agent reads
curl -s https://api.specstream.ai/.well-known/x402 | jq '.resources | length' # 18 Prices are per call in USDC, exact scheme, on Base, Arbitrum or Polygon:
| Call | Returns | Price |
|---|---|---|
GET /v1/web-search | up to 10 live results | $0.007, or $0.002 with speed=fast |
POST /v1/extract | clean text of each page asked for | $0.002 a page |
POST /v1/x402/authority | authority score, rank and referring domains from an index of 223.9M domains | $0.002 |
POST /v1/x402/backlinks | up to 100 referring domains or pages | $0.01 |
POST /v1/x402/anchors | anchor texts and most linked pages | $0.01 |
POST /v1/x402/site-intel | the whole domain bundle | $0.025 |
GET /v1/data/dora/subprocessors | EU DORA B_05.01 and B_05.02 rows with GLEIF LEIs | $0.05 |
POST /v1/x402/sanctions-screen | one name against OFAC's lists | $0.05 |
POST /v1/x402/enrich-company | AI vendors, cloud vendors, trust center, sanctions screen, newest Form D | $0.05 |
POST /v1/x402/subprocessors | published subprocessors with recent changes | $0.05 |
| 5 list calls (find companies, companies using a vendor, commercial permits, funded startups, FDA letters) | up to 25 rows, each with its source URL | $0.10 |
| 3 data calls (new US trucking carriers, EU and UK public tenders, global sanctions lists) | rows with the official source URL | $0.10 |
The search behind /v1/web-search is first on WideSearch and scores 99 on SimpleQA Verified (scores and method).
Check every endpoint without paying
The open source starter Specstreamai/x402-web-data-agent (MIT) reads the live catalog and sends one unpaid call to each endpoint. Nothing is signed and nothing moves:
git clone https://github.com/Specstreamai/x402-web-data-agent cd x402-web-data-agent python3 discover_x402.py --verify # 18 of 18 challenges verified One paid call in Python
pip install eth-account export X402_PRIVATE_KEY=0x... # a wallet holding USDC on Base python3 x402_client.py authority '{"domain": "stripe.com"}' python3 x402_client.py web-search '{"q": "who founded Stripe"}' Inside your own agent loop:
from x402_client import pay_and_call status, headers, body = pay_and_call( "POST", "https://api.specstream.ai/v1/x402/sanctions-screen", {"name": "Example Shipping LLC"}, private_key, ) What happens on the wire:
- The request goes out with no key. SpecStream answers
402with aPAYMENT-REQUIREDheader listing the offers. - The client picks the
exactoffer and signs an EIP-3009 authorization for exactly that amount of USDC. Signing moves nothing. - The same request goes out again with the payment in
PAYMENT-SIGNATURE. - SpecStream settles and answers, with a
PAYMENT-RESPONSEheader naming the transaction.
If a call fails on SpecStream's side after the payment settled, send the same request with the same PAYMENT-SIGNATURE again. It is answered and nothing is taken twice. The same starter ships a TypeScript client (npx tsx x402_client.ts) and 12 unit tests.
A budget per task, not per vendor
Because the agent pays from a wallet, the budget lives in the wallet. Fund one wallet per task or per customer with the most that task may spend, and the agent cannot spend past it.
Here is what a vendor risk check costs when an agent runs it per supplier:
| Step | Call | Cost |
|---|---|---|
| Sanctions screen of the supplier's name | /v1/x402/sanctions-screen | $0.05 |
| Its subprocessors as DORA Register of Information rows with LEIs | /v1/data/dora/subprocessors | $0.05 |
| Authority of its domain | /v1/x402/authority | $0.002 |
| Total per supplier | $0.102 |
A wallet funded with $102 covers 1,000 suppliers. A domain with no tracked subprocessor list answers 404 before any payment, so the agent learns that for free.
Over MCP and with a key
The same data is on the MCP server at https://api.specstream.ai/mcp and on the REST API with a key, where it costs less at volume: fast search at $1 per 1,000, Extract at $0.80 per 1,000 pages, authority at $0.50 per 1,000 calls of 1 to 10 domains, and backlinks at $4 per 1,000 calls. The DORA lookup is $0.05 either way. A new account starts with $2 of credit and no card.
x402 fits the agent that must act on its own today. A key fits the team that runs the same job every day.