Skip to content

About

Eight B2B data calls an agent pays for in USDC with x402, no account and no key: enrichment, sanctions, sub-processors, permits, Form D, FDA.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

x402 pay per call B2B data for autonomous agents

Eight data calls an agent pays for itself in USDC with x402, one call at a time, with no SpecStream account and no API key. Each answer comes from SpecStream, and each row carries its source URL.

Call Body Price Returns
POST /v1/x402/enrich-company {"domain": "notion.com"} $0.05 One domain in: its AI vendors, sub-processor count, trust center URL, cloud and hosting vendors, a sanctions screen and its newest SEC Form D filing, each with its source URL
POST /v1/x402/sanctions-screen {"name": "<company, vessel or aircraft>"} $0.05 Clear, or each match on the OFAC SDN and Consolidated lists with its authority, list, reference ID, regime and official source URL. Entities, vessels and aircraft only
POST /v1/x402/subprocessors {"domain": "notion.com"} $0.05 Its published trust center sub-processors and recent additions or removals, each with service, processing region, first seen date, status and source URL
POST /v1/x402/find-companies {"query": "SaaS companies using Anthropic"} $0.10 for up to 25 rows Companies by the AI and cloud vendors they name as sub-processors, SEC Form D filers, public tenders in Europe, FDA registered device makers and businesses by category and country
POST /v1/x402/companies-using {"vendor": "Anthropic"} $0.10 for up to 25 rows Companies using a software, cloud or AI vendor, with domain, website, detection source, authority rank, country and source URL. Optional country filter
POST /v1/x402/commercial-permits {"city": "Austin", "min_value_usd": 250000} $0.10 for up to 25 rows Recent $250K+ commercial building permits in a US city, with valuation, issue date, permit number, scope of work, project address, contractor and municipal source URL
POST /v1/x402/funded-startups {"state": "CA", "industry": "Technology"} $0.10 for up to 25 rows Recent SEC Form D startup financings by state, industry or minimum amount raised, with company domain, website and EDGAR source URL
POST /v1/x402/fda-letters {"query": "cardiovascular", "kind": "all"} $0.10 for up to 25 rows Recent FDA Warning Letters and 510(k) or PMA device clearances by keyword or kind, with company, issuing office, subject, device class, decision date and FDA source URL

All on https://api.specstream.ai, paid in USDC on Base, Arbitrum or Polygon. The same list is in endpoints.json, and for machines at api.specstream.ai/.well-known/x402.

How a call is paid

  1. Send the request with no key. It answers 402 Payment Required with a PAYMENT-REQUIRED header: x402's exact scheme at the call's fixed price.
  2. Sign it with any x402 v2 client and send the same request again with the payment in PAYMENT-SIGNATURE.
  3. The answer comes back with a PAYMENT-RESPONSE header naming the transaction.

See the prices, with no wallet

Nothing is paid. Python needs only the standard library:

python python/challenge.py
npx tsx typescript/challenge.ts
/v1/x402/enrich-company          exact  USDC Base 0.05, Arbitrum 0.05, Polygon 0.05
/v1/x402/companies-using         exact  USDC Base 0.10, Arbitrum 0.10, Polygon 0.10
...

Pay for one call

Both scripts read the price from the 402 first and refuse a call above MAX_USDC_PER_CALL (default 0.10), then pay with the x402 client.

pip install -r requirements.txt
export PAYER_KEY=...    # a wallet that holds USDC on Base; keep it out of git
python python/pay_and_call.py /v1/x402/companies-using '{"vendor": "Anthropic"}'

npm install
PAYER_KEY=0x... npx tsx typescript/payAndCall.ts /v1/x402/funded-startups '{"state": "CA", "industry": "Technology"}'

Search and page reads, paid the same way

One web search ($0.007, or $0.002 with speed=fast) and one page read ($0.002 a page) are bought the same way on GET /v1/web-search?q=... and POST /v1/extract. For many calls, an account with a key costs less: $1 per 1,000 fast searches and $0.80 per 1,000 pages, with $2 of credit on sign up and no card.

More

More data an agent can use

License

MIT

About

Eight B2B data calls an agent pays for in USDC with x402, no account and no key: enrichment, sanctions, sub-processors, permits, Form D, FDA.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages