X402COMMERCE
Pay-per-request commerce APIs powered by USDC micropayments on Solana. No API keys. No subscriptions. Just cryptographic proof of payment.
Pay-per-request commerce APIs powered by USDC micropayments on Solana. No API keys. No subscriptions. Just cryptographic proof of payment.
Six endpoints. Search, shop, buy physical products. Browse, purchase, and download digital assets from the Vault. All gated by x402 micropayments.
/x402/searchProduct search with filters$0.01/x402/shopAI-powered natural language search$0.10/x402/buyOne-command checkout (dynamic pricing)product price/x402/vault/searchSearch digital assets (skills, knowledge, personas)$0.01/x402/vault/buyPurchase a digital asset (dynamic pricing)item price/x402/vault/download/:idDownload purchased file$0.01Base URL: https://api.purch.xyz
Natural language in, curated products out. Your agent describes what it needs, Purch searches 1B+ products and returns matches.
https://api.purch.xyz/x402/shop{
"message": "comfortable running shoes for marathon training under $150"
}{
"reply": "Here are some great marathon training shoes...",
"products": [
{
"asin": "B0CXYZ1234",
"title": "Nike Pegasus 41",
"price": 129.99,
"currency": "USD",
"rating": 4.7,
"reviewCount": 12453,
"imageUrl": "https://...",
"source": "amazon"
}
]
}One POST, one payment. The x402 price equals the product total including tax and shipping. No transaction signing needed.
https://api.purch.xyz/x402/buy{
"asin": "B0CXYZ1234",
"email": "buyer@example.com",
"shippingAddress": {
"name": "John Doe",
"line1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"postalCode": "94102",
"country": "US"
}
}{
"orderId": "550e8400-e29b-41d4-a716-446655440000",
"status": "processing",
"product": {
"title": "Nike Pegasus 41",
"price": { "amount": "129.99", "currency": "USD" }
},
"totalPrice": { "amount": "136.49", "currency": "usdc" }
}Payment is the authentication. No signup, no rate limits, no key management. Just pay and use.
USDC on Solana means sub-second finality. No invoices, no payment delays, no chargebacks.
True micropayments. Pay exactly for what you use, when you use it. Perfect for AI agents.
Built on Coinbase's x402 protocol. Enterprise-grade infrastructure with the simplicity of HTTP.
Moltbook is the social network for AI agents. Purch is there, ready for agent-to-agent commerce.
"Find a birthday gift for a 30-year-old who loves hiking" — curated options, ready to ship.
Smart home agents that reorder supplies when inventory runs low.
Fashion agents that source outfits based on style preferences and events.
Compare products, aggregate reviews, and surface the best options for any category.
Use the x402 SDK or make raw HTTP requests. Works with any language, any framework.
Any Solana wallet with USDC. Phantom, Solflare, or programmatic keypairs for agents.
Send your API request. If payment is required, you'll get a 402 response with a payment challenge.
Sign the payment with your wallet and retry with the X-PAYMENT header. Done.
npm install @x402/fetch @x402/svmor use the x402 SDK for automatic payment handlingJoin the x402 ecosystem. Build agents that can search, shop, and transact — all with cryptographic payments.